How can I save a matrix as .vox or .raw file

3 ビュー (過去 30 日間)
nima
nima 2019 年 3 月 30 日
コメント済み: Image Analyst 2023 年 11 月 30 日
Can anybody help me to save a 3D matrix as a voxel model (.vox format) or raw image (.raw format)? My matrix may contain complex numbers.
  2 件のコメント
MSHR
MSHR 2023 年 11 月 30 日
Hi Nima
did you found the answer?
I have same problem.
Image Analyst
Image Analyst 2023 年 11 月 30 日
I don't know what the .vox format is and @nima didn't say. Likewise there is no standard "raw" format. Anyone can pretty much define it however they want and again @nima didn't say. So you could use frpintf() to write out slice-by-slice the real parts, and then follow that with slice-by-slice of the imaginary parts, or whatever you want. So, @MSHR you should start your own question and tell us the exact format you want, like what voxel values in what order. And if you want the real and complex together voxel-by-voxel, or if you want the whole volume's real part first followed by the whole volume's imaginary part.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by