File Exchange

image thumbnail

Histogram features of a gray level image

version 1.0 (2.76 KB) by

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

4.72727
11 Ratings

18 Downloads

Updated

View License

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

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

Comments and Ratings (15)

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.

Hongming

Thanks.

Esra

Esra (view profile)

thank you

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.

Mandeep

Can anyone help to explain the input arguments??

Xufeng Hua

3q

nurul

nurul (view profile)

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

sun peng

sun peng (view profile)

Very helpful!

Tetyana Ivanovska

Thank you.

Joie __

work good. correctly.

pierre cardin

thx

nsm ds

perfect and useful thanx.

cos alm

thanks

yue feng

Thx

MATLAB Release
MATLAB 7.5 (R2007b)

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

» Watch video