Stack 3D images in a 3D plot
조회 수: 5 (최근 30일)
이전 댓글 표시
I have a set of images of dimension 320x321x3 uint8. They all represent the cross sectional slices of an arbitrary object. Now i want to stack, say every 10th slice in a 3D kindda plot. I have no idea where to start with. Kindly give some suggestions.
댓글 수: 0
채택된 답변
Sean de Wolski
2013년 6월 7일
X = zeros(320,321,3,10); %10 slices for example
Now you stick every RGB image in the 4th dimension using the same instructions from here:
So
for ii = 1:10
Construct filename
X(:,:,:,ii) = imread(filename)
end
댓글 수: 2
Sean de Wolski
2013년 6월 11일
the output from iradon is grayscale not rgb correct? If that is the case, do exactly what I have above moving the fourth dimension into the third:
X = zeros(320,321,10);
etc.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Biomedical Imaging에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!