closestMinMax

[ XITE Reference Manual | XITE home ]

Name

closestMinMax - closest of minimum and maximum, noise reduction

Syntax

 #include <xite/minmax.h>

 BiffStatus closestMinMax( IBAND in_band,
    IBAND out_band, int dx, int dy );

Description

Compute minimum and maximum over a local region of size dx * dy. New center pixel value is the one of the two that is closest to the old center pixel value.

Restrictions

in_band and out_band must have pixel type unsigned byte.

Return value

 0 => ok
 1 => bad input pixel type
 2 => bad output pixel type
 3 => bad dx argument (less than 3)
 3 => bad dy argument (less than 3)

Author

Tor Lønnestad, BLAB, Ifi, UiO

Examples

closestMinMax(b1, b2, 3, 5);

Id

$Id: closestMinMax.c,v 1.25 1997/01/10 16:10:24 svein Exp $