MorphologicalTransform

MorphologicalTransform

    MorphologicalTransform

Library

ComputerVision/Images/Filters

Parameters

MorphologicalTransform_0

NameLabelDescriptionData TypeValid Values

width

Width

Specifies the image width in pixels.

Scalar

height

Height

Specifies the image height in pixels.

Scalar

shape

Shape

Cross: Indicates that a cross-shaped structuring element is specified.

Ellipse: Indicates that an ellipse-shaped structuring element is specified.

Rectangle: Indicates that a rectangular-shaped structuring element is specified.

String

'Rectangle'
'Cross'
'Ellipse'

operation

Operation

Opening: Performs erosion followed by dilation and is used for removing noise.

Closing: Performs dilation followed by erosion and is used for closing small holes inside the foreground objects, or small black points on the object.

Gradient: Performs the difference between dilation and erosion. The result is the outline of the object.

Top Hat: Performs the difference between the input image and the Open image.

Black Hat: Performs the difference between the input image and the Close image.

String

'Opening'
'Closing'
'Gradient'
'Top
Hat'
'Black
Hat'

externalActivation

External activation

This parameter defines if the block receives or inherits an external activation. When External Activation is used, an additional activation port is added to the block. Default is OFF.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

src

explicit

input

1

image

explicit

output

1

Port 3

activation

input

externalActivation