Hi Julien, this is related to the step two of the migration to OTBv4 which consist in applying ITKv4 API modification to your code :
http://wiki.orfeo-toolbox.org/index.php/Migration_guide_OTBv4 i don't find the reference for this modification in the ITK migration guide but I found this reference: http://www.mitk.org/ITKv4_MigrationGuide <http://www.mitk.org/ITKv4_MigrationGuide> "The method signature of itk::ImageSource::ThreadedGenerateData changed: The thread id is now of type unsigned int instead of int. Use the new ThreadIdType typedef to correctly overload the virtual ThreadedGenerateData method. " So you "just" need to change the signature of all your ThreadedGenerateData methods using the typedef ThreadIdType. Regards, Manuel Le 27/02/2014 15:30, Julien Radoux a écrit : > Hello, > > I have several filters that make use of ThreadedGenerateData . > However, there seems to be some changes in the new version. Is there a > place where I can find the "best practice" for multithreaded filters > (it was not in the Migration Guide"). Thank you. > > MultiThreader(0x42cc0e0): Exception occurred during SingleMethodExecute > /home/OTB-4.0-rc1/Utilities/ITK/Modules/Core/Common/include/itkImageSource.hxx:267: > itk::ERROR: VectorImageFilterW2(0x458c110): Subclass should override > this method!!! > The signature of ThreadedGenerateData() has been changed in ITK v4 to > use the new ThreadIdType. > VectorImageFilterW2::ThreadedGenerateData() might need to be updated > to used it. > > -- > -- > Check the OTB FAQ at > http://www.orfeo-toolbox.org/FAQ.html > > You received this message because you are subscribed to the Google > Groups "otb-users" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/otb-users?hl=en > --- > You received this message because you are subscribed to the Google > Groups "otb-users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
