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?
Asked
Active
Viewed 635 times
1 Answers
0
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.

Scott
- 4,974
- 6
- 35
- 62
-
1Yap, but how right make a labels and masks for pattern recognition – Андрей П. Jul 10 '20 at 14:16