Closed TIMESTICKING closed 2 years ago
In addition to setting gamma to 1, you also might want to avoid color space conversion (to sRGB by default) by setting output_color=ColorSpace.raw
. I usually do user_wb=(1,1,1,1), output_color=ColorSpace.raw, output_bps=16, gamma=(1,1)
to get something as close to raw as possible (this will still include black level subtract and stretching/scaling to maximum data range).
Please use Discussions for questions like these, this section is for reporting real issues.
thank you a lot! :D
Hi, i was using matlab to read a .dng file, and the bit depth is larger than 8 bits, so I directly divide them by the max of them. the result I got is lighter than yours. I set
postprocess(output_bps=8, use_camera_wb=False, gamma=(1,1))
the matlab code isI know I got RYB from those, so after I've done this
rgb(:,:,2) = ryb(:,:,2) - ryb(:,:,1);
So, I just want to get the original the raw picture, does your lib do something else? Like tone-mapping, gamma trans ...