possible long time bug with -fft in IM 6.5.x to 6.6.x

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible long time bug with -fft in IM 6.5.x to 6.6.x

Post by magick »

Download load the ImageMagick source and type:
  • cd ImageMagick-6.6.7-7
    ./configure
    make
    make install
    make check
The 'make check' runs the validation test.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible long time bug with -fft in IM 6.5.x to 6.6.x

Post by fmw42 »

The magnitude, phase, and spectrum images seem OK, but the mask is always almost black

try writing intermediate images and see if they match mine below to see which command is the problem:


convert clown_spectrum_edited.png clown_spectrum.png \
-compose difference -composite -write clown_tmp1.png \
-threshold 0 -write clown_tmp2.png -negate clown_spectrum_mask.png


clown_tmp1.png
Image

clown_tmp2.png
Image


Also as the PNG coder has been changing over the last number of releases, you could try prefacing each write or output image with PNG32:

convert clown_spectrum_edited.png clown_spectrum.png \
-compose difference -composite -write PNG32:clown_tmp1.png \
-threshold 0 -write PNG32:clown_tmp2.png -negate PNG32:clown_spectrum_mask.png

See if that makes a difference.
Post Reply