Creation of a black and white image
70 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Damien Dubois
am 17 Jun. 2021
Kommentiert: Damien Dubois
am 17 Jun. 2021
Hello, I tried to create an image of 512 X 512 pixels filled with black and in its center a square of white pixels of width 100 pixels for the moment I use this code to display an image in black but I can not do it at all is it you have a solution ?
image=zeros(512,512,3); %initialize
image(:,1)=0.5; %(dark )
figure, imshow(image)
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!