]> Creatis software - clitk.git/commitdiff
Removed typename outside template which prevents MSVC compilation
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 21 Feb 2012 13:09:32 +0000 (14:09 +0100)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 21 Feb 2012 13:09:32 +0000 (14:09 +0100)
tools/clitkImageArithmGenericFilter.cxx

index 964607eb52a036e361c9cad3520c3502204325cb..71da90e44d7308060b10667ae4d2c50c66e75b2f 100644 (file)
@@ -32,14 +32,14 @@ namespace clitk {
     typedef itk::Image< itk::Vector<float, 3u>, 3u > ImageType;
     
     // Read input1
-    typename ImageType::Pointer input1 = this->GetInput<ImageType>(0);
+    ImageType::Pointer input1 = this->GetInput<ImageType>(0);
 
     // Set input image iterator
     typedef itk::ImageRegionIterator<ImageType> 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