Start » Filter Reference » OpenCV » Image Filtering » cvPyrDown

cvPyrDown


Module: OpenCV

Smoothes an image and downsamples it.

Name Type Range Description
Input value
inSrc Image Source image.
Input value
inDstWidth Integer* 0 - Width of the destination image. By default, it is computed as [src.cols+1]/2.
Input value
inDstHeight Integer* 0 - Height of the destination image. By default, it is computed as [src.rows+1]/2.
Output value
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.