Reputation: 6726
Given a RotatedRect created around features using
rect = minAreaRect(points)
I would like that rectangle to be enlarged uniformly to produce a larger one, just as in this post. Since this is just a rectangle and not an arbitrary polygon it won't be too difficult to create a function for this but I'm hoping there is a standard way to do this in OpenCV since it seems like a useful function.
Upvotes: 1
Views: 513
Reputation: 10852
RotatedRect class contains fields: angle, center and size. Just increase size as you need.
Upvotes: 3