Opening .img MRI file in Matlab

1 次查看(过去 30 天)
TheBeginner
TheBeginner 2014-11-24
Hello,
I am trying to open MRI images download from the IBSR database. It is my first time opening binary files and I'm encountering troubles. I know my images are 256x256 on 16 bits. I have tried the following code :
name = '657_4_14.img';
fileID = fopen('name');
slice = fread(fileID, [256 256], 'int16');
fclose(fileID)
But the returned "slice" is empty.
Any idea?
Thanks

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MRI 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by