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
2016-1-25
Nothing was attached.
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
2016-1-25
Image Analyst
2016-1-25
If you want to scale your pixel values, for some reason, use mat2gray().
回答(1 个)
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 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!