Appending Voxel Intensity with the Voxel Co-ordinates and Plotting ?

2 views (last 30 days)
Amit Chakraborty
Amit Chakraborty on 4 Feb 2022
Answered: Prachi Kulkarni on 15 Feb 2022
I have this two Data.
img_64_chest.mat = Voxel Intensity.
voxel_coords.mat = Voxel Co.ordinate [1st Col : X , 2nd Col: Y, 3rd Col: Z]
I want to append the data first and want to plot the image of the voxel intensity. It will be 4 dimensional Matrix : X coords, Y coords, Z coords, Voxel Intensity. I did this in Mathematica but not able to doing it in the MATLAB.
Any kinds of help will be appreciated. Thank you in advance for your kind assistance.

Answers (2)

yanqi liu
yanqi liu on 7 Feb 2022
yes,sir,if show 3d,just use
load img_64_chest.mat
volshow(img)
then you can get 3d show
but what voxel_coords use to?add points on it?
  1 Comment
Amit Chakraborty
Amit Chakraborty on 7 Feb 2022
Thank you for your response !
Yes I want to add the the points here in the image as well!

Sign in to comment.


Prachi Kulkarni
Prachi Kulkarni on 15 Feb 2022
Hi,
You can use the location and intensity information to create and display a point cloud.
load img_64_chest.mat img
load voxel_coords.mat voxel_cords
ptCloud = pointCloud(voxel_cords,Intensity=reshape(img,[],1));
pcshow(ptCloud);

Community Treasure Hunt

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

Start Hunting!

Translated by