How to design an image with black and white bits in matlab?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
marie lasz
am 24 Apr. 2021
Kommentiert: marie lasz
am 25 Apr. 2021
Hello,
Can anyone guide me how to generate an image with black and white bits with any letter or any sign?
Image source:copied
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/595525/image.jpeg)
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 24 Apr. 2021
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!