Besides the way described above, there are variations.
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 | |
---|---|
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
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.
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).
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.
© 2024 MeVis Medical Solutions AG