ejmartin
Veteran Member
Indeed. Demosaicing is an educated guess about missing coordinates in color space based on "typical" properties of images. Metamerism differs for human vision spectral response functions and digital camera sensor spectral response functions, and so color space transforms are necessarily an educated guess as to what the human vision version is given the digital camera version. These don't seem to me to be particularly related inference problems, and so I'm curious as to the reasoning that leads to the conclusion that it's better to do one before the other. You are saying that it's better to do the color space transform first. Why?Neither the raw colour data nor the demosaicing are linear operations (in
the same sense RGB is not perceptually linear) unless you resort to
the simplest of algorithms.
To see how complex is the problem of colour restoration and how large
is the error sometimes you may want to look at metamerism of sensors.
--
emil
--
http://theory.uchicago.edu/~ejm/pix/20d/