Pixel based image creating

Hi. I want to create the following image by Matlab Code. What is the easiest way to do it. Thanks.

3 Commenti

Do you know the locations to fix the pixel values?
m = 100 ;
I = zeros(m) ;
In the above at the locations (i,j) change value from 0 to 1.
Aditya Verma
Aditya Verma il 16 Giu 2020
Modificato: Aditya Verma il 16 Giu 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.
I can enter the values manually. Similar pixel based image example should work for me.

Accedi per commentare.

 Risposta accettata

KSSV
KSSV il 16 Giu 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

Più risposte (0)

Categorie

Scopri di più su Read, Write, and Modify Image in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by