Pixel based image creating

5 visualizaciones (últimos 30 días)
Taha Erkam Orhan
Taha Erkam Orhan el 16 de Jun. de 2020
Comentada: Taha Erkam Orhan el 16 de Jun. de 2020
Hi. I want to create the following image by Matlab Code. What is the easiest way to do it. Thanks.
  3 comentarios
Aditya Verma
Aditya Verma el 16 de Jun. de 2020
Editada: Aditya Verma el 16 de Jun. de 2020
Hi, are you looking to create the same image, or similar pixel based images? You might need to enter the values in matrix manually, as pointed by KSSV.
Taha Erkam Orhan
Taha Erkam Orhan el 16 de Jun. de 2020
I can enter the values manually. Similar pixel based image example should work for me.

Iniciar sesión para comentar.

Respuesta aceptada

KSSV
KSSV el 16 de Jun. de 2020
m = 15; n = 15;
[X,Y] = meshgrid(1:m,1:n) ;
Z = 255*ones(m,n) ;
idx = randperm(m*n,100) ;
Z(idx) = 0 ;
% pcolor(X,Y,Z)
imshow(Z)
grid on

Más respuestas (0)

Categorías

Más información sobre Read, Write, and Modify Image 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