extrema2

[ XITE Reference Manual | XITE home ]

Name

extrema2 - detection of local minima and maxima

Syntax

 #include <xite/extrema.h>

 int extrema2( IBAND inband, IBAND outband,
    int min, int max, int bg );

Description

Local extrema (minima and maxima) are detected in inband, and marked in outband. Minima are marked with value min, maxima are marked max, and all other pixels are marked bg, background. If you do not want to distinguish between minima and maxima, see extrema1.

Restrictions

Supports only unsigned byte.

See also

extrema2(1), extrema1(3), minima(3), maxima(3)

Return value

 0 => ok
 1 => bad input pixel type
 2 => bad output pixel type
 3 => bad min, max 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: extrema2.c,v 1.20 1996/11/08 14:03:22 svein Exp $