MorphologicalGradient¶
- MacroModule¶
genre
author
package
definition
see also
keywords
Purpose¶
The module MorphologicalGradient is a simple edge detection filter based on a combination of a dilation and an erosion of the input image.
Windows¶
Default Panel¶
Input Fields¶
imageIn¶
- name: imageIn, type: Image¶
Output Fields¶
imageOut¶
- name: imageOut, type: Image¶
Parameter Fields¶
Field Index¶
|
|
|
|
|
Visible Fields¶
Dilation Size¶
- name: dilationSize, type: Integer, default: 3, minimum: 1¶
Sets the size of the dilation kernel.
Erosion Size¶
- name: erosionSize, type: Integer, default: 3, minimum: 1¶
Sets the size of the erosion kernel.
Use spherical kernel¶
- name: sphericalKernel, type: Bool, default: FALSE¶
If checked, a spherical kernel is used instead of a square kernel.
Use 3D¶
- name: threeDimensional, type: Bool, default: FALSE¶
If checked, the module uses a 3D kernel instead of a 2D kernel.
Gradient Type¶
- name: gradientType, type: Enum, default: Central¶
Defines the order in which dilation and erosion are performed.
The following symbols are used:
Symbol
Meaning
I
Image
⊕
Dilation
⊖
Erosion
B
Structuring Element (Kernel)
Values:
Title |
Name |
Description |
|---|---|---|
Central |
Central |
| (I ⊕ B) - (I ⊖ B) | |
Outer |
Outer |
| (I ⊕ B) - ((I ⊕ B) ⊖ B) | |
Inner |
Inner |
| ((I ⊖ B) ⊕ B) - (I ⊖ B) | |