What the error in this code..?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
N = 7;
for m=1:N
fname(m,:)=files(m+7,:);
rgb = imread(fname(m,:));
imshow(rgb);
cdata = ginput;
data(:,:,m) = cdata(1:4,:);
end
For this seven images i want data where i will click.
But when i am executing this code, it shows only cursor on image but not allowing to click.. Why..?
If any mistake then tell me..?
3 Kommentare
Akzeptierte Antwort
Walter Roberson
am 20 Dez. 2012
Consider using roipoly()
Alternately, only ginput() one value at a time, and text() a '+' into place at the returned coordinates before going on to the next.
2 Kommentare
Walter Roberson
am 20 Dez. 2012
for K = 1 : 4
thispoint = ginput(1);
text(thispoint(1), thispoint(2), '+');
points(K,:) = thispoint;
end
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Exploration 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!