@A1ex thanks, that is useful.
@g3gg0 couldn't really tell much from the code, but thank you, useful to know what the matrices actually do
According to that document, ColourMatrix2 contains XYZ to camera conversion, so(as g3gg0 says) that would need to be reversed and used to get RAW -> XYZ, then do XYZ -> RGB... etc
I'm still confused about one thing though, at what point does white balance multipliers need to be applied?/in what space?
The PDF says: raw data
-> linearisation
-> white balance -> demosaicing
-> colour space correction -> brightness and contrast control
-> final image
So the camera->XYZ->RGB matrix process happens after white balance?
But how could that be the case? if it is, correcting white balance after colour space correction would be wrong, which makes no sense to me.
Or would it be done before white balance, which "(Bayer channels) -> (XYZ)" seems to imply - "Bayer" suggests white balance has not been done yet.
TL;DR In what order to do:
(Bayer channels)->(XYZ)->(RGB) and
White Balancing?
Apologies for not understanding anything.
Edit: @Danne I realised "What are you aiming for?" must have meant in general, well basically an all in one app for MLV thats free and open source and good(maybe)
