Haralick Textural Features: Difference between revisions

Line 38: Line 38:
There are 14 values Haralick ''et al.'' compute per co-occurance matrix. The mean and range among the four matrices are used to get 28 features.
There are 14 values Haralick ''et al.'' compute per co-occurance matrix. The mean and range among the four matrices are used to get 28 features.
# Angular second moment: <math>f_1 = \sum_i \sum_j p(i,j)^2</math>
# Angular second moment: <math>f_1 = \sum_i \sum_j p(i,j)^2</math>
# Contrast:
# Contrast: <math>f_2 = \sum_{n=0}^{N_{g-1}} n^2 \{ \underset{|i-j|=n}{\sum_{i=1}^{N-g}\sum_{j=1}^{N-g}} p(i,j) \}</math>
# Correlation:
# Correlation: <math>f_3 = \frac{\sum_i \sum_j (ij)p(i,j) - \mu_x \mu_y}{\sigma_x \sigma_y}</math>
# Sum of squares variance:
# Sum of squares variance: <math>f_4 = \sum_i \sum_j (i-\mu)^2 p(i,j)</math>
# Inverse difference moment:
# Inverse difference moment: <math>f_5 = \sum_i \sum_j \frac{1}{1+(i-j)^2} p(i,j)</math>
# Sum Average:
# Sum Average: <math>f_6 = \sum_{i=2}^{2N_g} ip_{x+y}(i)</math>
# Sum Entropy:
# Sum Entropy: <math>f_7 = \sum_{i=2}^{2N_g} (i-f_6)^2 p_{x+y}(i)</math>
# Entropy:
# Entropy:
# Difference Variance:
# Difference Variance: