glcm
[ XITE Reference Manual | XITE home ]
Name
glcm - Computes Grey Level Cooccurrence Matrix
Syntax
#include <xite/texture.h>
int glcm( IBAND input, ID_BAND output, int dx,
int dy, int nogreylevel );
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. All the
greylevel values (< nogreylevels) on the input band will
be increased by one on the output band coordinate system.
It means that if there is a greylevel combination (0,1) on the
input band then the index (1,2) on the output band will
be increased.
Restrictions
input must have pixel type unsigned byte. output must
have pixel type double.
Return value
0 => ok
1 => there are grey levels > "nogreylevel" in
the input band
2 => bad pixel type in input
3 => output is not integer type
4 => horizontal size of output is less than "nogreylevel"
5 => vertical size of output is less than "nogreylevel"
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.
Author
Yogesan K., BLAB, Ifi, UiO
Id
$Id: glcm.c,v 1.16 1997/01/14 13:02:18 svein Exp $