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
9 views (last 30 days)
Show older comments
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 Comments
Image Analyst
on 11 Oct 2013
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?
Accepted Answer
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!