4.7
4.7 | 10 ratings Rate this file 25 Downloads (last 30 days) File Size: 2.76 KB File ID: #17537 Version: 1.0

Histogram features of a gray level image

by

Xunkai Wei (view profile)

 

15 Nov 2007 (Updated )

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

| Watch this File

File Information
Description

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 (14)
06 Aug 2015 firat

firat (view profile)

Thank you.

Please correct me if I am wrong, but you calculate the power rather than the energy in the script.

23 Jun 2015 Hongming

Thanks.

18 Dec 2013 Esra

Esra (view profile)

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.

Comment only
01 May 2012 Mandeep

Can anyone help to explain the input arguments??

Comment only
27 Apr 2011 Xufeng Hua

3q

Comment only
10 Mar 2011 nurul

nurul (view profile)

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

Comment only
13 Mar 2009 sun peng

sun peng (view profile)

Very helpful!

18 Jul 2008 Tetyana Ivanovska

Thank you.

12 Jun 2008 Joie __

work good. correctly.

19 Mar 2008 pierre cardin

thx

22 Nov 2007 nsm ds

perfect and useful thanx.

21 Nov 2007 cos alm

thanks

19 Nov 2007 yue feng

Thx

Contact us