imfft and Fedora 8 compile issue.

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
MES_TECH

imfft and Fedora 8 compile issue.

Post by MES_TECH »

I have been using Fedora 8 with ImageMagick-6.3.5.9-1.fc8 rpms.

I have installed fftw-3.1.2-5.fc8 rpms.

I have also installed all the devel libs and associated dependencies.

When I try to compile any of the IMFFT applications, I get the same errors.

Code: Select all

[rlaing@eagle1 trunk]$ make fft
gcc -Wall -pedantic -g -O2 -fPIC -I. `Magick-config --cflags` -c fft.c -L. -o fft.o
In file included from /usr/include/magick/delegate.h:26,
                 from /usr/include/magick/MagickCore.h:141,
                 from fft.c:14:
/usr/include/ghostscript/iapi.h:252: error: expected ‘)’ before ‘__extension__’
/usr/include/ghostscript/iapi.h:289: error: expected ‘)’ before ‘__extension__’
fft.c:266:38: warning: C++ style comments are not allowed in ISO C90
fft.c:266:38: warning: (this will be reported only once per input file)
fft.c:667:5: warning: imaginary constants are a GCC extension
make: *** [fft] Error 1
[rlaing@eagle1 trunk]$ make demo
gcc -Wall -pedantic -g -O2 -fPIC -I. `Magick-config --cflags` -c fft.c -L. -o fft.o
In file included from /usr/include/magick/delegate.h:26,
                 from /usr/include/magick/MagickCore.h:141,
                 from fft.c:14:
/usr/include/ghostscript/iapi.h:252: error: expected ‘)’ before ‘__extension__’
/usr/include/ghostscript/iapi.h:289: error: expected ‘)’ before ‘__extension__’
fft.c:266:38: warning: C++ style comments are not allowed in ISO C90
fft.c:266:38: warning: (this will be reported only once per input file)
fft.c:667:5: warning: imaginary constants are a GCC extension
make: *** [fft] Error 1
[rlaing@eagle1 trunk]$  
gcc-4.1.2-33

I am not familiar enough with programming to figure out where and what this error means.

I suspect that the error is related to Fedora libs but I don't know how I can submit a bug error on this.

I look forward to any response. Thank you.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: imfft and Fedora 8 compile issue.

Post by fmw42 »

see
viewtopic.php?f=2&t=10937

compile IM without ghostscript and see if that helps.

Please note that IMFFT is still under development.
MES_TECH

Re: imfft and Fedora 8 compile issue.

Post by MES_TECH »

fmw42 wrote:see
viewtopic.php?f=2&t=10937

compile IM without ghostscript and see if that helps.

Please note that IMFFT is still under development.
I found that script yesterday just before I left work.

I was hoping that there was a way to do this without having to recompile IM. If I have to recompile, I might as well download and test the latest version of IM.

I know that IMFFT is still underdevelopment but I need to do try some FFT work on some images and I am using IM at this time, so the natural progression is to use IMFFT for this. I am new to FFT in general and trying to remember all that forgotten math for the last 30 years to understand it.

Thank you for the quick response.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: imfft and Fedora 8 compile issue.

Post by fmw42 »

contact Sean Burke (see user seanburke1979 I think) for the latest version of his IMFFT that should work with ghostscript if you are using an appropriately current version of IM. They made some changes to IM to prevent this problem from occurring. See the post referenced earlier. However, the later versions of IMFFT create separate magnitude/phase images rather than tiff stacks. These changes have not been reflected yet in my examples at
http://www.fmwconcepts.com/misc_tests/F ... index.html
MES_TECH

Re: imfft and Fedora 8 compile issue.

Post by MES_TECH »

It was your test page that started this. :)

I am trying to clean up some images for work and the type of images and noise indicate that FFT is the best way.

I just posted a message to Sean Burke to see if there is a version that is different than on the ImageMagick site. I hope so.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: imfft and Fedora 8 compile issue.

Post by fmw42 »

patterned noise is best removed by FFT

however you may want to look at GREYCstoration also

see my examples and the reference inside at:

http://www.fmwconcepts.com/misc_tests/G ... index.html
MES_TECH

Re: imfft and Fedora 8 compile issue.

Post by MES_TECH »

I will try GREYCstoration and see how it works.
Post Reply