Color that shows by the imshow, doesn't match to the color that I expect.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Dongwon
am 14 Dez. 2022
Kommentiert: Jan
am 15 Dez. 2022
As you see in these matrix, the third column in second row must be the orange. And the second column in the first row must be the purple, but the figure does not show the correct color. How can i fix this?
1 Kommentar
Jan
am 15 Dez. 2022
It is easier to check the values, if you post the code as text, not as screenshot.
This is not twitter: No # before the tags. Thanks.
Akzeptierte Antwort
millercommamatt
am 15 Dez. 2022
Verschoben: Jan
am 15 Dez. 2022
This displays as expected for me.
imshow(uint8(cat(3,...
[0 128 0;0 255 255;255 255 255;0 0 0],...
[0 0 0;255 255 128;0 255 0;255 255 255],...
[255 255 0;0 0 0;0 255 255;255 255 255])),'InitialMagnification','fit');
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Display Image finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!