Code covered by the BSD License  

Highlights from
3D histogram of RGB image

4.8 | 5 ratings Rate this file 26 Downloads (last 30 days) File Size: 138 KB File ID: #38685 Version: 1.0
image thumbnail

3D histogram of RGB image



Creates 3D-histogram from an RGB image in the form of balls within the RGB cube

| Watch this File

File Information

Takes RGB images in 24 bpp and computes the 3D histogram of such an image. I.e., splits every axis into 'n' bins thus making n^3 bins in total and shows the result in the form of 'bubbles' of different size within the RGB cube.

The function can be controlled by parameters. Besides the graphics produced, it can output also numerical results.

A short demo is included.

It should be noted that the very first inspiration came from seeing similar histograms at web page

See other products of our group at


This file inspired Rgb/Hsv Distribution.

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.10 (R2010a)
Other requirements Developed and tested on MATLAB Version (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
12 Sep 2015 Farshad

It's really nice, thanks

18 Nov 2013 Nikolay S.

Nikolay S. (view profile)

Very nice, good visualisation

06 Feb 2013 Tallha Akram

Nice Work....

06 Nov 2012 Fernando Flores  
26 Oct 2012 Sashi Kanth .....

nice code for histgrm...

Contact us