While working with a histogram we may need to detect a peak or crest of the histogram.But the histogram contains a number of local minima & maxima which makes the histogram extremely uneven.While detecting a peak or crest we are intended to detect the global peak or crest.This code replaces every local minima-maxima pair by a plate height of which is equal to the average height of the local minima-maxima pair and width is equal to the width of the local minima-maxima pair.Further smoothness is added as floor of the average value is taken as the crest value.This means if there are 2 or more consecutive plates of height say 5.87,5.89, 5.99 & so on ;they actually give rise to a single plate of height 5 and it ranges through more than 3 local minima-maxima pair.Now as the histogram becomes much smoother further work can be carried out on this histogram .
Bratati paul (2021). Removal of unevenness of a histogram (https://www.mathworks.com/matlabcentral/fileexchange/22693-removal-of-unevenness-of-a-histogram), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!