MorphologicalGradient

MacroModule

genre

Filters

author

MeVis Medical Solutions AG

package

MeVisLab/Standard

definition

Filters.def

see also

Morphology

keywords

morphology, dilation, erosion, erode, dilate, edge

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

../../../Modules/Macros/Filters/mhelp/Images/Screenshots/MorphologicalGradient._default.png

Input Fields

imageIn

name: imageIn, type: Image

Output Fields

imageOut

name: imageOut, type: Image

Parameter Fields

Field Index

Dilation Size: Integer

Erosion Size: Integer

Gradient Type: Enum

Use 3D: Bool

Use spherical kernel: Bool

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) |