フィルターのクリア

How to design an image with black and white bits in matlab?

2 ビュー (過去 30 日間)
marie lasz
marie lasz 2021 年 4 月 24 日
コメント済み: marie lasz 2021 年 4 月 25 日
Hello,
Can anyone guide me how to generate an image with black and white bits with any letter or any sign?
Image source:copied

採用された回答

Image Analyst
Image Analyst 2021 年 4 月 24 日
Try this:
grayImage = 255 * zeros(100, 100, 'uint8');
for k = 1 : length(rows)
grayimage(row(k), columns(k)) = 0;
end
rows and columns are the 1-D vectors/lists of where you want there to be a black pixel. Obviously the values in there depend on that shape you want to draw.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by