Start » Filter Reference » OpenCV » Geometric Image Transformations » cvGetRectSubPix

cvGetRectSubPix


Module: OpenCV

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

Name Type Range Description
Input value
inImage Image Source image.
Input value
inPatchWidth Integer 0 - Width of the extracted patch.
Input value
inPatchHeight Integer 0 - Height of the extracted patch.
Input value
inCenter Point2D Floating point coordinates of the center of the extracted rectangle within the source image. The center must be inside the image.
Input value
inPatchType Integer* Depth of the extracted pixels. By default, they have the same depth as src.
Output value
outDst Image Extracted patch.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Input image must not be empty in cvGetRectSubPix.
DomainError Only UInt8 and Real type pixel are supported in cvGetRectSubPix.

Complexity Level

This filter is available on Basic Complexity Level.