LevelSwitch

MLModule
genre FlowControl
status stable
author Thusitha Parakrama
package MeVisLab/Standard
dll MLMiscModules
definition MLMiscModules.def
see also Switch, SoSwitch
keywords level, switch, size, scale, select, inputs, oneofn, selector

Purpose

The module LevelSwitch switches the input image according to a value Input Level falling into any of six intervals defined by the Level fields.

Windows

Default Panel

../../../Modules/ML/MLMiscModules/mhelp/Images/Screenshots/LevelSwitch._default.png

Input Fields

input0

name: input0, type: Image

input1

name: input1, type: Image

input2

name: input2, type: Image

input3

name: input3, type: Image

input4

name: input4, type: Image

input5

name: input5, type: Image

Output Fields

output0

name: output0, type: Image

Parameter Fields

Field Index

Current Input: Integer
Input Level: Double
Level 0: Double
Level 1: Double
Level 2: Double
Level 3: Double
Level 4: Double
Sort Level Values: Bool

Visible Fields

Current Input

name: currentInput, type: Integer, default: 0

Shows the number of the current input image.

If no interval can be identified from the Level values, input six is bypassed to the output image.

Input Level

name: inputLevel, type: Double, default: 0

Sets the level value which is searched in the six intervals

  • ]inf, Level 0]
  • [Level 0, Level 1]
  • [Level 1, Level 2]
  • [Level 2, Level 3]
  • [Level 3, Level 4]
  • [Level 4, inf[

to select any of the inputs 0-5, respectively.

Note that lower inputs/intervals have priority if more than one interval could be selected.

Sort Level Values

name: sortLevelValues, type: Bool, default: TRUE

If checked, all level values are sorted on each change.

Level 0

name: outputLevel0, type: Double, default: 10

Sets the first interval ]inf, Level 0] corresponding to the first input image.

If the Input Level is inside this interval the image input 0 is selected to be bypassed to the output.

Level 1

name: outputLevel1, type: Double, default: 100

Sets the first interval [Level 0, Level 1] corresponding to the first input image.

If the Input Level is inside this interval the image input 1 is selected to be bypassed to the output.

Level 2

name: outputLevel2, type: Double, default: 1000

Sets the first interval [Level 1, Level 2] corresponding to the first input image.

If the Input Level is inside this interval the image input 2 is selected to be bypassed to the output.

Level 3

name: outputLevel3, type: Double, default: 10000

Sets the first interval [Level 2, Level 3] corresponding to the first input image.

If the Input Level is inside this interval the image input 3 is selected to be bypassed to the output.

Level 4

name: outputLevel4, type: Double, default: 100000

Sets the first interval [Level 3, Level 4] corresponding to the first input image.

If the Input Level is inside this interval the image input 4 is selected to be bypassed to the output.