Scaling of "auto-bright"


Just a quick question, considering the standard raw processing sequence (for decoded/linearized data) in "dcraw_process (..)", is the scaling for "auto-bright" is processed on linear data?

Thanks a lot,



Auto-bright is performed on

Auto-bright is performed on dcraw_make_mem_image() stage and changes the range of input data that mapped into output (gamma-corrected) image, based on image histogram (in linear space).

So, yes, it is done in linear space, but on output.

-- Alex Tutubalin