Category
Function
Applies a binary morphological operator to a field.
Syntax
output = Morph(input, operation, mask);
Inputs
Name | Type | Default | Description |
---|---|---|---|
input | field | none | input data |
operation | string | "erode" | the operation to be applied |
mask | value or string | "box" | the mask element |
Outputs
Name | Type | Description |
---|---|---|
output | field | morphologically transformed input |
Functional Details
This module applies one of the following binary morphological operators to input data:
"close" "dilate" "erode" "open"The input data are treated much as booleans are in the C language (e.g., 0 = FALSE and nonzero = TRUE).
The mask parameter (see below) is centered on each position in input in turn, and all positions corresponding to "1" in the mask are considered for operation (see below).
input | is the input data to be operated on. |
operation | specifies one of the following:
|
mask | specifies one of the following:
|
The module supports all data types and, like Filter, requires regular connections (quads or cubes). It handles both position- and connection-dependent data.
If the data are vectors, each element of a vector is transformed independently. Because the module returns a 0/1 output, its output is always TYPE_UBYTE.
Note: Data along the boundary are replicated to fill the overlap region for the filter.
Components
Modifies the "data" component. All other components are propagated to the output.
Example Visual Program
UsingMorph.net
See Also
[Data Explorer Home Page | Contact Data Explorer | Same document on Data Explorer Home Page ]