Pixel based image creating
6 ビュー (過去 30 日間)
古いコメントを表示
Hi. I want to create the following image by Matlab Code. What is the easiest way to do it. Thanks.
3 件のコメント
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.
採用された回答
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
その他の回答 (0 件)
参考
カテゴリ
Help Center および File 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!