Colormap is not applied correctly

8 ビュー (過去 30 日間)
Jakob Sørensen
Jakob Sørensen 2014 年 5 月 9 日
コメント済み: Jakob Sørensen 2014 年 5 月 9 日
Hi there,
I'm having a really odd issue when loading and showing my own GIF and PNG images. It seems that when the colormap is applied, it is in the wrong order. The colors in the image seems correct, but they have all switched places. I make the images with Photoshop, and have tried saving in 10 different ways, all with the same result. It seems to work just fine on images from the web.
Code
axes(handles.axesLogo);
[logo,cmap] = imread('VisSVM-Logo.gif');
imshow(logo);
colormap(cmap);
Can anyone tell me what the heck I'm doing wrong? The image looks just fine everywhere else (as it can be seen in the attached photo).
  2 件のコメント
Image Analyst
Image Analyst 2014 年 5 月 9 日
You forgot to attach the image - not the screenshots, but the image, so we can investigate.
Jakob Sørensen
Jakob Sørensen 2014 年 5 月 9 日
The actual image I'm trying to use...

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeBlue についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by