Click or drag to resize

MatGetRectSubPix 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 Mat GetRectSubPix(
	Size patchSize,
	Point2f center,
	int patchType = -1
)

Parameters

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.
patchType (Optional)
Type: SystemInt32
Depth of the extracted pixels. By default, they have the same depth as src.

Return Value

Type: Mat
Extracted patch that has the size patchSize and the same number of channels as src .
See Also