File Exchange

image thumbnail

3D histogram of RGB image

version 1.0 (138 KB) by

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

4.875
8 Ratings

9 Downloads

Updated

View License

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
http://ij-plugins.sourceforge.net/ij-vtk/color-space/index.html

See other products of our group at
http://splab.cz/

Comments and Ratings (9)

Kondal Rao J

Sir, what is this below step? why we need to do it ( color index)
index = n * a +n^2 *b + c + 1;

cheng yang

nice

wonderful

Manel

Manel (view profile)

Farshad

It's really nice, thanks

Nikolay S.

Nikolay S. (view profile)

Very nice, good visualisation

Tallha Akram

Nice Work....

nice code for histgrm...

MATLAB Release
MATLAB 7.10 (R2010a)
Acknowledgements

Inspired: RGB/HSV Distribution

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video