File Exchange

image thumbnail

Removal of unevenness of a histogram

version 1.0.0.0 (4.17 KB) by Bratati paul
Every local minima-maxima pair is replaced by a plate and histogram is smoothened

1 Download

Updated 16 Jan 2009

View License

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 .

Cite As

Bratati paul (2020). Removal of unevenness of a histogram (https://www.mathworks.com/matlabcentral/fileexchange/22693-removal-of-unevenness-of-a-histogram), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

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