Export [R,G,B] values from .fig

Hi,
I want to export the RGB values directly from matlab figure (.fig). I don't want to store my image data as image files like .jpeg or .bmp.
Please look at the figure below, I need the RGB values.
Thanks for help

댓글 수: 4

Walter Roberson
Walter Roberson 2016년 1월 25일
Nothing was attached.
Walter Roberson
Walter Roberson 2016년 1월 25일
What do you want to export to ?
Are you creating a .fig just to avoid having to use saveas() / print() / imwrite() ? Because if you want to export in a different form such as a .mat file, the easiest time to do it is as you construct the graphics, not from a .fig file.
Luisa Puhalo
Luisa Puhalo 2016년 1월 25일
I'm using imagesc to scale my image data. And I need this scaled RGB values, when I export the scaled image for example as a .jpeg file all the RGB values are different. Do you know a good way to export or to work with imagesc?
Thanks for comments.
Image Analyst
Image Analyst 2016년 1월 25일
If you want to scale your pixel values, for some reason, use mat2gray().

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

답변 (1개)

Walter Roberson
Walter Roberson 2016년 1월 25일

0 개 추천

If you want to export the scaled values I recommend you use the File Exchange contribution "freezeColors" and then get the CData of the image.

카테고리

도움말 센터File Exchange에서 Printing and Saving에 대해 자세히 알아보기

질문:

2016년 1월 25일

답변:

2016년 1월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by