How to display images from nifti file format in Matlab?
286 views (last 30 days)
I have a COVID-19 CT segmentation dataset where all images are in .nii file format. Each image file has mulitple slices (512*512*100). Using niftiread command Matlab i read the image file and now I want to visualizing each of the 100 slices one by one in Matlab.
The dataset is available on the site http://medicalsegmentation.com/covid19/
Emerson Nithiyaraj on 20 May 2020
After you read the Nifti file using niftiread, you could visualize each slice one by one using the below command,
V = niftiread('niftifile.nii');
c = V(:,:,n); %n is the slice number that you want to visualize.