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
imageInputArraySource image.
patchSizeSizeSize of the extracted patch.
centerPoint2fFloating point coordinates of the center of the extracted rectangle within the source image. The center must be inside the image.
patchOutputArrayExtracted patch that has the size patchSize and the same number of channels as src .
patchTypeintDepth of the extracted pixels. By default, they have the same depth as src.