closestMinMax

[ XITE Reference Manual | XITE home ]

Name

closestMinMax - closest of minimum and maximum, noise reduction

Syntax

 closestMinMax <inimage> <outimage> [<dx> [<dy>]]

Description

closestMinMax computes 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. If dx is given, but not dy, dy is set to dx. If neither are given, both are set to 3.

See also

Restrictions

inimage must have bands with pixel type unsigned byte.

Author

Tor Lønnestad, BLAB, Ifi, UiO.

Examples

 closestMinMax mona.img monamin.img
 closestMinMax mona.img monamin.img 7
 closestMinMax mona.img monamin.img 3 5

Id

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