@ -558,6 +558,8 @@ Constructs the Gaussian pyramid for an image.
:param maxlevel:0-based index of the last (the smallest) pyramid layer. It must be non-negative.
:param borderType:Pixel extrapolation method (BORDER_CONSTANT don't supported). See :ocv:func:`borderInterpolate` for details.
The function constructs a vector of images and builds the Gaussian pyramid by recursively applying
:ocv:func:`pyrDown` to the previously built pyramid layers, starting from ``dst[0]==src`` .
@ -1343,12 +1345,16 @@ Blurs an image and downsamples it.
:param dst:output image; it has the specified size and the same type as ``src``.
:param dstsize:size of the output image; by default, it is computed as ``Size((src.cols+1)/2, (src.rows+1)/2)``, but in any case, the following conditions should be satisfied:
:param dstsize:size of the output image.
..math::
:param borderType:Pixel extrapolation method (BORDER_CONSTANT don't supported). See :ocv:func:`borderInterpolate` for details.
By default, size of the output image is computed as ``Size((src.cols+1)/2, (src.rows+1)/2)``, but in any case, the following conditions should be satisfied:
The function performs the downsampling step of the Gaussian pyramid construction. First, it convolves the source image with the kernel:
@ -1358,8 +1364,6 @@ The function performs the downsampling step of the Gaussian pyramid construction
Then, it downsamples the image by rejecting even rows and columns.
pyrUp
-----
Upsamples an image and then blurs it.
@ -1376,12 +1380,16 @@ Upsamples an image and then blurs it.
:param dst:output image. It has the specified size and the same type as ``src`` .
:param dstsize:size of the output image; by default, it is computed as ``Size(src.cols*2, (src.rows*2)``, but in any case, the following conditions should be satisfied:
:param dstsize:size of the output image.
..math::
:param borderType:Pixel extrapolation method (only BORDER_DEFAULT supported). See :ocv:func:`borderInterpolate` for details.
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:
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