morphErode

[ XITE Reference Manual | XITE home ]

Name

morphErode - morphological grayscale erode on a band.

Syntax

 #include <xite/morph.h>

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

Description

morphErode calculates the morphological operation erode, on the band inband, with a structuring element B. The result is sent to the band specified in outband. The actual calculation is performed with the equation:

 outband(x,y) = min[inband(x+i,y+j)-B(-i,-j)]

with i and j inside the structuring element B and (0,0) as the center pixel of B.

Restrictions

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

See also

morphErode(1), morphOpen(3), morphClose(3), morphDilate(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: morphErode.c,v 1.23 1997/03/18 12:09:16 svein Exp $