openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] 8 bit int?


From: Florian Kainz
Subject: Re: [Openexr-devel] 8 bit int?
Date: Tue, 23 Jun 2009 16:06:24 -0700
User-agent: Mozilla Thunderbird 1.0 (X11/20041207)



Larry Gritz wrote:
Florian Kainz wrote:
One problem that needs to be solved is how the mapping between floating-point numbers and integers gets encoded.

How does it work for the currently-supported int32? I'd be happy with something analogous, only fewer bits.


For 32-bit integers the numerical value is approximated.  For example,
3248 becomes 3240.0, and 1.7 becomes 2.  For 32-bit integers this is
ok, because the integers are generally used as identifiers ("what object
is visible in this pixel?"), not as numerical values.

This doesn't seem very useful for 8-bit integers.  Most of the time you'd
want 0 through 255 to represent a 0.0 to 1.0 range, optionally with a
gamma curve.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]