Click or drag to resize

Cv2GetRectSubPix Method

Retrieves a pixel rectangle from an image with sub-pixel accuracy.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void GetRectSubPix(
	InputArray image,
	Size patchSize,
	Point2f center,
	OutputArray patch,
	int patchType = -1
)

Parameters

image
Type: OpenCvSharpInputArray
Source image.
patchSize
Type: OpenCvSharpSize
Size of the extracted patch.
center
Type: OpenCvSharpPoint2f
Floating point coordinates of the center of the extracted rectangle within the source image. The center must be inside the image.
patch
Type: OpenCvSharpOutputArray
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