What the error in this code..?
1 次查看(过去 30 天)
显示 更早的评论
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..?
采纳的回答
Walter Roberson
2012-12-20
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 个评论
Walter Roberson
2012-12-20
for K = 1 : 4
thispoint = ginput(1);
text(thispoint(1), thispoint(2), '+');
points(K,:) = thispoint;
end
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!