Re: [Gegl-developer] Clamping results to valid range
- From: Øyvind Kolås <pippin gimp org>
- To: Nanley Chery <nanleychery gmail com>
- Cc: gegl-developer-list <gegl-developer-list gnome org>
- Subject: Re: [Gegl-developer] Clamping results to valid range
- Date: Sun, 21 Dec 2014 17:27:46 +0100
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]