How to take a 2d slice image and convert it to a 3d image.
22 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
It has a 360-degree sliced image of a lamp image placed on a tabletop. ( .tiff, Color IMAGE )
I want to concatenate these images into a 3d image. I confirmed that volumeViewer exists.
Can i make a 3d image out of this? Or is there another way?
The image has images in sequence from 1-360 degrees. ( 0degree.tiff, 1degree.tiff ~~ 360degree.tiff )
Even simple code is fine. Please share information.
- There are only left and right images. Vertical rotation is not taken into account.
0 commentaires
Réponses (1)
Image Analyst
le 8 Fév 2023
Modifié(e) : Image Analyst
le 8 Fév 2023
for k = 1 : 360
fileName = sprintf('%ddegree.tiff', k)
sliceImage = imread(fileName);
if k == 1
[rows, columns, numColors] = size(sliceImage)
% Allocate the whole array (for speed).
image3d = zeros(rows, columns, 360, class(sliceImage));
end
image3d(:, :, k) = sliceImage; % Put this slice into plane k of the 3-D image.
end
Voir également
Catégories
En savoir plus sur Import, Export, and Conversion dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!