3.5. Alternative Ways to Load Images

Besides the way described above, there are variations.

3.5.1. Dragging Images onto the Workspace

Instead of adding the module, you can drag the image file

  • onto the workspace: An ImageLoad module is created automatically in the current network when you drag a DICOM or TIFF image file from a file browser onto the MeVisLab workspace. The dragged file is loaded automatically and available at the image output connector of the created ImageLoad module.

    [Tip]Tip

    This mechanism also works for WEM files (creates a WEMLoad module) and CSO files (creates a CSOLoad module).

  • onto an existing ImageLoad module

  • onto the filename field of an existing ImageLoad module

3.5.2. Using the LocalImage Module

Instead of using the ImageLoad module, you can use LocalImage.

LocalImage is a macro module that allows for image selection based on relative paths. This method is recommended for image referencing because it enables an easier exchange of networks between cooperating parties. The list of supported variables can be seen when using the drop-down box of the input widget.

Figure 3.22. LocalImage Module

LocalImage Module

Macro modules are a combination of an internal network and a script. You can open the internal network via the module's context menu or by pressing SHIFT and double-clicking the module. Alternatively, the internal network can be opened in the preview state of a network (see the MeVisLab Manual).

Figure 3.23. Show the Internal Network

Show the Internal Network

In the case of LocalImage, the internal network consists of an ImageLoad only. The difference to that module is only in the scripting that offers relative instead of absolute paths to the file — a feature that has become somewhat obsolete by the introduction of the isFilePath attribute on string fields, which accomplishes roughly the same without the need for extra code.

Figure 3.24. Internal Network of the LocalImage Module

Internal Network of the LocalImage Module