What are the colors generated when R is always 255 and the value of G and B vary from 0 to 255 (8-bits)?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Image Analyst
el 21 de Nov. de 2016
Yes. You will get a bunch of colors. Those plus more.
1 comentario
Walter Roberson
el 21 de Nov. de 2016
Yes.
[G,B] = ndgrid(uint8(0:255));
RGB = cat(3,uint8(255) * ones(256,256,'uint8'), G, B);
image(RGB)
Ver también
Categorías
Más información sobre Modify Image Colors en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!