ai-med / QuickNATv2

Fast Whole Brain Segmentation (Layers, codes and Pre-trained Models)
MIT License
61 stars 16 forks source link

error when run RunFile.m #4

Closed idhamari closed 6 years ago

idhamari commented 6 years ago

Undefined function or variable 'MRIread'.

Error in RunFile (line 14) DataVol = MRIread([DataPath,FileName]);

idhamari commented 6 years ago

After reading the whole document I found out how to do it. It is better to put points 5 and 6 before 4 to avoid confusion.

idhamari commented 6 years ago

Another error: Undefined function or variable 'ReMapSagProbMap'.

abhi4ssj commented 6 years ago

The function 'ReMapSagProbMap' is inside the folder QuickNAT_Networks/.. Add all the files in the folder to the Matlab Path and run the code.

idhamari commented 6 years ago

Thanks for the info. I think it is better to add this line to your SegmentVol.m

addpath('../QuickNAT_Networks')

abhi4ssj commented 6 years ago

Thanks for the feedback. I added it.

Zhenya97 commented 4 years ago

Undefined function or variable 'MRIread'. Error in RunFile (line 14) DataVol = MRIread([DataPath,FileName]);

Can you plz give more explanation about how to solve this problem? Thanks.