imgproc

Contour

fields

Contour = {
numPoints : number ,
area : number ,
isConvex : boolean ,
hierarchy : Vec4
}

functions

approxPolyDP

Result : Point2 []
approxPolyDP ( epsilon : number , closed : boolean ) : Result

arcLength

Result : number
arcLength ( closed : boolean = false ) : Result

boundingRect

Result : Rect
boundingRect () : Result

convexHull

Result : Contour
convexHull ( clockwise : boolean = false ) : Result

convexHullIndices

Result : uint []
convexHullIndices ( clockwise : boolean = false ) : Result

convexityDefects

Result : Vec4 []
convexityDefects ( hullIndices : uint []) : Result

fitEllipse

Result : RotatedRect
fitEllipse () : Result

getPoints

Result : Point2 []
getPoints () : Result

matchShapes

Result : number
matchShapes ( contour2 : Contour , method : uint ) : Result

minAreaRect

Result : RotatedRect
minAreaRect () : Result

minEnclosingCircle

Result = {
center : Point2 ,
radius : number
}
minEnclosingCircle () : Result

minEnclosingTriangle

Result : Point2 []
minEnclosingTriangle () : Result

moments

Result : Moments
moments () : Result

pointPolygonTest

Result : number
pointPolygonTest ( pt : Point2 ) : Result