Re: RFC: More accurate color conversion

[email protected] (Søren Sandmann)
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Wolfgang Draxinger <[email protected]> writes:

> I'd like to throw in this little paper, discussing the problem of
> floating point <-> integer range conversion at depth: 
>
> http://kaba.hilvi.org/homepage/programming/range/RangeConversion.pdf

In terms of that paper, f(x) is fixed to be x / 65535.0, and so the rest
of the paper doesn't really apply since it's trying to find a _pair_ of
functions f and g such that the error between f(g(x)) and x is
minimized [1].

With f(x) = x / 65535.0, I believe the function g that minimizes that
error is the midtread quantizer, AKA plain old rounding.


Søren

[1] In the Acknowledgements section, the paper talks about minimizing
the error between x and g(f(x)), but presumably that's a typo since
hopefully x == g(f(x)) for all x.
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.