4.6 | 8 ratings Rate this file 37 Downloads (last 30 days) File Size: 2.76 KB File ID: #17537

Histogram features of a gray level image



15 Nov 2007 (Updated )

This function is to calculate histogram features of a gray level image

| Watch this File

File Information

Following features are calculated:
% Mean
% Variance
% Skewness
% Kurtosis
% Energy
% Entropy

Any Other histogram based features can be easily incorporated.Enjoy it.

MATLAB release MATLAB 7.5 (R2007b)
Other requirements MATLAB 7.5 Windows XP SP2
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (12)
18 Dec 2013 Esra

thank you

02 Nov 2013 babak eh

The code line for entropy should be changed as the log(Prob) when prob=0 goes to -inf.

to fix this simply change the line to:
Entropy = -sum(Prob.*log(max(Prob,min(Prob(Prob~=0)))));

there are many other ways to fix this.

01 May 2012 Mandeep

Can anyone help to explain the input arguments??

27 Apr 2011 Xufeng Hua


10 Mar 2011 nurul

Can anyone help me, how I want run this coding??

13 Mar 2009 sun peng

Very helpful!

18 Jul 2008 Tetyana Ivanovska

Thank you.

12 Jun 2008 Joie __

work good. correctly.

19 Mar 2008 pierre cardin


22 Nov 2007 nsm ds

perfect and useful thanx.

21 Nov 2007 cos alm


19 Nov 2007 yue feng


Contact us