Commit 613f6805 authored by Nicolas Robidoux's avatar Nicolas Robidoux Committed by Øyvind "pippin" Kolås

comments

parent 4065cb34
...@@ -1992,6 +1992,10 @@ gegl_sampler_lohalo_get ( GeglSampler* restrict self, ...@@ -1992,6 +1992,10 @@ gegl_sampler_lohalo_get ( GeglSampler* restrict self,
* If s1 <= 1, the forward transformation is not downsampling in * If s1 <= 1, the forward transformation is not downsampling in
* any direction, and consequently we do not need the * any direction, and consequently we do not need the
* downsampling scheme at all. * downsampling scheme at all.
*
* A fudge factor is added to checking whether s1 > 1 to account
* for round off error and the fact that if s1 is just above 1
* the teepee weight is going to be negligible.
*/ */
if (twice_s1s1 >= (gdouble) 2. + LOHALO_FUDGE) if (twice_s1s1 >= (gdouble) 2. + LOHALO_FUDGE)
...@@ -2206,7 +2210,9 @@ gegl_sampler_lohalo_get ( GeglSampler* restrict self, ...@@ -2206,7 +2210,9 @@ gegl_sampler_lohalo_get ( GeglSampler* restrict self,
const gfloat bounding_box_half_height = const gfloat bounding_box_half_height =
sqrtf( (gfloat) (ellipse_a * bounding_box_factor) ); sqrtf( (gfloat) (ellipse_a * bounding_box_factor) );
/* /*
* Bounding box with wiggle room: * Bounding box shrunk a smidgen given that a location
* very close to the edge of the bounding box will get a
* negligible weight:
*/ */
const gfloat fudged_bounding_box_half_width = const gfloat fudged_bounding_box_half_width =
bounding_box_half_width - LOHALO_FUDGEF; bounding_box_half_width - LOHALO_FUDGEF;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment