How to imshow to display colors consistently with other mac apps?
조회 수: 3 (최근 30일)
이전 댓글 표시
This appears to be a long standing issue but the question from 2015 didn't make much progress or reproduce easily. Here's what I've done
Z = repmat(uint8(cat(3,240,162,0)),512,512);
imshow(Z)
imwrite(Z,'orange.png');
Then open orange.png in a variety of different apps. Using Digital Color Meter.app we can see how the display is considering the color. Only Matlab's display is a direct mapping of the [240 162 0] values all others appear to have a (fairly consistent) color correction filter applied for display.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1200973/image.png)
We can confirm that it's not a problem with imwrite writing the .png by seeing that photoshop agrees that the pixel values are [240 162 0].
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1200978/image.png)
Why is matlab's display inconsistent with other apps on mac? Is there a way to adjust matlab so that the colors match other applications/use this apparently system-wide color correction?
댓글 수: 3
Walter Roberson
2022년 11월 21일
I think I understand what you are doing; I just do not know how to do what you want. The only thing that comes to mind is somehow working out a representation of the active color profile and doing a mapping on the MATLAB colors. But I do not know how you would get an appropriate representation of the active color profile.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Install Products에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!