RGBHIST displays a histogram of the overall color balance of an image.
Use the 'RGB' mode to get a quick sense of which colors are present in particular highlight, shadow, and midtone regions. The 'LAB' mode is more useful for determining the actual color balance of an image, but it is slower.
This function supports UINT8, UINT16, INT8, INT16, and DOUBLE images without colormaps.
Jeff Mather (2022). Color Image Histogram (https://www.mathworks.com/matlabcentral/fileexchange/4875-color-image-histogram), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- MATLAB > Graphics > 2-D and 3-D Plots > Data Distribution Plots > Histograms >
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Region and Image Properties >
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Image Arithmetic >
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!