If I'm using OpenCV (Python) and fit two shapes, like so:
a = cv2.fitEllipse(contours)
b = cv2.minAreaRect(contours)
Both a and b are represented as Box2D objects, which look something like:
center: (x, y)
size: (width, height)
rotation: angle
a and b are often going to be fairly similar, but not exact due to different fit methods. How can I find the shape (ellipse) that is the "average" of a and b? That is, the ellipse that is the best fit between a and b?
from OpenCV: Merging fitted shapes
No comments:
Post a Comment