Is that a way to read the 3D .raw volume data directly in matlab?
If not, Is it the best way to convert it to other formal in order to import the data?
Thanks

 採用された回答

Image Analyst
Image Analyst 2014 年 8 月 3 日

0 投票

You'll probably need to use fread() to read a slice at a time and then concatenate or insert into a 3D array. Of course you'll need the format since there's no one "raw" format that everyone uses. Anyone can make up whatever format they want and call it raw.
For example attached is a program of mine that reads in a raw flavor that we use.

3 件のコメント

tabw
tabw 2014 年 8 月 3 日
??? Undefined function or method 'Read_RAW_Header' for input arguments of type 'char'.
Error in ==> Read_RAW_3DArray at 26 stHeader = Read_RAW_Header(fullFileName);
I don't know why this popped up. btw,fullFileName is correct.
Image Analyst
Image Analyst 2014 年 8 月 3 日
That's because I didn't give you that function. Unless you have the same CT machine I have, your header is almost certainly different than mine. So you will need to write your own code to read the header and the file. I just gave you an example . It is not intended to work right out of the box .
tabw
tabw 2014 年 8 月 4 日
Thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Import and Analysis についてさらに検索

タグ

質問済み:

2014 年 8 月 3 日

コメント済み:

2014 年 8 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by