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



On Sun, Dec 21, 2014 at 4:39 PM, Nanley Chery <nanleychery 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


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