Spectrum graph from an image
古いコメントを表示
I'd like to plot a graph (wavelength - intensity) from an image of color like this, how I can do?

Every color should correspond to a specific wavelength of the visible spectrum and to and intensity (from black to pure color). To make the problem easier I can use also only one row of pixels.
Can you help we with this problem? Thanks
採用された回答
その他の回答 (1 件)
Image Analyst
2018 年 5 月 7 日
0 投票
There are lots of ways to make a color, not just one. Have you ever heard of metamerism? Why don't we make an assumption that your spectrum is just monochromatic spikes (like lasers). Then you can simply say that the left color is 400 nm and the right color is 700 nm, and simply make up a lookup table giving the wavelength for some input RGB value.
カテゴリ
ヘルプ センター および File Exchange で Modify Image Colors についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!