Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:

Subject: Polygon

From: Jessica

Date: 12 Jul, 2010 14:33:07

Message: 1 of 1

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

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:

line (X_PolygonPrevious1, Y_PolygonPrevious1);
line (X_PolygonPrevious2, Y_PolygonPrevious2);
roi = ImROI(I);

Thanks for any help!

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us