convert rgb image to mean power spectral density
4 次查看(过去 30 天)
显示 更早的评论
Hi,
I like to convert rgb data of a photo in a mean power spectrum density of this photo.
Giusi
0 个评论
采纳的回答
Guillaume
2018-12-12
For that you would first need to know the frequency response of the camera sensor that has been used to acquire that photo. I can guarantee that it's not going to be flat at all (non-scientific sensors tend to respond more to green). In addition, you'll need to know the exact settings under which that photo has been acquired (exposure, aperture, iso settings, any digital correction applied, etc.). Without any of this information it is impossible to get the PSD.
0 个评论
更多回答(1 个)
Giuseppa Buscaino
2018-12-12
1 个评论
Guillaume
2018-12-12
No, you will need the frequency response of the sensor. It's not something that's normally published so that's something you would normally measure under lab conditions. And I forgot that you also need the frequency response of the lens.
That response is also going to depend on the camera settings. Some of them are indeed encoded in your file but it doesn't look that it's enough. In particular, since most settings seem to be on Auto. In particular, auto ISO and auto white balance will affect the frequency response of the sensor/electronics.
In general, unless you're using calibrated equipment (that you've calibrated yourself under the exact same conditions) it's not possible to get information about the light spectrum from a photo.
社区
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!