1

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.

Community
  • 1
  • 1
Joseph Sheedy
  • 6,296
  • 4
  • 30
  • 31

1 Answers1

3

RotatedRect class contains fields: angle, center and size. Just increase size as you need.

Andrey Smorodov
  • 10,649
  • 2
  • 35
  • 42