1 | initial version |
Seems like you can find them by looking at the convex hull of your shape and making your evaluations only on the hul points.
2 | No.2 Revision |
Seems like you can find them by looking at the convex hull of your shape and making your evaluations only on the hul points.hull points.
If you want axis aligned "calipers" you may use cv::boundingRect()
.
If you want the smallest bounding rect, minAreaRect()
might be helpful.