Description

Property used to set or get the default Structuring Element for Erode, Dilate, Open and Close.

Property type

A mcMorphoShape enumeration.  

Syntax

object.Shape [= value]

The Shape Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McMorpho.
valueA mcMorphoShape enumeration, as described in settings.

Settings

The settings for value are:

ConstantValueDescription
 mcmsDefault-1

Apply the Structuring Element specified in McMorpho.Shape.

 mcms2x2Square0

A 2 by 2, square Structuring Element.

 mcms3x1Row1

A 3 pixels horizontal Structuring Element.

 mcms1x3Column2

A 3 pixels vertical Structuring Element.

 mcms3x3Cross3

A cross like Structuring Element (4-Connectivity).

 mcms3x3Square8

A 3 by 3, square Structuring Element (8-Connectivity).

 mcms5x5Octagon4

The smallest octagonal Structuring Element.

 mcms7x7Octagon6

The smallest octagonal Structuring Element.

 mcms11x11Octagon7

A 11 by 11 octagon.

 mcmsCustomKernel5

Apply the Structuring Element provided in McMorpho.Kernel.

Remarks

This value is used when msDefault is passed as the Shape parameter of these methods, or when the parameter is omitted.