Color Histogram of an RGB Image
Computes color histogram of an RGB image, number of bins(for each color component) is user input and is same for R,G and B. The output histogram can be un-normalized, l1-normalized or l2-normalized. The functin can compute color histogram for an image for a patch also.
Cite As
Konda Reddy Mopuri (2024). Color Histogram of an RGB Image (https://www.mathworks.com/matlabcentral/fileexchange/43630-color-histogram-of-an-rgb-image), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: RGB Image Histogram
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.4.0.0 | A new function 'rgbhist_fast.m' is added to the existing 'rgbhist.m' function. The new function is nearly four times faster. |
||
1.1.0.0 | Added the normalization option. The function can output un-normalized or l1-normalized or l2-normalized histogram. |
||
1.0.0.0 |