Is there a way to apply rank filter to an image using OPENCV?
I can only find 3 kind of rank filter API such as max, min and median filter in OPENCV, but I really want is a more general type of filter, it should have an index option to choose while ranking the kernel elements. Or, can I have some other solutions to work around it?
Thank you very much!
The census transform generally outperforms the rank transform. It is not hard to implement either yourself. To my knowledge neither are readily accessible in OpenCV, though some stereo correspondence classes/functions use the census transform.