this logic can be used to convert the dimensionality from 2D to 3D and vise versa.

There are several use cases for this logic. Most likely, you want to convert a stack of 2D slices into a proper 3D volume. Therefore, the dimensions of the image (e.g. 100 x 100 pixel) must be exactly the same as the number of slices within the stack (e.g. 100 images in stack). In the just mentioned case, the logic will convert the input stack into a 3D volume of 100 x 100 x 100.

In case, that you have 'n x the dimensions of your images' (with n being an integer), the logic will generate several 3D volumes. For example: a stack with 300 images of 100 x 100 pixels will be converted into 3 3D volumes where the first 100 slices of the stack will be used to create the first 3D, and so on.

Parameters Description
New dimension Select the dimensionality, the input shall be converted to.