Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Median filter support for large kernel

in the documentation medianBlur(InputArray src, OutputArray dst, int ksize)

src – input 1-, 3-, or 4-channel image; when ksize is 3 or 5, the image depth should be CV_8U, CV_16U, or CV_32F, for larger aperture sizes, it can only be CV_8U.

Large aperture size are not supported for more than 8 bit. Can someone please explain why? I'm trying to convert matlab code which uses medfilt2 function with a 7x7 kernel, however my image is 16 bits per pixel.

I know that openCV integrated this algorithm into median filter

Is there a plan to add 16 bit support for large kernels? I would like to try to use Intel Cilk plus to optimize the code for larger bits and larger kernels. has anyone come across this issue before? optimizing for 7x7 kernel for 16 bit depth images?