Is it possible to stack a series of binary images to form a 3-D object?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Image Analyst
2016-3-23
Yes.
binary3d = cat(3, binary1, binary2, binary3, binary4);
2 个评论
Image Analyst
2016-3-23
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!