fractile_mask

[ XITE Reference Manual | XITE home ]

Name

fractile_mask - noise reduction filtering

Syntax

 #include <xite/median.h>

 int fractile_mask( IBAND inband, IBAND outband,
    ISS_BAND mask, int mirror, double fractile );

Description

Filters the input band into the output band using a sorting filter using mask. Sorts all elements in the inimage according to mask and selects the fractile pixel.

If fractile = 0.5, this is a median filter. If fractile is 0.0, this is a mean filter. If fractile is 1.0, this is a max-filter. If mirror is true, the mask is mirrored with respect to origo before it is applied.

Restrictions

inband and outband must have pixeltype unsigned byte. All non-complex pixeltypes are handled. The two bands must also have the same size.

Return value

 0 => ok
 2 => input band must be of same type as output band
 3 => input band must be of same size as output band

Author

Otto Milvang, BLAB, Ifi, UiO

Id

$Id: fractile_mask.c,v 1.19 1997/01/29 10:43:20 svein Exp $