#362 Highlight handling improvements (patches)


Hi guys,

I would like to share with you some improvements (in my opinion, of course) to ufraw's highlight handling.

1) a fix for some false colors and abrupt transitions when using a color matrix (visible when the overexposed areas contain strong colors)
2) an enhancement for the "soft film" curve that results in less blown highlights
3) a small fix for highlights in images exposed to the right, that do not contain any overexposed data in the raw file, but the output from ufraw is clipped

Please find the patches, examples and raw files for testing here:
http://www.magiclantern.fm/forum/index.php?topic=5197 (first post for the first patch)
http://www.magiclantern.fm/forum/index.php?topic=5197.msg91513#msg91513 (same topic, post #6 for patches 2 and 3)

If you have any questions or need more test images, just let me know.



  • Peter Sütterlin

    I just noticed that, in color matrix mode, the maximum intensity level gets clipped below the saturation level (you see a step in the curve). This leads to the annoying situation that those areas are no longer reported as overexposed: For one image, having ~4% overexposed red pixels, UFRaw only reports 0.4% at +1EV, for +1.2 EV all overexposure is 'gone'! (BTW, this only affects red and blue channels)
    Is jour fix 1) addressing exactly this?
    If so, it should really get included in the main sources....

    Last edit: Peter Sütterlin 2014-04-19
  • a1ex

    a1ex - 2014-04-22

    TBH, I never used highlight warnings from ufraw, so I don't know. Can try to describe the issue better, so I can look into it?

    Fix 1 is actually a workaround for highly saturated colors (for example, bright colored LEDs) rendered incorrectly (even if the raw file is not clipped at all). However, this does not cover all my test cases (found a few really bad ones last week), so I'll try to find a better fix.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks