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.
댓글 수: 0
채택된 답변
Image Analyst
2016년 8월 30일
Something like
grayImage = zeros(20,20, 'uint8');
grayImage(10:14, 4:12) = 255;
imshow(grayImage, []);
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!