Color that shows by the imshow, doesn't match to the color that I expect.

조회 수: 2 (최근 30일)
Dongwon
Dongwon 2022년 12월 14일
댓글: Jan 2022년 12월 15일
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
Jan
Jan 2022년 12월 15일
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.

댓글을 달려면 로그인하십시오.

채택된 답변

millercommamatt
millercommamatt 2022년 12월 15일
이동: Jan 2022년 12월 15일
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');
imshow test

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by