imellipse -- "Operation terminated by user" error
Afficher commentaires plus anciens
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 commentaires
Gerald
le 11 Oct 2013
Gerald
le 11 Oct 2013
Image Analyst
le 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?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Programming dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!