RGBHistogram(pathNa​me)

Histogram of RGB images
159 Downloads
Updated 19 Jun 2015

View License

Given an input of the pathway to the file name from the current directory, this function calculates a histogram for both 8 bit and 16 bit images (scale down to 8 bit). Displays original image and histogram plot.

Cite As

Justin Spinner (2024). RGBHistogram(pathName) (https://www.mathworks.com/matlabcentral/fileexchange/51221-rgbhistogram-pathname), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Histograms in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

small fixes
Clean up some unnecessary variables (unused) and made sure of quickest method. Include new graphs (Normalized). Also, rgbBins(1:3,i) = [sum(sum((im(:,:,1:3)==thisBin(1,i))))]; is SLOWER than the more expanded version present in this function.