]> Creatis software - clitk.git/blobdiff - tools/clitkSplitImage.cxx
Reformatted using new coding style
[clitk.git] / tools / clitkSplitImage.cxx
index ba30592fea8268c710d612e2060a621837e0dc84..a76f88c23dea824288a5d9c5caf653de583acabf 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
@@ -28,7 +28,8 @@
 #include "clitkIO.h"
 
 //--------------------------------------------------------------------
-int main(int argc, char * argv[]) {
+int main(int argc, char * argv[])
+{
 
   // Init command line
   GGO(clitkSplitImage, args_info);
@@ -36,13 +37,12 @@ int main(int argc, char * argv[]) {
 
   // Read image dimension
   itk::ImageIOBase::Pointer header = clitk::readImageHeader(args_info.input_arg);
-  if (header.IsNull())
-  {
-      std::cerr << "Unable to read image file " << args_info.input_arg << std::endl;
-      std::exit(1);
+  if (header.IsNull()) {
+    std::cerr << "Unable to read image file " << args_info.input_arg << std::endl;
+    std::exit(1);
   }
   unsigned int dim = header->GetNumberOfDimensions();
-  
+
   // Check parameters
   if (args_info.dimension_given >= dim) {
     std::cerr << "ERROR : image has " << dim << "dimensions, split dimension should be between 0 and " << dim-1 << "." << std::endl;
@@ -56,6 +56,6 @@ int main(int argc, char * argv[]) {
   filter.SetVerbose(args_info.verbose_flag);
   filter.Update();
 
-  // this is the end my friend  
+  // this is the end my friend
   return 0;
 } // end main