Click or drag to resize
CvInvokeConvexityDefects Method
http://www.emgu.com
Finds the convexity defects of a contour.

Namespace: Emgu.CV
Assembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.1.0.2282 (3.1.0.2282)
Syntax
public static void ConvexityDefects(
	IInputArray contour,
	IInputArray convexhull,
	IOutputArray convexityDefects
)

Parameters

contour
Type: Emgu.CVIInputArray
Input contour
convexhull
Type: Emgu.CVIInputArray
Convex hull obtained using ConvexHull that should contain pointers or indices to the contour points, not the hull points themselves, i.e. return_points parameter in cvConvexHull2 should be 0
convexityDefects
Type: Emgu.CVIOutputArray
The output vector of convexity defects. Each convexity defect is represented as 4-element integer vector (a.k.a. cv::Vec4i): (start_index, end_index, farthest_pt_index, fixpt_depth), where indices are 0-based indices in the original contour of the convexity defect beginning, end and the farthest point, and fixpt_depth is fixed-point approximation (with 8 fractional bits) of the distance between the farthest contour point and the hull. That is, to get the floating-point value of the depth will be fixpt_depth/256.0.
See Also