Code does not work!
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ali Ibrahim
am 23 Jun. 2017
Bearbeitet: Stephen23
am 23 Jun. 2017
This code used to work, I tried it now.. it does not work.. i do not know what happened! Can anyone try to help me with that? Manual selection to the photo does not work also !
Akzeptierte Antwort
Walter Roberson
am 23 Jun. 2017
To expand on Stephen's response: change your code to
function [loc] = get_image_point (I)
fig = figure('name','Doubleclick to set location');
imshow(I);
title('Double click on the center of the ring')
[c r] = getpts(fig);
loc = int32([c r]);
if size(loc)>1
loc = [loc(1,1) loc(1,2)];
end
close(fig);
end
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Graphics Performance finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!