The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: impoly, imrect, imellipse breaks uiwait
Replies: 8   Last Post: Nov 16, 2016 5:44 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
David Holm

Posts: 2
Registered: 11/15/10
impoly, imrect, imellipse breaks uiwait
Posted: Nov 15, 2010 8:09 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi there,

I have created a small GUI to enable editing of ROIs in MR datasets with multiple frames and slices. Inside the GUI I use impoly, imrect or imellipse to draw ROIs.

I would like to be able to return a drawn ROI to the commandline e.g.:

inside the GUI I have uncommented uiwait(handles.figure1); and execution stops while my GUI is running untill I draw the first ROI. It seems as if impoly and other im... functions resumes the commandline and returns the ROIs to early.

Is there some way of avoiding this?

I also tried h=impoly(handles.axes); pos=wait(h); but this only makes it possible to edit the ROI. As soon as I doubleclick the ROI to "close" it the gui returns the outputs I have selected.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.