|
From: | Christophe Lorenz |
Subject: | [Openexr-devel] Negative pixels and gamma math issues on half16 |
Date: | Thu, 07 Jul 2005 10:22:58 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 |
I'm just curious how you guys get around that problem.... We have to apply gamma correction on linear images in half16 format.... The issue is of course that powers of negative numbers with fractionnal exponents isn't always possible... The other thing is that even if a power of 2 is always possible, the curve flattens at zero and goes up again. This is typically not an issue when displaying an image because the values are clamped anyhow... But because we do colorgrading, we want to keep the information present across the whole range, even after applying a gamma correction. (otherwise we end up with range clamped between 0-1) We also want to avoid the flat part around 0, but keep the curve close to a real power function. We ended up doing a special gamma function that has 2 linear parts at 0 and 1 and smoothly blend with the real gamma on a 0.1 range. Then, below 0 and above 1, the linear function is used. (this is similar to what the broadcast tv guys are doing in the low lights) Has anyone faced the same issue ? Chris. --
Lorenz Christophe - R&D ACE Digital House Schiphollaan 2 - 1140 Brussels - Belgium T: +32 2 735 60 20 F: +32 2 734 09 63 http://www.ace-postproduction.com This e-mail and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this email and any attachments thereto, is strictly prohibited. If you receive this email in error please immediately notify me at (32)2 735 60 20 and permanently delete the original copy and any copy of any e-mail, and any printout thereof. |
[Prev in Thread] | Current Thread | [Next in Thread] |