mtex-toolbox / mtex

MTEX is a free Matlab toolbox for quantitative texture analysis. Homepage:
http://mtex-toolbox.github.io/
GNU General Public License v2.0
287 stars 185 forks source link

Feature request: Implementing Edge preserving Bilateral Filter in MTEX #346

Open GolamRashed opened 6 years ago

GolamRashed commented 6 years ago

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
ralfHielscher commented 6 years ago

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.

GolamRashed commented 6 years ago

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.