Is it possible to stack a series of binary images to form a 3-D object?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ahmed Ismail
le 23 Mar 2016
Commenté : Image Analyst
le 23 Mar 2016
There are some binary images I am planning to segment. Once that is done, I would like to essentially stack all the image to form a 3-D object and perform some quantification. Is this possible in Matlab?
0 commentaires
Réponse acceptée
Image Analyst
le 23 Mar 2016
Yes.
binary3d = cat(3, binary1, binary2, binary3, binary4);
2 commentaires
Image Analyst
le 23 Mar 2016
Yes, but it would be best (faster) to preallocate and overwrite slices rather than append.
[rows, columns] = size(binaryImage1);
% Allocate space for 537 images.
binary3d = false(rows, columns, 537);
% Loop inserting all images into the 3D image.
for k = 1 : 537
thisImage = .... however you get the k'th image
binary3d(:,:,k) = thisImage;
end
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!