problem with +ift inverse transform of real/imaginary components
Posted: 2017-04-06T17:13:24-07:00
This is part of a bigger investigation of why fftdeconvol only returns colourful messes for me. I'm trying to do a simple deblur manually to see where things mess up.
I'm working with 16bit sRGB PNG files and with HRDI configured (and OpenCL if that might be relevant.)
gives:

gives:

which looks perfectly correct, but
gives:

which has bright corners and washed-out contrast.
I have no problem adjusting contrast in magnitude/phase with -ift. Any ideas what gives?
Thanks kindly!
I'm working with 16bit sRGB PNG files and with HRDI configured (and OpenCL if that might be relevant.)
Code: Select all
convert -version
Source image:Version: ImageMagick 6.9.7-9 Q16 x86_64 2017-04-05 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenCL OpenMP
Delegates (built-in): bzlib cairo fftw freetype jng jpeg ltdl png rsvg x zlib

Code: Select all
convert ../crop/_0161908_h4w3.png +fft +ift h4w3_rt.png

which looks perfectly correct, but
Code: Select all
convert ../crop/_0161908_h4w3.png +fft h4w3_ri.png
convert h4w3_ri-0.png h4w3_ri-1.png +ift h4w3_ri.png

which has bright corners and washed-out contrast.
I have no problem adjusting contrast in magnitude/phase with -ift. Any ideas what gives?
Thanks kindly!