ExportImageAsSlices

MacroModule
genre File
author MeVis Medical Solutions AG
package MeVisLab/Standard
definition FileHandling.def
see also ImageSave, DicomTool
keywords save, export, image, stack, png, jpg, jpeg, bmp

Purpose

The module ExportImageAsSlices exports a 3D (or 4D/5D) image as a stack of 2D slices with automatic indexing. It supports PNG, JPG, BMP, and PNM format and input images with 1 or 3 colors and any scalar data type.

Usage

Enter a filename in Filename. The filename will automatically be augmented with the required indexing.

Windows

Default Panel

../../../Modules/Macros/FileHandling/mhelp/Images/Screenshots/ExportImageAsSlices._default.png

Input Fields

input0

name: input0, type: Image

Connect the image to export here.

Parameter Fields

Field Index

Colors: Integer T: Integer
dimensionSeparator: String Type: String
Export: Trigger U: Integer
File type supported: Bool Z: Integer
Filename: String  
Input image supported: Bool  
progress: Float  
Status: String  

Visible Fields

Filename

name: targetFileName, type: String

The target filename. It must end with “.png”, “.jpg”, “.bmp”, or “.pnm”.

This filename will automatically augmented with the required indexing; this way, the actual filename will only be used if you provide a 2D image.

Status

name: status, type: String, persistent: no

Colors

name: cSize, type: Integer, persistent: no

Sets the number of color channels in the input image.

Z

name: zSize, type: Integer, persistent: no

Sets the number of slices in the z-dimension.

T

name: tSize, type: Integer, persistent: no

Sets the number of time points in the t-dimension.

U

name: uSize, type: Integer, persistent: no

Sets the extent of the u-dimension.

Type

name: dataType, type: String, persistent: no

Sets the voxel data type of the image.

Only “unsigned int8” is passed through unchanged, everything else is scaled to the range 0-255.

File type supported

name: ready, type: Bool, persistent: no

Shows whether a suitable file name has been entered.

Input image supported

name: supported, type: Bool, persistent: no

Shows whether a compatible input image is connected to the module.

Export

name: export, type: Trigger

When pressed, the export step is performed.

Hidden Fields

dimensionSeparator

name: dimensionSeparator, type: String, default: -

Sets a string that will be used to separate the indexing if more than one dimension needs to be indexed.

progress

name: progress, type: Float, persistent: no