What are the colors generated when R is always 255 and the value of G and B vary from 0 to 255 (8-bits)?
조회 수: 1 (최근 30일)
이전 댓글 표시
When I see the RGB color model, my results matched with the gradation of the colors within the red wheel (i.e. magenta, yellow, white, and red). Should it be like that?
댓글 수: 0
답변 (1개)
Image Analyst
2016년 11월 21일
Yes. You will get a bunch of colors. Those plus more.
댓글 수: 1
Walter Roberson
2016년 11월 21일
Yes.
[G,B] = ndgrid(uint8(0:255));
RGB = cat(3,uint8(255) * ones(256,256,'uint8'), G, B);
image(RGB)
참고 항목
카테고리
Help Center 및 File Exchange에서 Modify Image Colors에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!