sir i have 256*256 image i want to extract top left 4*4 matrix from every 8*8 blocks of that image..please send me the code

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2014년 4월 3일

1 개 추천

blockproc(yourimage,[8 8],@(x)x.data(1:4,1:4))

댓글 수: 2

Jitesh Bhanushali
Jitesh Bhanushali 2014년 4월 3일
sir what is code if i want to add zeros to 4*4 matrix and make it 8*8 in the image
blockproc(im,[8 8],@(x) [x.data(1:4,1:4) zeros(4);zeros(4,8)]);

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by