Purpose

The module Compass applies four different compass filters to an input image performing edge detection.

Usually all directions will be calculated and only the maximum of all results will be written to the output image.

Alternatively, only one of eight directions can be chosen only.

Windows

Default Panel

../../../Modules/ML/MLKernel/mhelp/Images/Screenshots/Compass._default.png

Input Fields

input0

name: input0, type: Image

Output Fields

output0

name: output0, type: Image

Parameter Fields

Visible Fields

Border Handling

name: borderHandling, type: Enum, default: PadSrcClamp, deprecated name: edgeMode

Defines the border handling mode.

See Border Handling in Kernel Operations for details.

Values:

Title Name
No Pad NoPad
Pad Src Fill PadSrcFill
Pad Dst Fill PadDstFill
Pad Dst Fill With Orig PadDstFillWithOrig
Pad Src Undefined PadSrcUndefined
Pad Dst Undefined PadDstUndefined
Pad Src Clamp PadSrcClamp

Fill Value

name: fillValue, type: Double, default: 0

Sets the fill value for certain Border Handling modes.

Use

name: compassFilterSelect, type: Enum, default: Prewitt

Defines the used compass filter.

Values:

Title Name
Prewitt Prewitt
Kirsch Kirsch
Robinson 3 Level Robinson_3_Level
Robinson 5 Level Robinson_5_Level

Direction (direction)

name: direction, type: Enum, default: East

Defines the direction of the edges to be detected.

Values:

Title Name
East East
North East NorthEast
North North
North West NorthWest
West West
South West SouthWest
South South
South East SouthEast
All Directions All Directions

Direction (directionInt)

name: directionInt, type: Integer, default: 0, minimum: 0, maximum: 8

Sets the direction in which edges are to be detected as an integer number.

Hidden Fields

referenceExtentMode

name: referenceExtentMode, type: Enum, default: Overlap

Values:

Title Name
Overlap Overlap
Input0 Ext Without Fill Input0_ExtWithoutFill
Input0 Ext With Fill Input0_ExtWithFill
Max Extents Without Fill MaxExtentsWithoutFill
Max Extents With Fill MaxExtentsWithFill