필터 지우기
필터 지우기

divide an image region into 4x4 blocks

조회 수: 2 (최근 30일)
fereshte
fereshte 2014년 3월 27일
편집: fereshte 2014년 3월 28일
How do I divide an image region into 4x4 blocks and then For each block, calculate the mean value of the block?

채택된 답변

Joseph Cheng
Joseph Cheng 2014년 3월 27일
You can try to use blockproc(A,[4 4],fun) where fun is a function which does mean(mean(block_struct.data))

추가 답변 (1개)

Image Analyst
Image Analyst 2014년 3월 28일
  댓글 수: 1
fereshte
fereshte 2014년 3월 28일
편집: fereshte 2014년 3월 28일
thank you.
1.can you divide image to 3*3 blocks with blockproc_demo2.m?
2.how i can calculate mean just for fifth window in 3*3 blocks?

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by