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);