How to create a RGB image with reflectances ?

40 ビュー (過去 30 日間)
Maha
Maha 2019 年 7 月 2 日
コメント済み: Image Analyst 2020 年 11 月 11 日
Hello everyone,
I have reflectances data (water leaving reflectances ratios), partially corrected from the atmosphere (Rrc) or not (Rrs)
I can plot true colour or quasi true colour images with the different software available (SeaDAS, SNAP, etc). But I would like to do it in Matlab. I can't find any question about it.
We have access to reflectances at different wavelengths, like 490 for the blue, 555 for the green and 650 for the red.
How can I create an RGB image with these matrix ?
Cheers

回答 (2 件)

Image Analyst
Image Analyst 2019 年 8 月 1 日
  2 件のコメント
Maha
Maha 2019 年 8 月 2 日
Hum thanks for this answer, maybe my question should be more about how to transform a satellite light signal into an index, and then I could apply your function
Image Analyst
Image Analyst 2019 年 8 月 2 日
Well I've done that using the values of the chromaticity curves and multiple spectral images. Just weight the images by the curves, convert color space, etc. Not sure I could extract it from my program cleanly enough to give it to you though.
Maybe you'd like to see how a published paper discusses it.

サインインしてコメントする。


MaHa
MaHa 2020 年 9 月 25 日
The question is still up,
The answer from Image Analyst give me weird results (purple / cyan and pink only, weird).
I give a subset of my satellite data, so you may understand it better :
Reflectances values in the Red, Green, and Blue, 3 x 3 pixels :
R = [0.0182, 0.0231, 0.0253;
0.0185, 0.0259, 0.0270;
0.0252, 0.0303, 0.0239]
G = [0.0284, 0.0337, 0.0360;
0.0287, 0.0366, 0.0381;
0.0360, 0.0410, 0.0342]
B = [0.0279, 0.0343, 0.0372;
0.0284, 0.0378, 0.0392;
0.0371, 0.0431, 0.0358]
I just want 4 or 9 pixels of a true colour image with that.
imshow(cat(3,R,G,B)) does give one black pixel.
  3 件のコメント
MaHa
MaHa 2020 年 11 月 11 日
Thanks for the answer, it is the ocean so it makes sense !
Any idea on how to get "realistic" coeficients for the magnification ? I mean; at the end I just want to create an image that would look like a photo.
Image Analyst
Image Analyst 2020 年 11 月 11 日
If your image is of decent size, like bigger than 300 or 400 lines, it should look fine. You only need to use 'InitialMagnification' for really tiny images so they don't just look like a small dot on the screen.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by