Is there a way to apply rank filter to an image using OPENCV?

asked 2017-02-16 19:29:41 -0600

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!

edit retag flag offensive close merge delete

Comments

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.

Der Luftmensch gravatar imageDer Luftmensch ( 2017-02-16 21:08:40 -0600 )edit