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!