Stacking multiple 2D images to form a single volumetric 3D image.

10 views (last 30 days)
Hello everyone.
I have a 2D image in 244x244 grid of .xlsx file. I would like to stack this image and visualize a single volumetric 3D image. Does anyone know how to do that.
  2 Comments
Amira Ramli
Amira Ramli on 14 Jul 2020
Yes Sir. For now i want to try with the 1 image, try to stack and find out how it works. Because later on, for the experimental result 244x244 grid, i will have like 5 slices of image with different pixel value each. I've attached the xlsx file and the 2D image.
For instance, i use the surf coding for only one image. I have no idea on how to stack (if i have like 5 slices of 2D image) and visualize in 3D form. My supervisor adviced me to try using the isosurface.
i1=(xlsread('Book1.xlsx',1','A1:IJ244'));
figure
imagesc(i1);shading interp;colormap jet
title('i1')
surf(i1);shading interp;colormap jet
title('i1')

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 14 Jul 2020
If you have gray level slice images image1, image2, image3, image4, image5, etc. then you can use cat(3,):
volumetricImage3D = cat(3, image1, image2, image3, image4, image5);
  3 Comments
Image Analyst
Image Analyst on 20 Jul 2020
Yes, MATLAB is not the best for that. They do have a Volume Visualizer app on the Apps tab of the tool ribbon but if you want a really powerful program to do it you'll have to use Avizo.
Amira Ramli
Amira Ramli on 20 Jul 2020
Well, thank you so much Sir. I can finally stack the images and visualize it in volume form. But it was out of frame. I think i should figure it out. If anyone can share how to do it, thank you in advance!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!