divide an image region into 4x4 blocks

1 回表示 (過去 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 件のコメント
fereshte
fereshte 2014 年 3 月 28 日
thank you Joseph

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

その他の回答 (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