Generate a two-dimensional square and rectangular shape digital image.
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Adam Franco
il 30 Ago 2016
Risposto: Image Analyst
il 30 Ago 2016
The digital image should be 20 x 20 pixels in size and a complete white object against a black background.
0 Commenti
Risposta accettata
Image Analyst
il 30 Ago 2016
Something like
grayImage = zeros(20,20, 'uint8');
grayImage(10:14, 4:12) = 255;
imshow(grayImage, []);
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Image Segmentation and Analysis in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!