[−][src]Function opencv::cudawarping::warp_perspective
pub fn warp_perspective(
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 a perspective 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: 3x3 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 the 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
warpPerspective
C++ default parameters
- flags: INTER_LINEAR
- border_mode: BORDER_CONSTANT
- border_value: Scalar()
- stream: Stream::Null()