SetFileName

MLModule
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLImageFile
definition mlImageFile.def
keywords change, modify, filename, file, name

Purpose

The module SetFileName allows for setting/overwriting the file name associated with an image in MeVisLab. This can be useful for images that are created synthetically but are actually derived from another image.

Usage

Simply enter a new file name and connect an image to the input, the output will automatically have the new file name set.

Tips

Changing the file name while an image is connected will generate an additional image notification, which can trigger unnecessary image calculations. To avoid this you can add an ImageClear module after any module that modifies the image (properties) and only update the output of ImageClear if all other changes have happened.

Windows

Default Panel

../../../Modules/ML/MLImageFile/mhelp/Images/Screenshots/SetFileName._default.png

Input Fields

input0

name: input0, type: Image

Takes the image that should have the file name changed.

Output Fields

output0

name: output0, type: Image

The image with the changed file name.

Parameter Fields

Visible Fields

File Name

name: fileName, type: String

Sets the file name to set in the input image. This should be an absolute path.

Modify

name: modifyFileName, type: Bool, default: TRUE

If checked, the file name is changed. Otherwise, the file name is left unchanged.

Hidden Fields

oldFileName

name: oldFileName, type: String, persistent: no

Shows the old file name of the image for convenience (as stored in the input image).