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

15 次查看(过去 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 个评论

请先登录,再进行评论。

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by