What does your code do?
Emulate the curve feature of P*shop. Or some crude imitation of it.
The code load a binary file that contains 4 response curves for the following pixel pattern in the raw file:
(0)(1)
(2)(3)
The response curve will be applied to the RAW data before it gets converted to JPEG and after it is saved.
See the follow more graphical explanation from Mediachance:
Tone CurvesEach of the curve is supposed to correct a color. I provided some more cryptic explanation earlier in this post.
How do we add it to CHDK?
It is still work in progress: I am still working on an offline tool that would generate the curve files.
I am still need to verify the exact pattern of the different 'color pixels' (see comments below)
Though I have the feeling that all of this may get to a dead feature and do not want to clog the
source tree with this as yet.
Can you post some results for us to see?
For now I only try 6 different curves:
- 1 to 1 level transformation (i.e no change) for the 4 curves => OK
- 1 to 1/2 level for the 4 curves => OK
- 4 curves with a 1 to 1 level transformation and zero for the other 3 => odd result to be understood.
I was expecting to verify that by applying the different filter against a white picture and get the different colors
corresponding to each of the colored pixel on the CCD sensor.
I did not get the expected result: May be the assumption on the color pattern is not correct.
The speed is also too sluggish.
I also found out in the mean time that the polarizer can't be simulated and that the camera performance is too
slow for CA correction algorithm.