I have a series of 4D images (3D + scalar component) with the same dimensions, scalar type, number of scalar components, and I’d like to append them into a single image (a time or other type of sequence of images) that would be in the end 5D (4D + component). Then I’d like to write the resulting 5D image into file using ImageFileWriter.
Join series should work. If it does not do exactly what you want, you could go a more manual path: construct a 5D image in memory, then use PasteImageFilter to populate it with constituent components.