Cv2CornerSubPix Method OpenCvSharp Class Library
adjusts the corner locations with sub-pixel accuracy to maximize the certain cornerness criteria

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static Point2f[] CornerSubPix(
	InputArray image,
	IEnumerable<Point2f> inputCorners,
	Size winSize,
	Size zeroZone,
	CvTermCriteria criteria
)

Parameters

image
Type: OpenCvSharp.CPlusPlusInputArray
Input image.
inputCorners
Type: System.Collections.GenericIEnumerablePoint2f
Initial coordinates of the input corners and refined coordinates provided for output.
winSize
Type: OpenCvSharp.CPlusPlusSize
Half of the side length of the search window.
zeroZone
Type: OpenCvSharp.CPlusPlusSize
Half of the size of the dead region in the middle of the search zone over which the summation in the formula below is not done. It is used sometimes to avoid possible singularities of the autocorrelation matrix. The value of (-1,-1) indicates that there is no such a size.
criteria
Type: OpenCvSharpCvTermCriteria
Criteria for termination of the iterative process of corner refinement. That is, the process of corner position refinement stops either after criteria.maxCount iterations or when the corner position moves by less than criteria.epsilon on some iteration.

Return Value

Type: Point2f

[Missing <returns> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.CornerSubPix(OpenCvSharp.CPlusPlus.InputArray,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.Point2f},OpenCvSharp.CPlusPlus.Size,OpenCvSharp.CPlusPlus.Size,OpenCvSharp.CvTermCriteria)"]

See Also

Reference