How can I obtain voxel coordinates and corresponding intensity value of all voxels in a MRI image?

13 ビュー (過去 30 日間)
Hi I have medical MRI images. I wish to obtain all voxel coordinates as 3 columns with the 4th column giving the corresponding intensity value.
1st column :- X coordinate
2nd column :- Y coordinate
3rd column :- Z coordinate
4th column :- corresponding intensity value
Is there any function that can automatically do that ? The file format is DICOM file. Your help is appreciated

回答 (1 件)

Image Analyst
Image Analyst 2015 年 12 月 11 日
Yes, use meshgrid and (:). Something like (untested)
[x, y, z] = meshgrid(1:columns, 1:rows, 1:slices);
out4Column = [x,y,z, yourImage(:)];
  15 件のコメント
Vasantha Lakshmi
Vasantha Lakshmi 2017 年 3 月 9 日
I need to get the voxel coordinates and intensity values of mri image which are of .mha format.How can I get it?
Walter Roberson
Walter Roberson 2017 年 3 月 9 日
Look for read_mha in the File Exchange

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

カテゴリ

Help Center および File ExchangeDICOM Format についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by