loading a .vol file in matlab and display image

7 ビュー (過去 30 日間)
lilish
lilish 2014 年 12 月 6 日
コメント済み: Image Analyst 2018 年 7 月 5 日
Hi; I have a .vol file, which is the raw data of a image that is a 3D binary file. The first three 32-bit values are integers defining the size of the volume along X, Y, and Z. These are followed by the raw data - unsigned 8-bit integers corresponding to intensity. I would like to load this data in matlab and display the 3d image but couldn't find the command related to .vol file format and haven't be able to reconstruct the image. please help me thanks,

採用された回答

Image Analyst
Image Analyst 2014 年 12 月 6 日
See attached code for reading raw 3D image volumes. I have more data in my headers in yours so you'll have to adapt it to remove the lines that read the extra information that you don't have.
  2 件のコメント
Camilla Tacconis
Camilla Tacconis 2018 年 7 月 5 日
This looks like a fantastic solution, have tried using your code in Matlab to see what it looks like but I unfortunately get an error for the line: stValidParameters = ValidateInputParameters(stInputParameters, x_size, y_size, z_size); quoting
Undefined function or variable 'ValidateInput'.
Error in Read_RAW_3DArray (line 54) stValidParameters = ValidateInputParameters(stInputParameters, x_size, y_size, z_size);
Could you help me solve this?
Image Analyst
Image Analyst 2018 年 7 月 5 日

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

その他の回答 (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