litSnn
[ XITE Reference Manual | XITE home ]
Name
litSnn - texture measure, combination of lit and snn
Syntax
#include <xite/snn.h>
int litSnn( IBAND input, IBAND output, int dp,
int dx, int dy );
Description
Combination of lit - local information transform -
and snn - symmetric nearest neighbour. Only those
pixels selected by the snn filter are included in
the counting of pixels within the pixel value
interval [centerpixel-dp..centerpixel+dp]. The
output pixel value is the number of such pixels
within the window. Uses a rectangular processing
window of size dx * dy.
dp is the delta pixel value.
Restrictions
input and output must have pixel type unsigned byte.
Even values of dx and dy are increased by one.
dx, dy and dp should be positive.
Return value
0 => ok
1 => Bad input pixel type
2 => Bad output pixel type
3 => Bad dx value (less than 0)
4 => Bad dy value (less than 0)
5 => Bad dp value (less than 0)
Author
Tor Lønnestad, BLAB, Ifi, UiO
Id
$Id: litSnn.c,v 1.23 1997/01/10 19:42:34 svein Exp $