morphOpen
[ XITE Reference Manual | XITE home ]
Name
morphOpen - morphological grayscale open on an image.
Syntax
morphOpen <-a | -b> <struct_element> <inimage> <outimage>
Description
morphOpen calculates the morphological operation
open 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 = morphDilate(morphErode(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
morphOpen(3), morphDilate(1), morphErode(1), morphClose(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
morphOpen ~blab/img/mona.img mona.img -a filter.txt
morphOpen ~blab/img/mona.img mona.img -b filter.img
Id
$Id: morphOpen.c,v 1.20 1997/01/16 16:06:44 svein Exp $