RGBHistogram(pathNa​me)

Histogram of RGB images

You are now following this Submission

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 (2026). RGBHistogram(pathName) (https://www.mathworks.com/matlabcentral/fileexchange/51221-rgbhistogram-pathname), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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.