diff options
author | Tomas Farago <sensej007@email.cz> | 2019-06-24 12:28:23 +0200 |
---|---|---|
committer | Tomas Farago <sensej007@email.cz> | 2019-06-24 12:28:23 +0200 |
commit | ba5b9e68bc0c60cedee0e55f9a519d65ba1e9345 (patch) | |
tree | ef95914b04fe43842dc92d7e2bf30fe2a2399d8a /src | |
parent | e706f4104e54d15866f05071d7f81861ad3ab6c4 (diff) | |
download | ufo-filters-ba5b9e68bc0c60cedee0e55f9a519d65ba1e9345.tar.gz ufo-filters-ba5b9e68bc0c60cedee0e55f9a519d65ba1e9345.tar.bz2 ufo-filters-ba5b9e68bc0c60cedee0e55f9a519d65ba1e9345.tar.xz ufo-filters-ba5b9e68bc0c60cedee0e55f9a519d65ba1e9345.zip |
Fix ifft scale for crop width or height
fixes #177.
Diffstat (limited to 'src')
-rw-r--r-- | src/ufo-ifft-task.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ufo-ifft-task.c b/src/ufo-ifft-task.c index 6c51df5..38a3397 100644 --- a/src/ufo-ifft-task.c +++ b/src/ufo-ifft-task.c @@ -182,10 +182,10 @@ ufo_ifft_task_process (UfoTask *task, 0, NULL, NULL)); /* Scale and reshape if necessary */ - scale = 1.0f / ((gfloat) requisition->dims[0]); + scale = 1.0f / ((gfloat) priv->param.size[0]); if (priv->param.dimensions == UFO_FFT_2D) { - scale /= (gfloat) requisition->dims[1]; + scale /= (gfloat) priv->param.size[1]; } width = (cl_int) requisition->dims[0]; |