How to arrange stacked Images into a 2 dimension array?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a stack of 40 Images with dimension of 1000*1000 as:
Images<1000*1000*40 double>
I want to arrange the Images as shown below in a single array of size 8000*5000:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/150930/image.png)
Can anyone help?
댓글 수: 1
채택된 답변
David Young
2015년 6월 7일
편집: David Young
2015년 6월 7일
Images2d = reshape( ...
permute( ...
reshape(Images, 1000, 1000, 8, 5), ...
[1 3 2 4]), ...
8000, 5000);
댓글 수: 0
추가 답변 (1개)
Walter Roberson
2015년 6월 7일
You can mat2cell splitting along the 3rd dimension, reshape the cell array 8x5 and then cell2mat back
댓글 수: 1
Walter Roberson
2015년 6월 7일
Sz = size(Image4D);
T = mat2cell(Image4D, Sz(1), Sz(2), Sz(3), ones(1,Sz(4));
Image3D = cell2mat(reshape(T, 8, 5));
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!