MATLAB: How to change the figure in which I’m drawing with imfreehand

image processingImage Processing Toolboximfreehand

I segment an image after specifying some segmentation seeds via imfreehand, then I get the segmented image on a new figure and I want to redraw some seeds on this new figure. How can I make the new calls to imfreehand be directed to the new figure and not the previous one?

Best Answer

I used this:
figure('name', 'image to segment'), imshow(imdata,[]);
h = gcf
%...
%do segmentation
figure(h), imshow(segmented_foreground, []);
Related Question