I've tried this same code on 3 different machines (2012a, 2011b, 2011b), and it works on none of them. The strange thing is that this is not new code -- my imellipse code used to work, but then this problem mysteriously appeared.
imellipse -- "Operation terminated by user" error
4 次查看(过去 30 天)
显示 更早的评论
I've been having strange problems with imellipse. I'm trying to run it in a loop to draw multiple ROIs but it either breaks out of the loop (with no error message), or gives me the following error, which makes little sense to me.
Operation terminated by user during uiwait (line 82)
In imroi>manageROIWaitMode (line 391)
uiwait(h_fig);
In imroi/wait (line 226)
accepted_pos = manageROIWaitMode(obj);
In imellipse/wait (line 118)
pos = wait@imroi(obj);
I distilled my code down to a very simple program, which still has this error (or does not complete the loops):
clc; close all
figure, imshow('pout.tif');
reps = 10;
positions = cell(1,reps);
for i = 1:reps
disp(i)
h = imellipse;
positions{i} = wait(h);
pause(0.5)
end
Appreciate your help.
4 个评论
Image Analyst
2013-10-11
Gerald, did you double-click inside the ellipse, or right click and say "Create mask"? What exactly did you do to "finish off" the ellipse and move on to the next one?
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!