extrema1
[ XITE Reference Manual | XITE home ]
Name
extrema1 - detection of local minima and maxima
Syntax
#include <xite/extrema.h>
int extrema1( IBAND inband, IBAND outband,
int fg, int bg );
Description
Local extrema (minima and maxima) are detected in
inband, and marked in outband with value fg,
foreground. All other pixels are marked bg,
background. If you need to distinguish between
minima and maxima, see extrema2.
Restrictions
Supports only unsigned byte.
See also
extrema1(1), extrema2(3), minima(3), maxima(3)
Return value
0 => ok
1 => bad input pixel type
2 => bad output pixel type
3 => bad fg or bg value
Reference
B.B. Chaudhuri and B.Uma Shankar:
"An efficient algorithm for extrema detection in
digital images"
Pattern Recognition Letters 10 (1989), 81-85.
Author
Tor L|nnestad, BLAB, ifi, UiO
Id
$Id: extrema1.c,v 1.20 1996/11/08 14:03:21 svein Exp $