2017. 11. 15. 13:42
minAreaRect
Finds a rotated rectangle of the minimum area enclosing the input 2D point set.
- C++:
minAreaRect
(InputArray points)
- Python:
cv2.
minAreaRect
(points) → retval
- C:
cvMinAreaRect2
(const CvArr* points, CvMemStorage* storage=NULL )
- Python:
cv.
MinAreaRect2
(points, storage=None) → Box2D Parameters: points – Input vector of 2D points, stored in:
std::vector<>
orMat
(C++ interface)CvSeq*
orCvMat*
(C interface)- Nx2 numpy array (Python interface)
The function calculates and returns the minimum-area bounding rectangle (possibly rotated) for a specified point set. See the OpenCV sample minarea.cpp
. Developer should keep in mind that the returned rotatedRect can contain negative indices when data is close the the containing Mat element boundary.
'OpenCV' 카테고리의 다른 글
matchShapes (0) | 2017.11.15 |
---|---|
내부 최대 원 찾기 - minEnclosingCircle (0) | 2017.11.15 |
적당한 선으로 채우기 fitLine (0) | 2017.11.15 |
구멍 채우기 - fitEllipse (0) | 2017.11.15 |
형태 볼록함 결점찾기, 구멍찾기 - convexityDefects (0) | 2017.11.15 |