Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Image Filtering » cvPyrDown

cvPyrDown


Smoothes an image and downsamples it.

Name Type Range Description
inSrc Image Source image.
inDstWidth Integer* 0 - Width of the destination image. By default, it is computed as [src.cols+1]/2.
inDstHeight Integer* 0 - Height of the destination image. By default, it is computed as [src.rows+1]/2.
outDst Image Output image.

Description

Function performs the downsampling step of the Gaussian pyramid construction. First it convolves the source image with gaussian kernel, then it downsamples the image by rejecting even rows and columns.

Examples

cvPyrDown performed on sample image.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Input image must have pixel type different from Int8 and Int32 in cvPyrDown.
DomainError Input image must not be empty in cvPyrDown.

Complexity Level

This filter is available on Basic Complexity Level.