[][src]Function opencv::cudawarping::resize

pub fn resize(
    src: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray,
    dsize: Size,
    fx: f64,
    fy: f64,
    interpolation: i32,
    stream: &mut Stream
) -> Result<()>

Resizes an image.

Parameters

  • src: Source image.
  • dst: Destination image with the same type as src . The size is dsize (when it is non-zero) or the size is computed from src.size() , fx , and fy .
  • dsize: Destination image size. If it is zero, it is computed as: block formula Either dsize or both fx and fy must be non-zero.
  • fx: Scale factor along the horizontal axis. If it is zero, it is computed as: block formula
  • fy: Scale factor along the vertical axis. If it is zero, it is computed as: block formula
  • interpolation: Interpolation method. INTER_NEAREST , INTER_LINEAR and INTER_CUBIC are supported for now.
  • stream: Stream for the asynchronous version.

See also

resize

C++ default parameters

  • fx: 0
  • fy: 0
  • interpolation: INTER_LINEAR
  • stream: Stream::Null()