SetFileName

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

Purpose

This module allows to set/overwrite the filename associated with an image in MeVisLab. This can be useful for images that are created synthetically but are really derived from some other 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 which 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

The file name to set on the input image. Should be an absolute path.

Modify

name: modifyFileName, type: Bool, default: TRUE

The file name is only changed if this flag is set

Hidden Fields

oldFileName

name: oldFileName, type: String, persistent: no

For convenience this module also shows the old file name of the image (as stored in the input image).