Cv2GetRectSubPix Method OpenCvSharp Class Library
Retrieves a pixel rectangle from an image with sub-pixel accuracy.

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

public static void GetRectSubPix(
	InputArray image,
	Size patchSize,
	Point2f center,
	OutputArray patch,
	int patchType = -1
)

Parameters

image
Type: OpenCvSharp.CPlusPlusInputArray
Source image.
patchSize
Type: OpenCvSharp.CPlusPlusSize
Size of the extracted patch.
center
Type: OpenCvSharp.CPlusPlusPoint2f
Floating point coordinates of the center of the extracted rectangle within the source image. The center must be inside the image.
patch
Type: OpenCvSharp.CPlusPlusOutputArray
Extracted patch that has the size patchSize and the same number of channels as src .
patchType (Optional)
Type: SystemInt32
Depth of the extracted pixels. By default, they have the same depth as src.
See Also

Reference