Start » Filter Reference » OpenCV » Geometric Image Transformations » cvGetRectSubPix
Module: | OpenCV |
---|
Retrieves the pixel rectangle from an image with sub-pixel accuracy.
Name | Type | Range | Description | |
---|---|---|---|---|
![]() |
inImage | Image | Source image. | |
![]() |
inPatchWidth | Integer | 0 - ![]() |
Width of the extracted patch. |
![]() |
inPatchHeight | Integer | 0 - ![]() |
Height of the extracted patch. |
![]() |
inCenter | Point2D | Floating point coordinates of the center of the extracted rectangle within the source image. The center must be inside the image. | |
![]() |
inPatchType | Integer* | Depth of the extracted pixels. By default, they have the same depth as src. | |
![]() |
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.