Reverse engineering the in camera development, anyone?

Hi,

I have been trying to copy the development done in camera by my cameras. I was fairly succesfull at times but generally surprised that they are actually doing a lot more than I expected.
Now to facilitate this process I came up with the following:

  1. In RT develop a raw with neutral setting (just adjust lens distortion etc so it matches the jpeg)
  2. Split out of camera jpeg and RT-jpeg into either RGB channels or better LAB channels.
  3. Subtract channels of RT-jpeg from camera-jpeg.
  4. Create a histogram for each channel.
    Use curves adjusted by these histograms on the channels of the neutral file. this should then get me the camera-jpeg.

Now my question, has anyone done this?
Are there programs that do this?
I understand that this should be possible in Gmic (@David_Tschumperle?)

My aim is to just save raw in the future and to have the out of camera processing as a starting point for further processing. Right now I am saving both as I do like the out of camera jpeg expecially of the EOS500d, which just creates wonderful warm images.

1 Like
3 Likes

Interesting thank you!

Now that DT is available in windows I’ll look into this.

There must be something in the air!
I read this not too long ago about reverse engineering RGB curves. In Spanish, but there is a link to Google translate.
There’s also some code linked in the article.

http://www.elmomentodecisivo.com/2017/09/ingenieria-inversa-de-curvas-rgb-con-r.html

That’s from Gui (Guillermo Luijk)… I used and sometimes still do his tonehacker software. He also fathered the pioneer zero noise - http://www.guillermoluijk.com/software/index.htm Specially tonehacker has an interesting concept, some years ago there was this guy developing a simillar idea, a bit also like the AIs nowadays, take this input, analyze it and apply it over there , it was something about automatic adjustments, remember we talked and he was interested in Luijk’s work and (at the time) the newcommer Oleg Sharonov’s powerfull 3DLutCreator which also has inbuilt a “ripping curves” mode

ahá, found the guy:

the beginnings of lut creator

3 Likes

If you’re just looking to play with with RGB curves approximations, I had an old article that described a process in GIMP:

https://patdavid.net/2012/07/getting-around-in-gimp-more-color.html

I really love the idea of your article and had a look at your video.

@james, seems I’ll have to finally look at image file formats…thanks for the link

@chroma_ghost, that tonehacker seems to be exactly what I am trying to do, thanks.