maxHisto

[ XITE Reference Manual | XITE home ]

Name

maxHisto - texture measure

Syntax

 #include <xite/median.h>

 int maxHisto( IBAND input, IBAND output,
    int nx, int ny );

Description

Filters the input band into the output band using a local filter with window size nx x ny. The number of occurrences of the pixel value occurring most frequently in the window becomes the new center value. Even values of nx or ny are increased by one. Uses histogram updating when moving horizontally from pixel to pixel. If histogram value is larger than 255, 255 is used.

Return value

 0 => ok
 1 => bad pixel type input band
 2 => bad pixel type output band
 3 => bad nx value (less than 1 or greater than xsize)
 4 => bad ny value (less than 1 or greater than ysize)

Reference

Lowitz, Gabriel E.: "Can a Local Histogram Really Map Texture Information?" Pattern Rec., Vol. 16, pp141-147, 1983.

Author

Tor Lønnestad, BLAB, Ifi, UiO

Id

$Id: maxHisto.c,v 1.24 1997/01/10 19:39:57 svein Exp $