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
Parameters
- 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. - patchType (Optional)
- Type: SystemInt32
Depth of the extracted pixels. By default, they have the same depth as src.
Return Value
Type: MatExtracted patch that has the size patchSize and the same number of channels as src .
See Also