Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Extracting an image portion opencv C + +

Hello, I am trying to create a project that extract parts of an image, knowing that I have determined the contour points and I determined points related envelope and now I want to calculate the surface of the parties are between the edge points and the points of the envelope.

Here is an example:image description

I found on the net a function that retrieves rectangles cvSetImageROI but the problem parts that I want to extract have different shapes. In short, help me!

click to hide/show revision 2
retagged

updated 2014-02-22 06:11:32 -0600

berak gravatar image

Extracting an image portion opencv C + +

Hello, I am trying to create a project that extract parts of an image, knowing that I have determined the contour points and I determined points related envelope and now I want to calculate the surface of the parties are between the edge points and the points of the envelope.

Here is an example:image description

I found on the net a function that retrieves rectangles cvSetImageROI but the problem parts that I want to extract have different shapes. In short, help me!