color-problem with imread and image
古いコメントを表示
I'm working on a mirror anamorphosis by a cilindrical mirror. I'm having a problem with using colors. The problem can be reduced to this simple script:
picture = imread('pict.jpg')
image(picture)
This is the picture that I want to get:

This is the picture that I do get:

Does anyone know what went wrong? Many thanks.
5 件のコメント
Image Analyst
2017 年 8 月 14 日
Not sure what your edit was, but with what I see now, my answer below still stands.
Stephen23
2017 年 8 月 14 日
@Merijn Vangilbergen: you have an indexed image. You should read these:
Merijn Vangilbergen
2017 年 8 月 15 日
Omer Al Sumeri
2022 年 5 月 5 日
The answer is unclear to me, Can someone clarify?
Image Analyst
2022 年 5 月 7 日
@Omer Al Sumeri, sure. Just start a new thread and attach your indexed image file. There, show us a screenshot of what you're getting when you use my answer from below
[indexedImage, cmap] = imread('Charizard.jpg.png');
imshow(indexedImage, cmap);
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!