mhe / pynrrd

Simple pure-python module for reading and writing nrrd files.
https://pynrrd.readthedocs.io/
MIT License
116 stars 51 forks source link

Converting Numpy arrays back to a single .nrrd file. #109

Closed naga-karthik closed 2 years ago

naga-karthik commented 4 years ago

I am facing some problem in converting multiple Numpy arrays into a single nrrd file. For instance, in nrrd.read() function I know that it returns a 3D Numpy array. I used slicing to get the individual slices for axial, coronal, and sagittal views. I did some processing using these individual slices and now I want to merge the slices as they originally were so that I could use nrrd.write() function to get a single nrrd file.

Is there any way to do that? Thanks in advance!