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

조회 수: 21 (최근 30일)
The digital image should be 20 x 20 pixels in size and a complete white object against a black background.

채택된 답변

Image Analyst
Image Analyst 2016년 8월 30일
Something like
grayImage = zeros(20,20, 'uint8');
grayImage(10:14, 4:12) = 255;
imshow(grayImage, []);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by