How can we divide an image into 16 sub images each of size 128x128

While the size of original image is 512x512

その他の回答 (1 件)

Youssef  Khmou
Youssef Khmou 2014 年 5 月 20 日
編集済み: Youssef Khmou 2014 年 5 月 20 日

0 投票

you can select a block as :
P=(512)/sqrt(16);
B11=M(1:P,1:P);
B12=M(1:P,P+1:2*P);
%...
B14=M(1:P,3*P+1:4*P);
%...
B44=M(3*P+1:4*P,3*P+1:4*P);

1 件のコメント

Rida
Rida 2014 年 5 月 20 日
I tried it, It seems that image is cropped

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

カテゴリ

ヘルプ センター および File ExchangeImage Processing Toolbox についてさらに検索

タグ

質問済み:

2014 年 5 月 20 日

コメント済み:

2014 年 5 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by