mtex icon indicating copy to clipboard operation
mtex copied to clipboard

Feature request: Implementing Edge preserving Bilateral Filter in MTEX

Open GolamRashed opened this issue 6 years ago • 2 comments

Bilateral Filter is widely used in image processing, yet it is a simple non-linear, edge-preserving, and noise-reducing smoothing filter. Unlike halfQuadraticFilter, it does not require any coefficient value to input (need to set averaging window pixels).

It would be better to have this filter in MTEX. Below are two MATLAB implementations of Bilateral Filter for reference -

  1. https://www.mathworks.com/matlabcentral/fileexchange/12191-bilateral-filtering
  2. https://github.com/GKalliatakis/Bilateral-Filtering

GolamRashed avatar Jun 12 '18 17:06 GolamRashed

Hi Rashed,

thank you for the suggestion. I will take a look on this. Just two corrections

  1. The bilateral filter even requires two parameters to be specified. Actually, I think there is nothing bad with have parameters.
  2. I'm not so sure why this approach should be better then the halfQuadraticFilter.

Ralf.

ralfHielscher avatar Jun 12 '18 21:06 ralfHielscher

Hi Ralf,

Yes, need to set averaging window pixels in Bilateral Filter, but not coefficient like in halfQuadraticFilter. Median and Spline filter is over-smoothing (loss of sharp detail), the aforementioned halfQuadraticFilter is quite new to most users whereas Bilateral filter is as well known as Median yet better.

GolamRashed avatar Jun 13 '18 10:06 GolamRashed