SimpleRawImageLoadExample

MLModule

author

MeVis Medical Solutions AG

package

MeVisLab/Examples

dll

MLSimpleRawImageLoadExample

definition

MLSimpleRawImageLoadExample.def

Purpose

This module demonstrates how to write a simple image file loader.

Usage

Give filename, image size and data type, then press Load.

Details

This module does not support color images, and only scalar voxel values. You can also not specify any byte offset. There is also no automatic loading.

Tips

While you change any input parameter while an file is open, the file will be closed.

Windows

Default Panel

../../../Modules/ML/MLSimpleRawImageLoadExample/mhelp/Images/Screenshots/SimpleRawImageLoadExample._default.png

Output Fields

output0

name: output0, type: Image

The loaded image after Load has been pressed.

Parameter Fields

Field Index

Byte Order: Enum

Y: Integer

Close: Trigger

Z: Integer

Data Type: Enum

Load: Trigger

Name: String

Status: String

T: Integer

X: Integer

Visible Fields

Name

name: filename, type: String

The filename of a file with raw (i.e., unformatted) binary image data.

Load

name: load, type: Trigger

Trigger loading of the image.

Close

name: close, type: Trigger

Close the image again.

X

name: sizeX, type: Integer, default: 256

Size of the image in X direction.

Y

name: sizeY, type: Integer, default: 256

Size of the image in Y direction.

Z

name: sizeZ, type: Integer, default: 1

Size of the image in Z direction.

T

name: sizeT, type: Integer, default: 1

Size of the image in T (time) direction.

Data Type

name: dataType, type: Enum, default: unsigned int8

Data type of the voxel values.

Values:

Title

Name

​unsigned int8

​unsigned int8

​int8

​int8

​unsigned int16

​unsigned int16

​int16

​int16

​unsigned int32

​unsigned int32

​int32

​int32

​unsigned int64

​unsigned int64

​int64

​int64

​float

​float

​double

​double

Byte Order

name: byteOrder, type: Enum, default: little endian

Byte order of the voxel values.

Values:

Title

Name

Description

​little endian

​little endian

​Assume the byte order of the file to be little endian (lowest order byte first).

​big endian

​big endian

​Assume the byte order of the file to be big endian (highest order byte first).

​native

​native

​Assume the byte order of the file to be the same as for the current system.

Status

name: status, type: String, persistent: no

Shows the current status of the module.