<div dir="ltr">It's already OFF in Cmake. Here is the screenshot.<div><img src="cid:ii_lx025diy1" alt="image.png" width="562" height="82"><br></div><div><br></div><div>Regards,</div><div>Akshara</div></div><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 4 Jun 2024 at 11:46, Simon Rit <<a href="mailto:simon.rit@creatis.insa-lyon.fr" target="_blank">simon.rit@creatis.insa-lyon.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>What about ITK_USE_CUFFTW? I would keep it OFF to see if it fixes the problem, RTK has its own implementation of this.</div><div>Simon<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 4, 2024 at 8:11 AM Akshara P K <<a href="mailto:akshara@advitech.in" target="_blank">akshara@advitech.in</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Simon, <br>Yes, I already tried it. Tried enabling 'ITK_USE_FFTWD' and 'ITK_USE_FFTWF' and made use of those libs and includes in the project. Still the error is coming.<div><img src="cid:ii_lx002exz0" alt="image.png" width="562" height="21"><br></div><div><br></div><div>Regards,</div><div>Akshara</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 4 Jun 2024 at 10:29, Simon Rit <<a href="mailto:simon.rit@creatis.insa-lyon.fr" target="_blank">simon.rit@creatis.insa-lyon.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div>I have never encountered this issue. Have you set ITK_USE_FFTWF and/or ITK_USE_CUFFTW to ON in your CMake options?</div><div>Simon<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 4, 2024 at 6:50 AM Akshara P K <<a href="mailto:akshara@advitech.in" target="_blank">akshara@advitech.in</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<div><br> We're currently engaged in CBCT reconstruction and have successfully developed a Python-based code for the task, which functions without issue. However, encountering an error during the conversion process to C++, specifically at the stage of FDK reconstruction filter implementation, has prompted our inquiry. The error message reads as follows:<br><br>itk::ExceptionObject (000000EBA52FDC68)<br>Location: "unknown"<br>File: C:\ITK\src\Modules\Filtering\FFT\include\itkRealToHalfHermitianForwardFFTImageFilter.h<br>Line: 85<br>Description: ITK ERROR: Object factory failed to instantiate class itk::RealToHalfHermitianForwardFFTImageFilter<class itk::Image<float,3>,class itk::Image<class std::complex<float>,3> ><br><br> Our FDK implementation in C++ is as follows:<br><br>using FDKGPUType = rtk::CudaFDKConeBeamReconstructionFilter;<br><br>// Creating the FDK reconstruction filter<br>FDKGPUType::Pointer feldkamp = FDKGPUType::New();<br><br>// Setting input images for the FDK reconstruction filter<br>feldkamp->SetInput(0, constantImageSource2->GetOutput());<br>feldkamp->SetInput(1, ParkerFilter->GetOutput()); // This is the projection stack from rtkProjectionsReader<br><br>// Setting geometry for the FDK reconstruction filter<br>feldkamp->SetGeometry(geometry);<br><br>// Setting ramp filter parameters<br>feldkamp->GetRampFilter()->SetTruncationCorrection(0.0);<br>feldkamp->GetRampFilter()->SetHannCutFrequency(0.0);<br><br>// Executing the reconstruction filter<br>try {<br> feldkamp->Update();<br>}<br><br><div><div><div><div><div></div></div></div></div></div><div><div>ChatGPT</div><div><div><div dir="auto"><div><p>We're currently engaged in CBCT reconstruction and have successfully developed a Python-based code for the task, which functions without issue. However, encountering an error during the conversion process to C++, specifically at the stage of FDK reconstruction filter implementation, has prompted our inquiry. The error message reads as follows:</p><pre><div><div>vbnet<div><span><button>Copy code</button></span></div></div><div dir="ltr"><code><span>itk:</span>:ExceptionObject (<span>000000</span>EBA52FDC68)
<span>Location:</span> <span>"unknown"</span>
<span>File:</span> C:\ITK\src\Modules\Filtering\FFT\include\itkRealToHalfHermitianForwardFFTImageFilter.h
<span>Line:</span> <span>85</span>
<span>Description:</span> ITK <span>ERROR</span>: <span>Object</span> factory failed <span>to</span> instantiate <span>class</span> itk::RealToHalfHermitianForwardFFTImageFilter<<span>class</span> itk::Image<float,<span>3</span>>,<span>class</span> itk::Image<<span>class</span> std::complex<float>,<span>3</span>> >
</code></div></div></pre><p>Our FDK implementation in C++ is as follows:</p><pre><div><div>cpp<div><span><button>Copy code</button></span></div></div><div dir="ltr"><code><span>using</span> FDKGPUType = rtk::CudaFDKConeBeamReconstructionFilter;
<span>// Creating the FDK reconstruction filter</span>
FDKGPUType::Pointer feldkamp = FDKGPUType::<span>New</span>();
<span>// Setting input images for the FDK reconstruction filter</span>
feldkamp-><span>SetInput</span>(<span>0</span>, constantImageSource2-><span>GetOutput</span>());
feldkamp-><span>SetInput</span>(<span>1</span>, ParkerFilter-><span>GetOutput</span>()); <span>// This is the projection stack from rtkProjectionsReader</span>
<span>// Setting geometry for the FDK reconstruction filter</span>
feldkamp-><span>SetGeometry</span>(geometry);
<span>// Setting ramp filter parameters</span>
feldkamp-><span>GetRampFilter</span>()-><span>SetTruncationCorrection</span>(<span>0.0</span>);
feldkamp-><span>GetRampFilter</span>()-><span>SetHannCutFrequency</span>(<span>0.0</span>);
<span>// Executing the reconstruction filter</span>
<span>try</span> {
feldkamp-><span>Update</span>();
} </code></div></div></pre></div></div></div></div></div>We're employing ITK version 5.3 for this implementation. Any insights into the cause of this error would be greatly appreciated.<br><br>Regards,</div><div>Akshara <br> <br></div></div>
_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:rtk-users@openrtk.org" target="_blank">rtk-users@openrtk.org</a><br>
<a href="https://www.creatis.insa-lyon.fr/mailman/listinfo/rtk-users" rel="noreferrer" target="_blank">https://www.creatis.insa-lyon.fr/mailman/listinfo/rtk-users</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div></div>