Start » Filter Reference » OpenCV » Image Filtering » cvPyrDown
Module: | OpenCV |
---|
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
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.