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!