Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Does OpenCV implement order-statistic filtering other than median, minimum and maximum?

The MATLAB command ordfilt2 supports the "order" parameter when performing order-statistic filtering on 2D images.

While minimum, maximum and median filtering can be found on OpenCV, I couldn't find one that allows choice of "order" other than these special cases.

If one needs to go about implementing the general case (to match the MATLAB command's capabilities) with decent performance in C++ (and superior performance if possible), are there things to consider that will make it compatible with the rest of the OpenCV C++ API?

Considering the need of high-performance implementation, would it be easier or harder to implement in C++ or in a GPU language such as CUDA or OpenCL?

Thanks for advice.