]> Creatis software - clitk.git/blobdiff - tools/clitkZeroVFGenericFilter.cxx
Reformatted using new coding style
[clitk.git] / tools / clitkZeroVFGenericFilter.cxx
index 2444a949987b2e68150106c5d2e8b8f1b292d5e3..4da102649c9137b263964471516c02b34369aa7a 100644 (file)
@@ -1,7 +1,7 @@
 /*=========================================================================
   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
 
-  Authors belong to: 
+  Authors belong to:
   - University of LYON              http://www.universite-lyon.fr/
   - Léon Bérard cancer center       http://oncora1.lyon.fnclcc.fr
   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
 #include "clitkZeroVFGenericFilter.h"
 
 
-namespace clitk {
-
-  clitk::ZeroVFGenericFilter::ZeroVFGenericFilter()
-  {
-    m_Verbose=false;
-  }
+namespace clitk
+{
 
+clitk::ZeroVFGenericFilter::ZeroVFGenericFilter()
+{
+  m_Verbose=false;
+}
 
-  void clitk::ZeroVFGenericFilter::Update()
-  {
-    //Get the image Dimension and PixelType
-    int Dimension;
-    std::string PixelType;
 
-    clitk::ReadImageDimensionAndPixelType(m_InputName, Dimension, PixelType);
+void clitk::ZeroVFGenericFilter::Update()
+{
+  //Get the image Dimension and PixelType
+  int Dimension;
+  std::string PixelType;
 
-    if(Dimension==2) UpdateWithDim<2>(PixelType);
-    else if(Dimension==3) UpdateWithDim<3>(PixelType);
-    else 
-      {
-       std::cout<<"Error, Only for 2 and 3 Dimensions!!!"<<std::endl ;
-       return;
-      }
+  clitk::ReadImageDimensionAndPixelType(m_InputName, Dimension, PixelType);
 
+  if(Dimension==2) UpdateWithDim<2>(PixelType);
+  else if(Dimension==3) UpdateWithDim<3>(PixelType);
+  else {
+    std::cout<<"Error, Only for 2 and 3 Dimensions!!!"<<std::endl ;
+    return;
   }
+
+}
 } //end namespace
 
 #endif