File Exchange

image thumbnail

imHistogram

version 1.0 (2.95 KB) by

Histogram of 2D/3D grayscale or color images

6 Downloads

Updated

View License

Generic function for computing histogram of an image. Image can be either 2D or 3D, grayscale or color. For color images, the result is the concatenation of the histogram computed for each band.

If no output is requested, the histogram is plotted on the current axis.

Several options can be applied, like min and max levels to consider, number of histogram bins, location of bin centers, region of interest.

please send bug reports to author (david.legland at grignon.inra.fr).

Comments and Ratings (3)

Pascal

Pascal (view profile)

This is exactly what I was looking for. Thank you!

David Legland

David Legland (view profile)

@RAP DNN: This function is designed to compute the histogram of a single image. It should not be difficult to make a loop and apply it to a collection of images, but this kind of question should be posted in matlab forum imho..

RAP DNN

please tell me how to compute the same for a database of images ?

MATLAB Release
MATLAB 7.9 (R2009b)

MATLAB Online Live Editor Challenge

Win cash prizes and have your live script featured on our website

Learn more

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

» Watch video