Page 1 of 1

imfft and Fedora 8 compile issue.

Posted: 2008-05-05T13:12:11-07:00
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.

Re: imfft and Fedora 8 compile issue.

Posted: 2008-05-05T23:22:14-07:00
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.

Re: imfft and Fedora 8 compile issue.

Posted: 2008-05-06T08:50:18-07:00
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.

Re: imfft and Fedora 8 compile issue.

Posted: 2008-05-06T19:04:37-07:00
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

Re: imfft and Fedora 8 compile issue.

Posted: 2008-05-07T10:53:22-07:00
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.

Re: imfft and Fedora 8 compile issue.

Posted: 2008-05-07T11:45:41-07:00
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

Re: imfft and Fedora 8 compile issue.

Posted: 2008-05-12T12:05:08-07:00
by MES_TECH
I will try GREYCstoration and see how it works.