From: Jessica on
I am displaying an image and then using ImROI to get the coordinates for a polygon that I draw:

I=imread('9_m.jpg');
roi = ImROI(I);

However, before drawing out the polygon, I would like to map on previous polygons that I have already drawn onto the image so that I can see them as I am drawing this new polygon. This code below does not accomplish this but might be moving in the right direction of what I am trying to do:

I=imread('9_m.jpg');
line (X_PolygonPrevious1, Y_PolygonPrevious1);
line (X_PolygonPrevious2, Y_PolygonPrevious2);
roi = ImROI(I);

Thanks for any help!