Skip to main content
. 2023 Apr 7;12(8):2762. doi: 10.3390/jcm12082762

Table A2.

Formulae to calculate gray level co-occurrence matrix from the gray-scale image.

Feature Name Formulae
Contrast i=0G1j=0G1ij2p(i,j) (A6)
Correlation i=0G1j=0G1ijpi,jµiµjδiδj
where µi is average and δi is standard deviation for pi
(A7)
Homogeneity i=0G1j=0G1p(i,j)1+ij2 (A8)
Entropy i=0G1j=0G1pi,jlog2(pi,j) (A9)
Angular second moment i=0G1j=0G1p2i,j (A10)
Sum average m=1Gmpsumm (A11)
Sum variance m=1Gmsumavg2psumm (A12)
Difference variance m=1Giµdif2pdifm (A13)
Difference entropy m=1Gpdifmlogpsumm (A14)
Sum entropy m=1Gpsummlogpsumm (A15)
Sum of squares i=0G1j=0G1iµ2p(i,j) (A16)