Re: Looking for a 'general porpouse' RCT
- From: SG <s.gesemann@xxxxxxxxx>
- Date: Mon, 25 May 2009 08:41:19 -0700 (PDT)
On 25 Mai, 17:33, SG <s.gesem...@xxxxxxxxx> wrote:
On 25 Mai, 16:32, Thomas Richter wrote:
A neat hack might be to first represent the floats as ints, compute
on them, and then convert back. For example, you can cast the floats
to ints (which is approximately a logarithmic map), then compute on
the ints, then cast back. *This* will be lossless.
It's simply not possible to approximate linear mappings in a
reversible way with this approach. [...]
....or any approach for that matter.
The question is: Should the original poster care about rounding
errors? For values of R,G,B between [0,1] and IEEE 754 single
precision floats the rounding errors for a round trip conversion are
almost certainly below 10^(-6).
To clarify: I meant the absolute errors, not relative errors.
Cheers!
SG
.
- References:
- Looking for a 'general porpouse' RCT
- From: danilobrambilla
- Re: Looking for a 'general porpouse' RCT
- From: SG
- Re: Looking for a 'general porpouse' RCT
- From: danilobrambilla
- Re: Looking for a 'general porpouse' RCT
- From: SG
- Re: Looking for a 'general porpouse' RCT
- From: danilobrambilla
- Re: Looking for a 'general porpouse' RCT
- From: Thomas Richter
- Re: Looking for a 'general porpouse' RCT
- From: SG
- Looking for a 'general porpouse' RCT
- Prev by Date: Re: Looking for a 'general porpouse' RCT
- Next by Date: Re: Looking for a 'general porpouse' RCT
- Previous by thread: Re: Looking for a 'general porpouse' RCT
- Next by thread: Re: Looking for a 'general porpouse' RCT
- Index(es):
Relevant Pages
|