[][src]Function opencv::imgproc::pyr_up

pub fn pyr_up(
    src: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray,
    dstsize: Size,
    border_type: i32
) -> Result<()>

Upsamples an image and then blurs it.

By default, size of the output image is computed as Size(src.cols\*2, (src.rows\*2), but in any case, the following conditions should be satisfied:

block formula

The function performs the upsampling step of the Gaussian pyramid construction, though it can actually be used to construct the Laplacian pyramid. First, it upsamples the source image by injecting even zero rows and columns and then convolves the result with the same kernel as in pyrDown multiplied by 4.

Parameters

  • src: input image.
  • dst: output image. It has the specified size and the same type as src .
  • dstsize: size of the output image.
  • borderType: Pixel extrapolation method, see #BorderTypes (only #BORDER_DEFAULT is supported)

C++ default parameters

  • dstsize: Size()
  • border_type: BORDER_DEFAULT