how to read BRATS-2017 brain dataset with .nii extension to train Convolution Neural Network

2 views (last 30 days)
  • i have Brats2017 dataset of Brain MRI images
  • the dataset consists 243 of patients data
  • each patients data consists of 155 slices
  • i am using flair sequence of MRI
  • i have to read every slice of every patient to train and test the Convolution Neural Network
  • because i have every patients data in .nii (NIFTI) format so i dont know how to read this data using ImageDataStore
  • like image data store was used to store 10000 images in digit classification example in matlab
  • kindly help me

Answers (1)

mahdis kh
mahdis kh on 15 Sep 2020
Edited: mahdis kh on 15 Sep 2020
Basically you should use some of the pairs in ImageDatastore. To read NIFTI files into ImageDatastore add the name-value pairs below:
ImageDatastore('fileLoc','FileExtensions','.nii', 'ReadFcn',@niftiread)

Categories

Find more on Recognition, Object Detection, and Semantic Segmentation in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!