Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Create contour from corner points

Hi,

I would like to check, if a given point is inside or outside of a given shape. I have already found the pointPolygonTest() function for this purpose. But my problem is, that I only have the corners of the shape, and I know that the edges are straight. Is there a way to create contours[] straight form the corner points? The only solution I found is to render (write into Mat) the edges and detect the shape to get the contours. But I actually dont need the rendered shape, I only want to perform this test. So I would like to skip this step if possible...

Thank you for any answers! Mary-Ann