genre | FlowControl |
author | Wolf Spindler |
package | MeVisLab/Standard |
dll | MLMiscModules |
definition | MLMiscModules.def |
see also | Switch1toN, SoSwitch, LevelSwitch |
keywords | select, choice, demultiplex, input, output |
The module Switch selects one of several input images to output.
The selected one is passed unchanged to the output, even if the input in not connected or or the input image undefined.
Note that it is not necessary that all inputs are connnected. Unconnected or undefined inputs are bypassed as an undefined (empty) image.
Notifications are only propagated for the selected input, all others are ignored.
The number of shown inputs can be changed.
If a switch "UseSomething" is used to either use or bypass a subnetwork implementing a feature "Something", the latter should be connected to the second input. That way, the bi-valued Active Input Index can be used like a regular boolean, with 1 meaning "use Something" and 0 meaning "don't use Something".