Image save with colormap
이전 댓글 표시
Dear all, I have a image data, and I made gray image to color image with jet colormap. However, the imshow function does not support the full scale or full size saving. How can I solve this problem?
댓글 수: 1
Guillaume
2016년 5월 10일
imshow has nothing to do with saving images. I don't understand the question.
채택된 답변
추가 답변 (2개)
Amy Haskins
2016년 5월 10일
0 개 추천
You're using your gray image like an indexed image and applying a colormap. The function ind2rgb will let you convert your gray image to RGB with a specified colormap and give you the full res image you're looking for.
If by save you mean save to disk, then you can use imwrite with the syntax imwrite(A,map,filename) to save the gray image and colormap, or you can save the RGB image with the imwite(A,filename) syntax after calling ind2rgb.
Walter Roberson
2016년 5월 10일
0 개 추천
Get freezeColors from the File Exchange. Display your image. freeze the colors. get the CData property from the image object. imwrite() it to a file.
카테고리
도움말 센터 및 File Exchange에서 Blue에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!