[Gegl-developer] Clamping results to valid range

2014-12-21 Thread Nanley Chery
Why don't operations like gegl:add and gegl:multiply clamp the resulting
values between 0.0 and 1.0? Won't this potentially result in garbage rgb
values?

Thanks,
Nanley
___
gegl-developer-list mailing list
List address:gegl-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gegl-developer-list



Re: [Gegl-developer] Clamping results to valid range

2014-12-21 Thread Øyvind Kolås
On Sun, Dec 21, 2014 at 4:39 PM, Nanley Chery nanleych...@gmail.com wrote:
 Why don't operations like gegl:add and gegl:multiply clamp the resulting
 values between 0.0 and 1.0? Won't this potentially result in garbage rgb
 values?

The RGB values used by GEGL are not bounded by the gamut of a color
space. Out of gamut values are not garbage, but can occur both as
intermediate/temporary values - in operations like unsharp mask, as
well as for HDR[1] and if the RGB data originates in a color space
with a larger gamut than the one currently used.

If any operation, or an application like GIMP, requests the data with
an 8bit or 16bit representation the data is clamped then.

1: http://en.wikipedia.org/wiki/High-dynamic-range_imaging

/pippin
___
gegl-developer-list mailing list
List address:gegl-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gegl-developer-list