glRunLength
[ XITE Reference Manual | XITE home ]
Name
glRunLength - create the Grey level run length matrix
Syntax
#include <xite/texture.h>
void glRunLength( IBAND input, II_BAND output,
int hori, int vert, int average, int noofgl,
int* maxlength, int* noofruns );
Description
The run length statistics can be used to extract
texture information of an image from its grey level
runs. Consecutive pixels of the same grey value,
in a given direction (either horizontal or vertical),
constitute a run. The numbers of runs of different
lengths and grey values, arranged according to the
lengths and grey levels, form a 2-D matrix called
grey level run length matrix.
There are two possible directions to scan the image, either
horizontal or vertical directions. The average of these two
directions can also be chosen. Several features can be
extracted from this matrix.
Restrictions
input must have pixel type unsigned byte. output must
have pixel type integer.
See also
glRunLength(1)
Return value
0 => Ok
1 => bad pixel type in input band
2 => bad pixel type in output band
Author
Yogesan, BLAB, Ifi, UiO
Modified by
Tor Lønnestad, BLAB, Ifi, UiO
Id
$Id: glRunLength.c,v 1.27 1997/03/07 12:52:20 svein Exp $