]> Creatis software - clitk.git/commitdiff
Change tab to spaces
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 13 Feb 2019 08:45:53 +0000 (09:45 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 13 Feb 2019 08:45:53 +0000 (09:45 +0100)
Indent correctly

tools/clitkMergeSequence.ggo
tools/clitkMergeSequenceGenericFilter.cxx
tools/clitkMergeSequenceGenericFilter.h
tools/clitkMergeSequenceGenericFilter.txx

index 179c03a636a42352dee84b8e7b105e332c749766..d23d6e76689a599de84509c5fa6cc24b9198dc40 100644 (file)
@@ -2,11 +2,11 @@
 #Author: Jef Vandemeulebroucke <jefvdmb@gmail.com>
 #Date : Tue 15 June 16.35 
 
-package "clitk"
-version "Read a series a nD images (unnamed inputs) and merge them to a (n+1)D image"
+package "clitkMergeSequence"
+version "Read a series of nD images (unnamed inputs) and merge them to a (n+1)D image"
 
-option "config"                        -       "Config file"                                                   string          no
-option "spacing"               s       "Spacing for the new dimension"                                 double          no      default="1"
-option "output"                o       "Output VF filename"                                            string          yes
-option "verbose"               v       "Verbose"                                                       flag            off
+option "config"   - "Config file"                   string  no
+option "spacing"  s "Spacing for the new dimension" double  no  default="1"
+option "output"   o "Output filename"               string  yes
+option "verbose"  v "Verbose"                       flag    off
 
index 382749fd7f82fdea209d6d06ca7eed1aca6e70a7..90f65a517b3d9a15678c0bf4ff9db85924769742 100644 (file)
@@ -34,16 +34,15 @@ namespace clitk {
     //Get the image Dimension and PixelType
     int Dimension, Components;
     std::string PixelType;
-    
+
     clitk::ReadImageDimensionAndPixelType(m_InputNames[0], Dimension, PixelType, Components);
 
     if(Dimension==2) UpdateWithDim<2>(PixelType, Components);
     else if(Dimension==3) UpdateWithDim<3>(PixelType, Components);
-    else 
-      {
-       std::cout<<"Error, Only for 2 and 3 Dimensions!!!"<<std::endl ;
-       return;
-      }
+    else {
+      std::cout<<"Error, Only for 2 and 3 Dimensions!!!"<<std::endl ;
+      return;
+    }
   }
 } //end namespace
 
index 2e8b7414f618a898cd104bfec6247405fe23e5da..88f0536da7773791378b2aa90057909062b22cae 100644 (file)
 
 namespace clitk
 {
-  
+
   class ITK_EXPORT MergeSequenceGenericFilter : public itk::LightObject
-  
+
   {
   public:
     typedef MergeSequenceGenericFilter     Self;
     typedef itk::LightObject     Superclass;
     typedef itk::SmartPointer<Self>            Pointer;
     typedef itk::SmartPointer<const Self>      ConstPointer;
-   
+
     /** Method for creation through the object factory. */
     itkNewMacro(Self);  
 
@@ -64,7 +64,7 @@ namespace clitk
     double  m_Spacing;
     std::string m_OutputName;
     bool m_Verbose;
-  
+
 };
 
 
index 9eac7011ae2c944eb52940533085d509d810d9fa..300c8216183854bbfb914c834a08431b90866abc 100644 (file)
@@ -72,14 +72,14 @@ namespace clitk
     //Define the input and output image type
     typedef itk::Image<PixelType, Dimension> InputImageType;
     typedef itk::Image<PixelType, Dimension+1> OutputImageType;
-    
+
     //Read the input image series
     typedef itk::ImageSeriesReader<OutputImageType> ImageReaderType;
     typename  ImageReaderType::Pointer reader= ImageReaderType::New();
     reader->SetFileNames(m_InputNames);
     reader->Update();
     typename OutputImageType::Pointer image =reader->GetOutput();
+
     //Set the spacing
     typename OutputImageType::SpacingType spacing=image->GetSpacing();
     spacing[Dimension]=m_Spacing;