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 Center および File ExchangeRead, 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