필터 지우기
필터 지우기

extract 4*4 matrix from 8*8

조회 수: 1 (최근 30일)
Jitesh Bhanushali
Jitesh Bhanushali 2014년 4월 3일
댓글: Azzi Abdelmalek 2014년 4월 3일
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일
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
Azzi Abdelmalek
Azzi Abdelmalek 2014년 4월 3일
blockproc(im,[8 8],@(x) [x.data(1:4,1:4) zeros(4);zeros(4,8)]);

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by