Hi, i have 170x170x36, (i.e,rows=170,col=170,images=36),i need to divide 36 image into 4 equal halves and find max value in each halves, so that i will get 2x2x36 as a final result.
1 次查看(过去 30 天)
显示 更早的评论
plz help me with matlab code
0 个评论
采纳的回答
Walter Roberson
2016-11-1
divided_Array = mat2cell(YourArray, [85 85], [85 85], 36);
Now divided_Array{1,1}, {1,2}, {2,1}, {2,2} all exist and you can take their max()
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!