Start » Filter Reference » OpenCV » Image Filtering » cvMedianBlur

cvMedianBlur


Module: OpenCV

Smoothes image using median filter.

Name Type Range Description
Input value
inSrc Image
Input value
inKSize Integer 3 -
Output value
outDst 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 inKSize parameter must be odd and bigger than 1 in cvMedianBlur.
DomainError Input image must have 1, 3 or 4 channels in cvMedianBlur.
DomainError When inKSize is 3 or 5, the input image's pixel should have UINT8, UINT16 or float type in cvMedianBlur.
DomainError When inKSize is greater than 5, the input image's pixel should have UINT8 type in cvMedianBlur.

Complexity Level

This filter is available on Basic Complexity Level.