MATLAB Answers

How can I divide image into 3x3 pixels?

21 ビュー (過去 30 日間)
Abdullah
Abdullah 2016 年 10 月 28 日
コメント済み: Abdullah 2016 年 11 月 27 日
I want to divide image into none-overlapping blocks into size of 3x3 pixels

回答 (3 件)

Image Analyst
Image Analyst 2016 年 10 月 28 日
Depending on what you want to do with the 3x3 subimages, you might also want to look at imfilter(), conv2(), or nlfilter().

Matt J
Matt J 2016 年 10 月 28 日
編集済み: Matt J 2016 年 10 月 28 日
Using mat2tiles ( Download ),
Blocks = mat2tiles(yourImage,[3,3]);
  3 件のコメント
Matt J
Matt J 2016 年 10 月 30 日
@Abdullah,
I'm also not clear on the distinction "3 pixels by 3 pixels not 3x3 blocks". Bear in mind though, that mat2tiles is a general tool for dividing up the image into non-overlapping sub-images. You can divide the image up into blocks of other sizes, if it suits you.

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


Alex Taylor
Alex Taylor 2016 年 11 月 7 日
The Image Processing Toolbox function blockproc can be used to execute any generic operation on blocked regions of your image.
I'm not sure what the distinction "3x3 pixels" vs. blocks vs. tiles is, as other users have posted.
  1 件のコメント
Abdullah
Abdullah 2016 年 11 月 27 日
Dear @Alex Taylor I tried it already but the processing time take so long...I am using workstation computer 8 core with 16GB Ram but it take really long...is there any other faster way ?

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

Community Treasure Hunt

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

Start Hunting!

Translated by