MLToVTKImage

MLModule

genre

VTKAdapters

author

MeVis Medical Solutions AG

package

MeVisLab/VTK

dll

MLVTKAdapters

definition

MLVTKAdapters.def

see also

ImageLoad, LocalImage, SoVTK, MLToVTKArray, VTKToMLImage, VTKView, WEMToVTKPolyData, VTKPolyDataToWEM, MLBaseToVTKPolyData

keywords

vtkImageImport, convert, loader, memory, source, input, translate, transfer, reformat, cross, interface, adapter

Purpose

The module MLToVTKImage converts an ML image to a VTK image.

The ML input image is set as data for a vtkImageImporter, which is provided at the output.

Windows

Default Panel

../../../Modules/ML/MLVTKAdapters/mhelp/Images/Screenshots/MLToVTKImage._default.png

Input Fields

input0

name: input0, type: Image

The module has one ML input. Only the dimensions x, y, z are used as geometric dimensions by VTK and the color dimension extents 1, 2, 3, 4 are interpreted as intensity, intensity-alpha, RGB, and RGBA images, respectively.

Output Fields

outputImage

name: outputImage, type: VTKObjectWrapper(MLBase)

The module has a vtkImageImporter output that can be connected to other VTK modules via their Base connector.

Parameter Fields

Field Index

Apply Mode: Enum

Num Scalar Comps: Integer

Reset Image: Trigger

Status: String

Update Image: Trigger

Update Mode: Enum

Visible Fields

Num Scalar Comps

name: numScalarComps, type: Integer, default: 1, minimum: 1, maximum: 64

Shows the number of scalar components of the VTK image if no color channels are available.

Update Mode

name: updateMode, type: Enum, default: AutoUpdate

Defines when and/or how the VTK image is updated on inputs changes.

Values:

Title

Name

Description

Off

Off

Leaves the internally used image (if there is one) unchanged on any input connector changes.

Auto Clear

AutoClear

The internally input image (if there is one) is cleared/removed on any change of the input connector.

Auto Update

AutoUpdate

The internally image is updated to new image data at the image input of the module or even cleared if no valid data is connected to the input.

Apply Mode

name: applyMode, type: Enum, default: AutoApply

Defines when and/or how parameters are applied and the VTK image is updated.

Values:

Title

Name

Description

Off

Off

This mode leaves the internally used image (if there is one) unchanged on any parameter change.

Auto Clear

AutoClear

The internally stored (input) image (if there is one) is cleared/removed on any parameter change.

Auto Apply

AutoApply

The internally image is updated to new image data from the image input or even cleared if no valid data is connected to the input.

Update Image

name: updateImage, type: Trigger

When pressed, the internally used image is updated to the image input or even cleared if no valid data is connected to the input.

Note that this button is insensitive if Update Mode is set to AutoUpdate.

Reset Image

name: resetImage, type: Trigger

When pressed, the internally used image is cleared and deallocated.

Note that this button is insensitive if Update Mode is set to AutoUpdate.

Status

name: status, type: String, persistent: no

Shows the module’s state.