Color Histogram of an RGB Image

computes color histogram of an RGB image, number of bins is user input and is same for R,G and B.
8.9K Downloads
Updated 20 Nov 2013

View License

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
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Histograms in Help Center and MATLAB Answers
Acknowledgements

Inspired: RGB Image Histogram

Community Treasure Hunt

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

Start Hunting!
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