Merges Channels

Merges two sets of images into a single set with the combined number of channels.

Input

Two or more image sets with the same number of images.

Output

A single image set, with each image combining the channels of the corresponding images from all input sets. Each output image’s size and resolution is identical to that of the image taken from the first input set. Its data type is float, irrespective of the input.

The input sets will not be modified by this algorithm.

Description

If a pair of input images have the same size in pixels, the resulting image will be created by trivially expanding the number of channels at each pixel. Note that this is also the case if the input images have different spacing and therefore different physical extent.

Otherwise the result will have the size of the first image, with the values of the second input being linearly interpolated at these pixels’ positions according to the transformation matrices. Pixel positions not covered by the second image in this way are assigned values of 0 in the affected channels.

Note that the user interface will only use the first 3 channels for visualization (RGB), but the result of this algorithm can potentially have more.