imellipse -- "Operation terminated by user" error

9 views (last 30 days)
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
Gerald
Gerald on 11 Oct 2013
Hi Anand, Thanks for your prompt response. I don't know what you mean by "clarify your workflow." On all of my computers, I start up MATLAB, run this code, and try draw ellipses as you did (and double-clicking on them). However, for me, it always just breaks out of the loop or causes an error after the first ellipse.
Do you have any ideas as to what may cause this?
Image Analyst
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?

Sign in to comment.

Accepted Answer

Gerald
Gerald on 11 Oct 2013
I think I found the culprit -- I recently installed a third-party application (which looks for mouse behavior in the background) that may have been responsible.
  1 Comment
Xiaolong
Xiaolong on 23 Dec 2013
the same problem I met. What's the name of this * third-party application *

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!