[−][src]Function opencv::imgproc::get_rect_sub_pix
pub fn get_rect_sub_pix(
image: &dyn ToInputArray,
patch_size: Size,
center: Point2f,
patch: &mut dyn ToOutputArray,
patch_type: i32
) -> Result<()>
Retrieves a pixel rectangle from an image with sub-pixel accuracy.
The function getRectSubPix extracts pixels from src:
where the values of the pixels at non-integer coordinates are retrieved using bilinear interpolation. Every channel of multi-channel images is processed independently. Also the image should be a single channel or three channel image. While the center of the rectangle must be inside the image, parts of the rectangle may be outside.
Parameters
- image: Source image.
- patchSize: Size of the extracted patch.
- center: Floating point coordinates of the center of the extracted rectangle within the source image. The center must be inside the image.
- patch: Extracted patch that has the size patchSize and the same number of channels as src .
- patchType: Depth of the extracted pixels. By default, they have the same depth as src .
See also
warpAffine, warpPerspective
C++ default parameters
- patch_type: -1