summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Farago <sensej007@email.cz>2018-05-30 09:23:34 +0200
committerTomas Farago <sensej007@email.cz>2018-06-28 14:06:48 +0200
commitb15e662162b0799e175aed96cdd75791cb802a41 (patch)
treefbed1c04b6bf96bafc2391a5a364782a0ba1ca8a
parent39f64817b9fd5d222866d09bb5e8ceb45f924f6c (diff)
downloadufo-filters-b15e662162b0799e175aed96cdd75791cb802a41.tar.gz
ufo-filters-b15e662162b0799e175aed96cdd75791cb802a41.tar.bz2
ufo-filters-b15e662162b0799e175aed96cdd75791cb802a41.tar.xz
ufo-filters-b15e662162b0799e175aed96cdd75791cb802a41.zip
filter: Enable scaling in ramp_fromreal
-rw-r--r--src/ufo-filter-task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ufo-filter-task.c b/src/ufo-filter-task.c
index 762a231..b1a37e3 100644
--- a/src/ufo-filter-task.c
+++ b/src/ufo-filter-task.c
@@ -185,10 +185,10 @@ compute_real_space_ramp_coefficients (UfoFilterTaskPrivate *priv,
gfloat *filter,
guint width)
{
- filter[0] = filter[1] = 0.25;
+ filter[0] = filter[1] = 0.25 * priv->scale;
for (guint k = 1; k < width / 4 + 1; k++) {
- filter[2*k] = k % 2 ? - 1 / (k * k * G_PI * G_PI) : 0.0;
+ filter[2*k] = k % 2 ? - priv->scale / (k * k * G_PI * G_PI) : 0.0;
filter[2*k + 1] = filter[2*k];
}
}