ASM (Angular Second Moment)

Share:

Description

calculates Angular Second Moment (ASM) measure

Usage

1
calcASM(rawmat)

Arguments

rawmat

assigns the Grey Level Co-occurrence Matrix for ASM calculation

Details

Angular Second Moment (ASM) measure belongs to the orderlines group of texture measures. It is sometimes also called Energy or Uniformity. High values occur when the window ist very orderly

Value

returns ASM value

Author(s)

H.-J. Klemmt

References

Toennies, D., 2005: Grundlagen der Bildverarbeitung, 341 S., Pearson Studium Harralick, R.M., Shanmugam, K., Dinstein, I., 1973: Textural Features for image classification. IEEE Transactions on Systems, Man and Cybernetics, SMC vol. 3 no. 6, pp. 610-620.

See Also

The GLCM-Tutorial by Mryka Hall-Beyer, http://www.fp.ucalgary.ca/mhallbey/asm.htm

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data<-c(0,0,1,1,0,0,1,1,0,2,2,2,2,2,3,3)
mat<-matrix(data, nrow=4, byrow=TRUE)
(mat)
GLCM<-genGLCM(2,1,mat)
(GLCM)
(calcASM(GLCM))
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (rawmat) 
{
    return(sum(rawmat^2))
  }