ConcatenateImages¶
- MLModule¶
genre
author
package
dll
definition
see also
keywords
Purpose¶
The module ConcatenateImages concatenates a number of images in an arbitrarily selectable dimension.
Alternatively, an offset vector can be specified, which defines the position of each image relative to the position of the previous images inside the output image.
Details¶
Voxels in the output image that are not covered by any of the concatenated input images are filled with zeros.
If the input images are overlapping, the values of later input images take precedence in the output image. This can only happen if the Dimension is set to offset.
It is possible to use negative components for the offset vector; the output extent will be appropriately enlarged into the negative direction in order to fully include all input images.
If data types of the input images are different, the data type of the output image includes the range of the output image (which is the union of all input ranges) and has a precision of at least the input data type with the highest precision. Otherwise, no concatenation is performed.
Windows¶
Default Panel¶
Input Fields¶
input0¶
- name: input0, type: Image¶
input1¶
- name: input1, type: Image¶
Output Fields¶
output0¶
- name: output0, type: Image¶
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
Visible Fields¶
Num. Inputs¶
- name: numberOfInputs, type: Integer, default: 2, minimum: 1, maximum: 16¶
Sets the number of input images to concatenate.
For example, in order to compose RGB(A) images from scalar channel images, set
Num. Inputsto 3(4) andDimensionto c.
Dimension¶
- name: dimension, type: Enum, default: t, deprecated name: DimensionID¶
Defines in which dimension the input images should be concatenated.
Values:
Title |
Name |
Description |
|---|---|---|
x |
x |
|
y |
y |
|
z |
z |
|
c |
c |
|
t |
t |
|
u |
u |
|
offset |
offset |
Enables the |
Offset¶
- name: offset, type: IntVector6, default: 0 0 0 0 0 0¶
Sets the position of the second image inside the output image.
Adjust CDimensionInfos¶
- name: adjustCDimInfos, type: Bool, default: FALSE¶
If checked, the result’s CDimensionInfos is automatically derived from the number of channels.
Otherwise, it is concatenated from the input.
Allow Invalid Inputs¶
- name: allowInvalidInputs, type: Bool, default: FALSE¶
If checked, invalid input images are allowed, and at least one input image must be valid to produce a valid output.
The image properties (world matrix, DICOM tags, etc.) are copied from the first valid image on the left.
Fill Value¶
- name: fillValue, type: Double, default: 0¶