extrema1

[ XITE Reference Manual | XITE home ]

Name

extrema1 - detection of local minima and maxima

Syntax

extrema1 [-bg <bg>] [-fg <fg>] <inimage> <outimage>

Description

Local extrema (minima and maxima) are detected in inimage, and marked in outimage with value fg, foreground. All other pixels are marked bg, background. If you need to distinguish between minima and maxima, see extrema2.

The default for fg is 255, the bg default is 0.

See also

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

Restrictions

Supports ony unsigned byte images. bg and fg should not be equal, and they should be in 0..255.

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

Examples

 extrema1 -fg 0 -bg 1 mona.img monaextrem.img

Id

$Id: extrema1.c,v 1.20 1996/11/08 14:03:21 svein Exp $