フィルターのクリア

How to divide an image with unequal size into 4 x 4 non-overlapping blocks.

1 回表示 (過去 30 日間)
an image with unequal size shoud be divided into 4 x 4 non-overlapping blocks.

採用された回答

Ameer Hamza
Ameer Hamza 2018 年 5 月 2 日
This code will convert the 3 channel inImage into 16 patches and save them in a cell array
mat2cell(inImage, size(inImage,1)/4*ones(4,1), size(inImage,2)/4*ones(4,1), 3)
  2 件のコメント
Yuvaraj Venkataswamy
Yuvaraj Venkataswamy 2018 年 5 月 2 日
Thank You Ameer Hamza
Ameer Hamza
Ameer Hamza 2018 年 5 月 2 日
You are welcome

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by