cancel a call to impoly

1 Ansicht (letzte 30 Tage)
Jim O'Doherty
Jim O'Doherty am 14 Nov. 2012
All,
I'm manually outlining a series of ROIs on some 3D data, and would like to know how to cancel a call to impoly (i.e. when a user has optioned to stop drawing) by way of a togglebutton.
Fundamentally, after impoly is called, I can't seem to find a way to break out of the call until AFTER impoly has had some input (i.e. something is drawn)
A simple example:
r=imread('cameraman.tif');
imshow(r,[])
h=roipoly();
After all this has been entered, how could I cancel the fact that I've called roipoly? Its clearly waiting for input, perhaps through waitfor? I've tried deleting the handle and uiresume with no luck
Thanks
Jim

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by