How to create a dataset for CNN from Mri Nifti files?
You can use nibabel library for loading nifti files using nibabel.load(path). And from that, you can get numpy array and combine all arrays to form a dataset in numpy arrays or convert it to H5py format as your choice.
I have data in nifti format, these are 3 axial images of an animal’s brain, how to create a dataset for training a convolutional neural network, for segmenting brain regions, by python 3?