morphClose

[ XITE Reference Manual | XITE home ]

Name

morphClose - morphological grayscale close on a band.

Syntax

 #include <xite/morph.h>

 int morphClose( IBAND inband, IBAND outband,
    ISS_BAND B );

Description

morphClose calculates the morphological operation close on the band inband, with a structuring element B. The result is sent to the band spesified in outband. The actual calculation is performed with the expression:

 outband = morphErode(morphDilate(inband))

Restrictions

inband and outband must have pixel type unsigned byte, B must have pixel type signed short.

See also

morphClose(1), morphOpen(3), morphDilate(3), morphErode(3)

Return value

 0  :  OK
 1  :  Bad input pixel type
 2  :  Bad output pixel type
 3  :  Bad pixel type for structuring element

Author

Martin Torpe Lie, BLAB, Ifi, UiO

Id

$Id: morphClose.c,v 1.20 1997/01/16 16:05:32 svein Exp $