hmf1(A,n)

Version 1.0.0.0 (1.99 KB) by SARATH JV
This is modified median filter consisting of more than 2median value calculation.
30 Downloads
Updated 7 Feb 2018

View License

it performs hybrid median filtering of the matrix A using a NxN box. Hybrid median filtering preserves edges better than a NxN square kernel-based median filter because data from different spatial directions are ranked separately. Three median values are calculated int he NxN box: MR is the median of horizontal and vertical R pixels, and MD is the median of diagonal D pixels. The filtered value is the median of the two median values and the central pixel C: median([MR,MD,C]). For N = 5:

Cite As

SARATH JV (2024). hmf1(A,n) (https://www.mathworks.com/matlabcentral/fileexchange/65981-hmf1-a-n), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Hybrid median filtering

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0