[−][src]Function opencv::cudawarping::remap
pub fn remap(
src: &dyn ToInputArray,
dst: &mut dyn ToOutputArray,
xmap: &dyn ToInputArray,
ymap: &dyn ToInputArray,
interpolation: i32,
border_mode: i32,
border_value: Scalar,
stream: &mut Stream
) -> Result<()>
Applies a generic geometrical transformation to an image.
Parameters
- src: Source image.
- dst: Destination image with the size the same as xmap and the type the same as src .
- xmap: X values. Only CV_32FC1 type is supported.
- ymap: Y values. Only CV_32FC1 type is supported.
- interpolation: Interpolation method (see resize ). INTER_NEAREST , INTER_LINEAR and INTER_CUBIC are supported for now.
- borderMode: Pixel extrapolation method (see borderInterpolate ). BORDER_REFLECT101 , BORDER_REPLICATE , BORDER_CONSTANT , BORDER_REFLECT and BORDER_WRAP are supported for now.
- borderValue: Value used in case of a constant border. By default, it is 0.
- stream: Stream for the asynchronous version.
The function transforms the source image using the specified map:
Values of pixels with non-integer coordinates are computed using the bilinear interpolation.
See also
remap
C++ default parameters
- border_mode: BORDER_CONSTANT
- border_value: Scalar()
- stream: Stream::Null()