フィルターのクリア

extract selected blocks from an image divided into blocks

2 ビュー (過去 30 日間)
Elysi Cochin
Elysi Cochin 2014 年 2 月 20 日
編集済み: Elysi Cochin 2014 年 2 月 21 日
i resized an image to 196 * 224 and divided it into blocks of size 14*14
now, i wanted to extract only selected patches...
please do reply....

採用された回答

Image Analyst
Image Analyst 2014 年 2 月 20 日
編集済み: Image Analyst 2014 年 2 月 20 日
No need to do all that. Just extract the only 3 subimages you want, not all of them, the vast majority of which you'll never use:
imagePatch1 = imagee(1:5, 12:13);
imagePatch2 = imagee(5:8, 4:8);
imagePatch3 = imagee(10:11, 10:11));
  2 件のコメント
Image Analyst
Image Analyst 2014 年 2 月 20 日
I don't understand. You said you wanted the shaded areas: "i wanted to extract only selected patches... the shaded ones as shown" and I gave you code for that. Did you misspeak or did I misunderstand that?
Image Analyst
Image Analyst 2014 年 2 月 20 日
Hopefully someone else will read this and understand, because I don't. I did give you code to get those pixels. You don't have to call them imagePatch if you don't want to - you can call them something else.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by