X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkBackProjectImageFilter.txx;h=fa8d2613fec8815c80ae08abc3046a4000f65c81;hb=0a6ce0aedf87be56afa381561b8d5b7b7822fa15;hp=befc8822013cb8543d7bbc0d3ece59b417f84b31;hpb=e168843d038efea6d865549cd5aef6901643dbf8;p=clitk.git diff --git a/itk/clitkBackProjectImageFilter.txx b/itk/clitkBackProjectImageFilter.txx index befc882..fa8d261 100644 --- a/itk/clitkBackProjectImageFilter.txx +++ b/itk/clitkBackProjectImageFilter.txx @@ -190,7 +190,11 @@ namespace clitk template void BackProjectImageFilter +#if ( ( ITK_VERSION_MAJOR == 4 ) && ( ITK_VERSION_MINOR > 12 ) || ( ITK_VERSION_MAJOR > 4 )) + ::Initialize( void ) +#else ::Initialize( void ) throw (itk::ExceptionObject) +#endif { //Change the origin of the 2D input typename InputImageType::ConstPointer inputPtr=this->GetInput(); @@ -223,7 +227,7 @@ namespace clitk BackProjectImageFilter ::CalculateProjectionMatrix( void ) { - InputSpacingType inputSpacing=this->GetInput()->GetSpacing(); + //InputSpacingType inputSpacing=this->GetInput()->GetSpacing(); // Projection on YZ plane+pixelTrans itk::Matrix temp; @@ -302,8 +306,7 @@ namespace clitk //----------------------------------------------------------------------- template void - BackProjectImageFilter - ::ThreadedGenerateData( const OutputImageRegionType & outputRegionForThread, int threadId ) + BackProjectImageFilter::ThreadedGenerateData( const OutputImageRegionType & outputRegionForThread, itk::ThreadIdType threadId ) { //Projection pointer InputImageConstPointer inputPtr=this->GetInput(); @@ -325,7 +328,6 @@ namespace clitk iPoint.Fill(itk::NumericTraits::Zero); OutputIndexType oIndex; ContinuousInputIndexType iIndex; - InputSizeType inputSize=inputPtr->GetLargestPossibleRegion().GetSize(); //Get the first output coordinate oIndex=iterator.GetIndex();//costly but only once a thread