I would like to create a NxM white image. But how to put color vectors [256 256 256] into a 2D array?

 채택된 답변

Image Analyst
Image Analyst 2015년 12월 15일

0 개 추천

Try this to create a grayscale image:
whiteImage = 255 * ones(N, M, 'uint8');
imshow(whiteImage);
To create an RGB image, try this:
whiteImage = 255 * ones(480, 640, 3, 'uint8');
imshow(whiteImage);

추가 답변 (1개)

John BG
John BG 2015년 12월 15일

0 개 추천

max allowe [255 255 255] I repeat, the range is [0 255], 256 values.

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

질문:

2015년 12월 15일

답변:

2015년 12월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by