Function build_pyramid

Source
pub fn build_pyramid(
    src: &impl ToInputArray,
    dst: &mut impl ToOutputArray,
    maxlevel: i32,
    border_type: i32,
) -> Result<()>
Expand description

Constructs the Gaussian pyramid for an image.

The function constructs a vector of images and builds the Gaussian pyramid by recursively applying pyrDown to the previously built pyramid layers, starting from dst[0]==src.

§Parameters

  • src: Source image. Check pyrDown for the list of supported types.
  • dst: Destination vector of maxlevel+1 images of the same type as src. dst[0] will be the same as src. dst[1] is the next pyramid layer, a smoothed and down-sized src, and so on.
  • maxlevel: 0-based index of the last (the smallest) pyramid layer. It must be non-negative.
  • borderType: Pixel extrapolation method, see [border_types] ([BORDER_CONSTANT] isn’t supported)

§C++ default parameters

  • border_type: BORDER_DEFAULT