Hello Julien,

This is actually part of ITK's modifiations.
I have searched in their migration guide but couldn't find an associated
page.

Anyway, the message is quite clear :
"The signature of ThreadedGenerateData() has been changed in ITK v4 to
use the new ThreadIdType."

The type of the "threadId" variable in ThreadedGenerateData() prototype
has been changed in ITK 4, from int (if I remeber well) to
itk::ThreadIdType.
See [2].
You need to change the type of the second parameter to itk::ThreadIdType
in all your OTB based image filters.


Julien


[1] http://itk.org/migrationv4/
[2]
http://www.itk.org/Doxygen/html/classitk_1_1ImageSource.html#a75fd7bc20cc74d5afcfc339f742247f3

On 02/27/2014 03:30 PM, Julien Radoux wrote:
> 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.

Reply via email to