X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkBackProjectImageFilter.txx;h=b1f84e260426db6becc2a0261be699742ee759da;hb=9dfed934fdeca8343992272c4292a8c7ed755329;hp=befc8822013cb8543d7bbc0d3ece59b417f84b31;hpb=e168843d038efea6d865549cd5aef6901643dbf8;p=clitk.git diff --git a/itk/clitkBackProjectImageFilter.txx b/itk/clitkBackProjectImageFilter.txx index befc882..b1f84e2 100644 --- a/itk/clitkBackProjectImageFilter.txx +++ b/itk/clitkBackProjectImageFilter.txx @@ -223,7 +223,7 @@ namespace clitk BackProjectImageFilter ::CalculateProjectionMatrix( void ) { - InputSpacingType inputSpacing=this->GetInput()->GetSpacing(); + //InputSpacingType inputSpacing=this->GetInput()->GetSpacing(); // Projection on YZ plane+pixelTrans itk::Matrix temp; @@ -303,7 +303,11 @@ namespace clitk template void BackProjectImageFilter +#if ITK_VERSION_MAJOR >= 4 + ::ThreadedGenerateData( const OutputImageRegionType & outputRegionForThread, itk::ThreadIdType threadId ) +#else ::ThreadedGenerateData( const OutputImageRegionType & outputRegionForThread, int threadId ) +#endif { //Projection pointer InputImageConstPointer inputPtr=this->GetInput(); @@ -325,7 +329,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