フィルターのクリア

Assigning white pixels to specific locations

1 回表示 (過去 30 日間)
med-sweng
med-sweng 2015 年 2 月 7 日
コメント済み: Jan 2015 年 2 月 7 日
Say that we have a black image (i.e. zeros) of size 64x64, and say that I want to fill those 3x3 windows pixels in the middle of the image with white (i.e. ones), how can I do that in MATLAB?
Thanks.

採用された回答

Tapan
Tapan 2015 年 2 月 7 日
I = zeros(64); I(32:35,32:35)=1;
  1 件のコメント
Jan
Jan 2015 年 2 月 7 日
32:35 are 4 pixels... I assume the OP can apply the required changes.

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

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by