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

ITK ERROR: Object factory failed to instantiate class itk::RealToHalfHermitianForwardFFTImageFilter #5048

Open
LANGZHIZHEN opened this issue Dec 12, 2024 · 2 comments
Labels
type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances

Comments

@LANGZHIZHEN
Copy link

I use cmake compiled ITK5.3.0, perform using FFTType = itk: : RealToHalfHermitianForwardFFTImageFilter < class itk: : Image < float, 3 > >; TRY_AND_EXIT_ON_ITK_EXCEPTION(typename FFTType::Pointer fft = FFTType::New()); Error:
Location: "class itk::SmartPointer<class itk::RealToHalfHermitianForwardFFTImageFilter<class itk::Image<double,3>,class itk::Image<class std::complex,3> > > __cdecl itk::RealToHalfHermitianForwardFFTImageFilter<class itk::Image<double,3>,class itk::Image<class std::complex,3> >::New(void)"
File: F: \ ITK \ Bin \ include \ \ itkRealToHalfHermitianForwardFFTImageFilter ITK 5.3 h
Line: 85
Description: ITK ERROR: Object factory failed to instantiate class itk::RealToHalfHermitianForwardFFTImageFilter<class itk::Image<double,3>,class itk::Image<class std::complex,3> >.
What should I do about it? I did not check ITK_USE_FFTWF in cmake, because this problem will also occur if it is checked.

@LANGZHIZHEN LANGZHIZHEN added the type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances label Dec 12, 2024
Copy link

Thank you for contributing an issue! 🙏

Welcome to the ITK community! 🤗👋☀️

We are glad you are here and appreciate your contribution. Please keep in mind our community participation guidelines. 📜
Also, please check existing open issues and consider discussion on the ITK Discourse. 📖

This is an automatic message. Allow for time for the ITK community to be able to read the issue and comment on it.

@dzenanz
Copy link
Member

dzenanz commented Dec 12, 2024

You are trying to instantiate abstract base class. You need to pick either VnlRealToHalfHermitianForwardFFTImageFilter (built-in, single threaded) or FFTWRealToHalfHermitianForwardFFTImageFilter (parallel, requires ITK_USE_FFTW).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances
Projects
None yet
Development

No branches or pull requests

2 participants