]> Creatis software - clitk.git/commitdiff
Templatized...
authorbharath <bharath>
Wed, 21 Jul 2010 09:34:06 +0000 (09:34 +0000)
committerbharath <bharath>
Wed, 21 Jul 2010 09:34:06 +0000 (09:34 +0000)
registration/clitkAffineRegistration.cxx

index c24bbe913a6c4936450182232d8b99b8fb5196f6..be28d2b29902104c5d6a1617480c98fff9fff5fb 100644 (file)
@@ -18,6 +18,7 @@
 
 // clitk include
 #include "clitkIO.h"
+#include "clitkAffineRegistration_ggo.h"
 #include "clitkAffineRegistrationGenericFilter.h"
 
 int main( int argc, char *argv[] )
@@ -28,7 +29,8 @@ int main( int argc, char *argv[] )
 
   //===========================================================================
   //Set all the options passed through the commandline
-  clitk::AffineRegistrationGenericFilter::Pointer genericFilter=clitk::AffineRegistrationGenericFilter::New();
+  typedef clitk::AffineRegistrationGenericFilter<args_info_clitkAffineRegistration> FilterType;
+  FilterType::Pointer genericFilter = FilterType::New();
   genericFilter->SetArgsInfo(args_info);
   genericFilter->Update();