How to creat 3D image by stacking multiple 2D image in Matlab?
38 次查看(过去 30 天)
显示 更早的评论
I have 3, 2D Image file (RGB) with same dimensions. I want to creat a 3D image by stacking of these 2D image but I dont know which code I should use. I tried some codes suggested here but could not get any image. Please suggest me how to solve this. Your help would be appreciated.
1 个评论
Prabhan Purwar
2020-8-25
Could you please elaborate upon codes you have tried along with attachments.
回答(1 个)
Prabhan Purwar
2020-8-28
Hi,
Kindly make use of cat function to create a 3d image from 2d images as shown.
Only valid for Images that are already reconstructed by the CT Instrument.
In the case of 2D Images that are projection of volume along different angles will require filtered back-projection reconstruction (radon) process to build the 3D image.
image3d = cat(3, slice1, slice2, slice3, slice4);
In order to Visualize the created Image make use of implay(array3d) to view different slices at different Instances. Make use of the following code to visualize a volume in 3D.
Kindly go through following links for reference:
- https://www.mathworks.com/help/images/registering-multimodal-3-d-medical-images.html
- https://www.mathworks.com/matlabcentral/answers/154714-how-can-i-convert-2d-images-to-a-3d-image
- https://www.mathworks.com/matlabcentral/answers/182511-model-reconstruction-from-ct-slices
Thanks
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 3-D Volumetric Image Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!