[ITK Community] [Insight-users] Obtaining Real Result from Inverse Fourier Transform
Cory Quammen
cory.quammen at kitware.com
Fri Nov 22 15:27:00 EST 2013
Because FFTComplexToComplexImageFilter is defined entirely in a header, you
don't need to recompile ITK.
FFTComplexToComplexImageFilter is in the Review module which means it is
somewhat experimental, so there may be bugs. I don't know if it has been
modified since before ITKv4 came out, so it's entirely possible that there
are bugs.
Could you run your program in a debugger and see where it is segfaulting?
Cory
On Fri, Nov 22, 2013 at 3:09 PM, DVigneault <davis.vigneault at gmail.com>wrote:
> It now compiles without errors, but I get "Segmentation Fault: 11" when
> running the program.
>
> I've been assuming that this module is on since it didn't complain when I
> added the header. Is this assumption safe? If not, then to turn the
> Review
> module on, do I rebuild all of ITK?
>
> Here's the updated code:
>
> typedef itk::FFTComplexToComplexImageFilter< ComplexImageType >
> FFTInverseFilterType;
> FFTInverseFilterType::Pointer fftInverseFilter =
> FFTInverseFilterType::New();
> fftInverseFilter->SetInput( maskedShiftFilter->GetOutput() );
> fftInverseFilter->SetTransformDirection( FFTInverseFilterType::INVERSE
> );
>
> try
> {
> fftInverseFilter->Update();
> std::cerr << "fftInverseFilter->Update() excecuted successfully."
> <<
> std::endl;
> }
> catch( itk::ExceptionObject & excp )
> {
> std::cerr << "Error during fftInverseFilter->Update(): " <<
> std::endl;
> std::cerr << excp << std::endl;
> return EXIT_FAILURE;
> }
>
>
>
> --
> View this message in context:
> http://itk-insight-users.2283740.n2.nabble.com/Obtaining-Real-Result-from-Inverse-Fourier-Transform-tp7584430p7584437.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20131122/5b835c4d/attachment.htm>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
More information about the Community
mailing list