Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

multiple contour bounding box

Hi all. I am detecting contours in an image, and need to draw a bounding box around them all.

Right now i have a cluster of contours, and I need to run a polygon approximation that joins the external edges as a square. Picture the 'five' side of a dice, where only the dots are visible. I have each dot as a separate contour. How would I draw a square bounding box that connects the external corners and stays connecting them no matter what the rotation?

Thank you!

c++, visual studio.

multiple contour bounding box

Hi all. I am detecting contours in an image, and need to draw a bounding box around them all.

Right now i have a cluster of contours, and I need to run a polygon approximation that joins the external edges as a square. Picture the 'five' side of a dice, where only the dots are visible. I have each dot as a separate contour. How would I draw a square bounding box that connects the external corners and stays connecting them no matter what the rotation?

Thank you!

c++, visual studio.

multiple contour bounding box

Hi all. I am detecting contours in an image, and need to draw a bounding box around them all.

Right now i have a cluster of contours, and I need to run a polygon approximation that joins the external edges as a square. Picture the 'five' side of a dice, where only the dots are visible. I have each dot as a separate contour. How would I draw a square bounding box that connects the external corners and stays connecting them no matter what the rotation?

Thank you!

c++, visual studio.