Removal of unevenness of a histogram
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 (2024). 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 Compatibility
Windows macOS LinuxCategories
- Mathematics and Optimization > Global Optimization Toolbox > Global or Multiple Starting Point Search >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |