Add new comment

Inversed tone curve after

Inverted tone curve after unpack() should work fine too.

BTW, it is better to manipulate raw data in 'linear domain' (so, after real tone curve applied) and apply inverted curve before packing your data back (to DNG).

-- Alex Tutubalin @LibRaw LLC