morphDilate

[ XITE Reference Manual | XITE home ]

Name

morphDilate - morphological grayscale dilate on a band.

Syntax

 #include <xite/morph.h>

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

Description

morphDilate calculates the morphological operation dilate, 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 equation:

 outband(x,y) = max[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

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

See also

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