morphClose

[ XITE Reference Manual | XITE home ]

Name

morphClose - morphological grayscale close on an image.

Syntax

morphClose <-a | -b> <struct_element> <inimage> <outimage>

Description

morphClose calculates the morphological operation Close, on the image inimage, with a structuring element given by struct_element (in combination with option -a or -b). The result is sent to the image spesified in outimage.

The actual calculation is performed with the expression:

 outband = morphErode(morphDilate(inband))

Restrictions

Input images must be of the following types:

inimage
Unsigned byte.

struct_element
With option -a: Ascii characters (numbers) describing the structuring element. With option -b: BIFF image with pixel type signed short.

Options

-a struct_element
struct_element is an ascii file which contains the structuring element. See ascii2biff(1) for file format.

-b struct_element
struct_element is a BIFF image which contains the structuring element.

See also

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

Return value

 0 : OK
 1 : Usage message
 2 : Illegal number of arguments
 3 : No structuring element

Author

Martin Torpe Lie, BLAB, Ifi, UiO

Examples

morphClose ~blab/img/mona.img mona.img -a filter.txt morphClose ~blab/img/mona.img mona.img -b filter.img

Id

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