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!