How to divide 64X64 matrix into sixteen 8X8 blocks?

12 ビュー (過去 30 日間)
RAKESH SR
RAKESH SR 2014 年 2 月 22 日
コメント済み: Preeti Topno 2018 年 9 月 18 日
I am having pixel value of an image as 64X64 matrix. I want to divide it into sixteen 8X8 matrix (ie)an image into sub blocks.Can anyone help me plz...

回答 (2 件)

Star Strider
Star Strider 2014 年 2 月 22 日
I suggest using mat2cell.
Run this to see how it works :
A = [ones(4) ones(4)*2; ones(4)*3 ones(4)*4]
C = mat2cell(A, [4 4], [4 4])
B1 = C{1,1}
B4 = C{2,2}
  1 件のコメント
Preeti Topno
Preeti Topno 2018 年 9 月 18 日
thanks...it really helped me

サインインしてコメントする。


Dishant Arora
Dishant Arora 2014 年 2 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by