glcmParameter

[ XITE Reference Manual | XITE home ]

Contents


Name

glcmParameter - Computes different features from the Grey Level Co-occurrence Matrix (GLCM)

Syntax

 glcmParameter [<option>...] <inimage>
 or
 glcmParameter -mkglcm [<option>...] <inimage> <dx> <dy>
     [<numberofgreylevels>]

Description

Computes nine features from the Grey Level Cooccurence Matrix of an image. Input can be a GLC-matrix (image) or a normal image. If it is a normal image, then the program will compute the GLC-matrix before computing the features. The user must specify this by giving the option -mkglcm and values for dx, dy and numberofgreylevels.

In the absence of options for what parameters to compute, all the parameters will be computed.

dx is horizontal distance (-50 <= dx <= 50), dy is vertical distance (-50 <= dy <= 50). Pixels less than numberofgreylevels will be considered. The default value is 256.

Options

-asm
Angular Second Moment of a GLCM.

-cont
Contrast of a GLCM.

-corr
Correlation of a GLCM.

-idm
Inverse Difference Moment of a GLCM.

-entrop
Entropy of a GLCM.

-var
Variance of a GLCM.

-prom
Cluster Prominence of a GLCM.

-shade
Cluster Shade of a GLCM.

-diag
Diagonal Moment of a GLCM.

-h
Print a header for the output.

-mkglcm
Input is an image, a GLC-Matrix must be computed.

-heq
Histogram equalization of the input image. The number of grey levels will be set to numberofgreylevels.

See also

glcm(1)

Author

Yogesan K., BLAB, Ifi, UiO

Examples

 glcmParameter -mkglcm mona.img 1 1 100
 glcmParameter -mkglcm -heq mona.img 1 1 100
 glcmParameter -mkglcm  mona.img 1 1
 glcmParameter -mkglcm -heq mona.img 1 1
 glcmParameter -prom -inert -corr mona.glcm
 glcmParameter mona.glcm
 glcmParameter -h -prom -inert -corr mona.glcm
 glcmParameter -mkglcm -h -prom -inert -corr mona.img 1 1
 glcmParameter -mkglcm -h -heq -prom -mona.img 1 1 100

Id

$Id: glcmParameter.c,v 1.26 1997/01/14 13:02:19 svein Exp $