Ask Your Question

Edge-preserving alternatives to Bilateral Filters

asked 2019-01-20 23:31:34 -0500

Martian gravatar image

Are there any other OpenCV implementations of edge-preserving or edge-enhancing filters other than Bilateral?

I'm also interested in whether speed can be improved. Bilateral can get slow.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-01-21 02:51:33 -0500

VxW gravatar image

you can use an anisotropic diffusion filter developed by Perona-Malik but it could be slow as well. try it out!

see here

edit flag offensive delete link more


I'm glad that I asked that question! There are a lot more interesting aspects to anisotropic diffusion than just filtering. Almost looks like a segmentation algorithm, from some of the images that I've seen. Have you compared the built-in bilateral filter with the ximgproc anisotropic diffusion filter? Any notable improvements?

Martian gravatar imageMartian ( 2019-01-23 03:03:04 -0500 )edit

PS: I would compare the filters myself, but I need to find out if I can build the ximgproc library separately. I had a tough time building the C++ version of OpenCV, and I don't want to risk messing up that build on my dev machine. That's probably a question best posed in a separate thread. For now, any comments on the anisotropic filter are welcome.

Martian gravatar imageMartian ( 2019-01-23 03:06:20 -0500 )edit

you can also try some implementations found by google. see here or here. Give attention to how often you apply the filtering

VxW gravatar imageVxW ( 2019-01-23 05:07:07 -0500 )edit

Very good. I had searched, but didn't find those particular links.

Martian gravatar imageMartian ( 2019-01-23 23:12:20 -0500 )edit

Question Tools

1 follower


Asked: 2019-01-20 23:31:34 -0500

Seen: 404 times

Last updated: Jan 21 '19