I have loaded in a series of 2D sequences (3 dimensions) and stitched them together into a 4D image. Now I would like to save the image as a 3D sequence. I think that to do this I need an image that has 3 dimensions and “NumberOfComponentsPerPixel” is the size of the 4th dimension (“domain, domain, domain, list”), but I haven’t been able to figure out how to do that. The reason I think this, is because if I have a 4D numpy array and use GetImageFromArray, I get an image with 3 dimensions and “NumberOfComponentsPerPixel” is greater than 1, and when I save it as a seq.nrrd I am able to load it as a sequence volume in slicer.
Is that the correct way of doing it, or is there an easier way?