Skip to content
Snippets Groups Projects
Commit 04a191bf authored by Nicola Vigano's avatar Nicola Vigano
Browse files

Fixed guiGtMontage: clicking on images now works


Signed-off-by: default avatarNicola Vigano <nicola.vigano@esrf.fr>

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@254 4c865b51-4357-4376-afb4-474e03ccb993
parent 1f24ae91
No related branches found
No related tags found
No related merge requests found
...@@ -158,7 +158,7 @@ function selected = guiGtMontage(imgStack,selectedImages) ...@@ -158,7 +158,7 @@ function selected = guiGtMontage(imgStack,selectedImages)
axes1 = axes( 'Parent', panel, 'ActivePositionProperty', 'Position'); axes1 = axes( 'Parent', panel, 'ActivePositionProperty', 'Position');
colormap(axes1, 'gray'); colormap(axes1, 'gray');
imagesc(img, 'Parent', axes1) image1 = imagesc(img, 'Parent', axes1);
axis(axes1, 'off'); axis(axes1, 'off');
axis(axes1, 'image'); axis(axes1, 'image');
...@@ -170,8 +170,8 @@ function selected = guiGtMontage(imgStack,selectedImages) ...@@ -170,8 +170,8 @@ function selected = guiGtMontage(imgStack,selectedImages)
% Callbacks to change the state of the panels selected/unselected % Callbacks to change the state of the panels selected/unselected
set(gui.listOfPlainPanels(num), 'ButtonDownFcn', {@togleCheck, num}); set(gui.listOfPlainPanels(num), 'ButtonDownFcn', {@togleCheck, num});
% Following is not working, for unknown reasons
set(gui.listOfAxes(num), 'ButtonDownFcn', {@togleCheck, num}); set(gui.listOfAxes(num), 'ButtonDownFcn', {@togleCheck, num});
set(image1, 'ButtonDownFcn', {@togleCheck, num});
end end
function resizeImgs(~, ~, guiData) function resizeImgs(~, ~, guiData)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment