[][src]Function opencv::cudawarping::warp_affine

pub fn warp_affine(
    src: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray,
    m: &dyn ToInputArray,
    dsize: Size,
    flags: i32,
    border_mode: i32,
    border_value: Scalar,
    stream: &mut Stream
) -> Result<()>

Applies an affine transformation to an image.

Parameters

  • src: Source image. CV_8U , CV_16U , CV_32S , or CV_32F depth and 1, 3, or 4 channels are supported.
  • dst: Destination image with the same type as src . The size is dsize .
  • M: 2x3 Mat or UMat transformation matrix.
  • dsize: Size of the destination image.
  • flags: Combination of interpolation methods (see resize) and the optional flag WARP_INVERSE_MAP specifying that M is an inverse transformation ( dst=>src ). Only INTER_NEAREST , INTER_LINEAR , and INTER_CUBIC interpolation methods are supported.
  • borderMode:
  • borderValue:
  • stream: Stream for the asynchronous version.

See also

warpAffine

C++ default parameters

  • flags: INTER_LINEAR
  • border_mode: BORDER_CONSTANT
  • border_value: Scalar()
  • stream: Stream::Null()