Generate a two-dimensional square and rectangular shape digital image.

The digital image should be 20 x 20 pixels in size and a complete white object against a black background.

 채택된 답변

Something like
grayImage = zeros(20,20, 'uint8');
grayImage(10:14, 4:12) = 255;
imshow(grayImage, []);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

질문:

2016년 8월 30일

답변:

2016년 8월 30일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by