Pedro Serra
Pedro Serra

Reputation: 941

How can I do a Selective Gaussian Blur on OpenCV?

I would like to make a noise reducition filter on OpenCV just like the Gimp's Selective Gaussian Blur: https://docs.gimp.org/en/plug-in-sel-gauss.html

The filter compares each pixel with its surroundings and only blurs if the difference is lower the a maximum delta.

Upvotes: 2

Views: 1249

Answers (1)

chris
chris

Reputation: 1894

You can try cv2.bilateralFilter(): https://docs.opencv.org/2.4/modules/imgproc/doc/filtering.html#bilateralfilter

"bilateralFilter can reduce unwanted noise very well while keeping edges fairly sharp. However, it is very slow compared to most filters."

Upvotes: 1

Related Questions