<div dir="ltr">Hello ITK community<br><br>After the migration from ITK 3.20.1 to ITK 4.6.1, I'm getting a runtime exception when using itk::ResampleImageFilter in our framework. The output looks like this :<br><br><div>Problem during Resample filtering: D:\Dev\DevCpp-Qt5\cmake-externals\ITK\src\Modules\Core\Common\src\itkMultiThreader.cxx:358:</div><div>itk::ERROR: MultiThreader(31CAAD18): Exception occurred during SingleMethodExecute</div><div>c:\dev\Dev_qt5\externals\itk-4.6.1\win32\include\itkImageSource.hxx:267:</div><div>itk::ERROR: ResampleImageFilter(31AC2E90): Subclass should override this method!!!</div><div>The signature of ThreadedGenerateData() has been changed in ITK v4 to use the new ThreadIdType.</div><div>ResampleImageFilter::ThreadedGenerateData() might need to be updated to used it.<br><br>That is weird, because the itkResampleImageFilter is the one delivered with ITK 4.6.1, so it must have followed the API changed ...<br><br>The context is :<br>Visual Studio 2013 community, 32 bit build, ITK build in shared library mode. That's quite a big project, with VTK, Qt, OpenCV, DCMTK, zlib ...<br>I'm not using cmake in the usual way (ie no <span style="color:rgb(0,0,0)">find_package(ITK) </span><font color="#000000">include(${ITK_USE_FILE}) ) but we list the libraries and includes. I know there are some factories to register in that case, we're doing this in the main.cpp :</font><br><div style><font color="#000000">itk::TransformFactoryBase::RegisterDefaultTransforms();</font></div><div style><font color="#000000">itk::PNGImageIOFactory::RegisterOneFactory();</font></div><div style><font color="#000000">itk::MetaImageIOFactory::RegisterOneFactory();</font></div><div style><font color="#000000">itk::NrrdImageIOFactory::RegisterOneFactory();<br><br>Am I missing some others factories to register in order to run properly the resampleImageFilter ?<br>Anyone else had a similar runtime exception with a native ITK filte, or know what would raise such an exception ?<br><br>Thanks</font></div></div><div><br></div>-- <br><div class="gmail_signature">------------------------------------------------------------------<br>Simon Esneault<div>------------------------------------------------------------------</div></div>
</div>