MATLAB: Hoe to use BRAT Dataset? It is in .nii format. I want to store it in .mat files. How to do it

brain segmentationbrat dataset

[V info]=ReadData3D(file .nii);
After this V has 256*256*155 matrix.
How to read the image?

Best Answer

I think it likely that you have already read the images. .nii files often have multiple slices stored in the same file. Your slices are V(:,:,1), V(:,:,2), V(:,:,3) and so on.
If you have R2017a or later, you could view them using
volumeViewer(V)