glcm
[ XITE Reference Manual | XITE home ]
Name
glcm - Computes Grey Level Cooccurrence Matrix
Syntax
glcm [-heq] <inimage> <outimage> <dx> <dy> [<noofgreylevels>]
Description
Computes the Grey Level Cooccurence Matrix of an image.
The angle and the displacement will be computed from the
given dx and dy. dx and dy can be negative. The
output image (or grey level cooccurrence matrix) will be of
size noofgreylevels x noofgreylevels. All the greylevel
values (< nogreylevels) on the input image will
be increased by one on the output image coordinate system.
It means that if there is a greylevel combination (0,1) on the
input image then the index (1,2) on the output image will
be increased.
dx, horizontal distance, must fulfill (-50 <= dx <= 50).
dy, vertical distance, must fulfill (-50 <= dy <= 50).
Pixels less than noofgreylevels will be considered. If the
option -heq is set, then the histogram equalization will be
performed on the input image and the number of grey levels
will be set to noofgreylevels. Default is 256.
Options
-
-heq
- Histogram equalize inimage.
Reference
R. M. Haralick, K. Shanmugam, and I. Dinstein,
"Textural Features for Image Classification",
IEEE Trans. on Systems, Man and Cybernetics,
Vol. SMC-3, pp. 610-621, 1973.
Restrictions
inimage must have bands with pixel type unsigned byte.
Author
Yogesan K., BLAB, Ifi, UiO
Examples
glcm mona.img monaglcm.img 1 1 100
glcm -heq mona.img monaglcm.img 1 1 100
glcm mona.img monaglcm.img 1 1
glcm -heq mona.img monaglcm.img 1 1
Id
$Id: glcm.c,v 1.16 1997/01/14 13:02:18 svein Exp $