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

small fix

parent 76788817
No related branches found
No related tags found
No related merge requests found
function points = gtGuiCollectPointsFromImage(map)
function points = gtGuiCollectPointsFromImage(map, do_rescale)
f = figure();
ax = axes('parent', f);
map = (map - min(map(:))) ./ (max(map(:)) - min(map(:)));
im = imagesc(map, 'parent', ax);
if (exist('do_rescale', 'var') && ~isempty(do_rescale) && do_rescale)
map = (map - min(map(:))) ./ (max(map(:)) - min(map(:)));
im = imagesc(map, 'parent', ax);
else
im = imshow(map, 'parent', ax);
end
cm = uicontextmenu('Parent', f, 'Callback', @(src, evt)save_clicked_point());
set(im, 'UIContextMenu', cm);
......
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