[gegl] workshop/lens-distortion: use cubic interpolation
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] workshop/lens-distortion: use cubic interpolation
- Date: Mon, 26 Mar 2012 23:22:52 +0000 (UTC)
commit 9929574a00f76dd5bb55a6d194d588e87376061a
Author: Ãyvind KolÃs <pippin gimp org>
Date: Tue Mar 27 00:21:58 2012 +0100
workshop/lens-distortion: use cubic interpolation
It was using nearest, cubic is better (should maybe pass the inverse matrix as
well for even higher precision.)
operations/workshop/lens-distortion.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/operations/workshop/lens-distortion.c b/operations/workshop/lens-distortion.c
index 9c20d1b..377a43c 100644
--- a/operations/workshop/lens-distortion.c
+++ b/operations/workshop/lens-distortion.c
@@ -239,7 +239,7 @@ lens_distort_func (gfloat *src_buf,
{
gegl_buffer_sample (input, x, y, NULL, temp,
babl_format ("RGBA float"),
- GEGL_SAMPLER_NEAREST,
+ GEGL_SAMPLER_CUBIC,
GEGL_ABYSS_NONE);
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]