Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

From the doc:

Median and bilateral filters work with 1- or 3-channel 8-bit images and can not process images in-place.

You must use different matrices for input and output, e.g. cvSmooth(*src, *dst, CV_MEDIAN, param1, 0);