Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in -complex magnitude-phase #362

Open
fmw42 opened this issue Jan 21, 2025 · 0 comments
Open

Bug in -complex magnitude-phase #362

fmw42 opened this issue Jan 21, 2025 · 0 comments

Comments

@fmw42
Copy link

fmw42 commented Jan 21, 2025

ImageMagick version

6.9.13-21 Q16 aarch64

Operating system

MacOS

Operating system, version and so on

Ventura

Description

+fft -complex magnitude-phase images do not match with those from -fft

The IM 7.1.1.44 version works fine, but not the IM 6.9.13.21 version

Input:

Image

IM 6 (magnitude and phase do not match):

convert square31.png -define fourier:normalize=forward +fft -complex magnitude-phase ( -clone 0 -evaluate log 100000 ) -swap 0,2 +delete x.png

Image

Image

convert square31.png -define fourier:normalize=forward -fft ( -clone 0 -evaluate log 100000 ) -swap 0,2 +delete y.png

Image

Image

IM 7 (magnitude and phase match properly):

magick square31.png -define fourier:normalize=forward +fft -complex magnitude-phase ( -clone 0 -evaluate log 100000 ) -swap 0,2 +delete u.png

Image

Image

magick square31.png -define fourier:normalize=forward -fft ( -clone 0 -evaluate log 100000 ) -swap 0,2 +delete v.png

Image

Image

Similarly with -define fourier:normalize=inverse

Is -complex compatible with IM 6? If not, it should give an error

Steps to Reproduce

See above

Images

See above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant