Re: How precise is Gimp 32-bit floating point compared to 16-bit integer?

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

 



Elle Stone (ellestone@xxxxxxxxxxxxxxxxxxxx) wrote:
> So real colors can easily fall outside the range 0.0 to 1.0 if they
> are converted to sRGB. What happens to the precision when dealing
> with RGB values up around 2.5 or down around -0.9?

Sign is stored in its own bit. Precision is not affected there.

Floating point numbers are represented as mantissa * (2**exponent),
So whenever the exponent gets increased by one you lose one bit of
"absolute" precision.

So for numbers up to two you have 22 binary digits of precision (after
the "dual" point), for numbers up to four you have 21 binary digits of
precision.

Bye,
        Simon
-- 
              simon@xxxxxxxx              http://simon.budig.de/
_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list@xxxxxxxxx
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://gnome.org/archives/gimp-developer-list




[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux