Table of Contents

Method GetRectSubPix

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

GetRectSubPix(InputArray, Size, Point2f, OutputArray, int)

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

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

Parameters

image InputArray

Source image.

patchSize Size

Size of the extracted patch.

center Point2f

Floating point coordinates of the center of the extracted rectangle within the source image. The center must be inside the image.

patch OutputArray

Extracted patch that has the size patchSize and the same number of channels as src .

patchType int

Depth of the extracted pixels. By default, they have the same depth as src.