How to analyze hypercube data?
古いコメントを表示
I have a hypercube data with size 512 x 320 x 211. I want to divide this cube into smaller cube data size 32x32x211 and I want to get the mean value of all smaller cube data. How can I do that using Matlab? Thanks a lot.
採用された回答
その他の回答 (1 件)
Imran Sofianto
2017 年 8 月 4 日
0 投票
3 件のコメント
michio
2017 年 8 月 4 日
Ah, you want 16x10x211 array in the end? So the mean operation will be preformed on each slice of 512x320? In that case, the following would do the job.
myfun = @(block_struct) mean(mean(block_struct.data));
I2 = blockproc(I,[32 32],myfun);
where I is your hypercube data with size 512 x 320 x 211 then I2 will be 16x10x211 array with mean values of each divisions.
Imran Sofianto
2017 年 8 月 4 日
michio
2017 年 8 月 5 日
You are welcome :)
カテゴリ
ヘルプ センター および File Exchange で Read, Write, and Modify Image についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!