X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=tools%2FclitkImageArithmGenericFilter.cxx;h=71da90e44d7308060b10667ae4d2c50c66e75b2f;hb=5256c0bbf5e58cc208fb4e2273d324cbeb0f25a9;hp=964607eb52a036e361c9cad3520c3502204325cb;hpb=65a613313ab43ff6efc452b378f7569e68e883a2;p=clitk.git diff --git a/tools/clitkImageArithmGenericFilter.cxx b/tools/clitkImageArithmGenericFilter.cxx index 964607e..71da90e 100644 --- a/tools/clitkImageArithmGenericFilter.cxx +++ b/tools/clitkImageArithmGenericFilter.cxx @@ -32,14 +32,14 @@ namespace clitk { typedef itk::Image< itk::Vector, 3u > ImageType; // Read input1 - typename ImageType::Pointer input1 = this->GetInput(0); + ImageType::Pointer input1 = this->GetInput(0); // Set input image iterator typedef itk::ImageRegionIterator IteratorType; IteratorType it(input1, input1->GetLargestPossibleRegion()); // typedef input2 - typename ImageType::Pointer input2 = NULL; + ImageType::Pointer input2 = NULL; IteratorType it2; /* @@ -106,7 +106,7 @@ namespace clitk { } else*/ { // Create output image typedef ImageType OutputImageType; - typename OutputImageType::Pointer output = OutputImageType::New(); + OutputImageType::Pointer output = OutputImageType::New(); output->SetRegions(input1->GetLargestPossibleRegion()); output->SetOrigin(input1->GetOrigin()); output->SetSpacing(input1->GetSpacing()); @@ -134,7 +134,7 @@ namespace clitk { ito.GoToBegin(); it.GoToBegin(); - typedef typename Iter2::PixelType PixelType; + typedef Iter2::PixelType PixelType; PixelType scalar_vector; scalar_vector.Fill(mScalar); @@ -265,7 +265,7 @@ namespace clitk { it1.GoToBegin(); it2.GoToBegin(); ito.GoToBegin(); - typedef typename Iter3::PixelType PixelType; + typedef Iter3::PixelType PixelType; switch (mTypeOfOperation) { case 0: // Addition