0

I'm doing a project on segmentation of brain MRI scans and only have .mat files for dataset which I want to read in python and keep the annotations in those files the same.Can somebody help me?

I've tried using mat4py but no success.

This data is organized in matlab data format (.mat file). Each file stores a struct containing fields for an image.

1 Answers1

1

You can read the .mat files using scipy:

import scipy.io
mat = scipy.io.loadmat('mri.mat')

You can read more in the documentation.
Be aware that the method doesn't support matlab v7.3 files but a solution is provided here

CAPSLOCK
  • 6,243
  • 3
  • 33
  • 56