Pixel based image creating

조회 수: 6 (최근 30일)
Taha Erkam Orhan
Taha Erkam Orhan 2020년 6월 16일
댓글: Taha Erkam Orhan 2020년 6월 16일
Hi. I want to create the following image by Matlab Code. What is the easiest way to do it. Thanks.
  댓글 수: 3
Aditya Verma
Aditya Verma 2020년 6월 16일
편집: Aditya Verma 2020년 6월 16일
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 2020년 6월 16일
I can enter the values manually. Similar pixel based image example should work for me.

댓글을 달려면 로그인하십시오.

채택된 답변

KSSV
KSSV 2020년 6월 16일
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
  댓글 수: 1
Taha Erkam Orhan
Taha Erkam Orhan 2020년 6월 16일
Thanks for the answer.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by