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:
Can anyone help?

采纳的回答

David Young
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);

更多回答(1 个)

Walter Roberson
Walter Roberson 2015-6-7
You can mat2cell splitting along the 3rd dimension, reshape the cell array 8x5 and then cell2mat back

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by