Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
Hello,
Can anyone guide me how to generate an image with black and white bits with any letter or any sign?
Image source:copied

Respuesta aceptada

Image Analyst
Image Analyst el 24 de Abr. de 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.

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by