]> Creatis software - clitk.git/commitdiff
Remove trailing spaces and tab
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Tue, 13 Nov 2018 10:07:54 +0000 (11:07 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Tue, 13 Nov 2018 10:07:54 +0000 (11:07 +0100)
tools/clitkRTStructStatistics.ggo
tools/clitkRTStructStatisticsGenericFilter.h
tools/clitkRTStructStatisticsGenericFilter.txx
tools/clitkSUVPeak.ggo
tools/clitkSUVPeakGenericFilter.h
tools/clitkSUVPeakGenericFilter.txx

index ebd275b..8198220 100644 (file)
@@ -1,9 +1,9 @@
 #File clitkRTStructStatistics.ggo
 package "clitkRTStructStatistics"
-version "2.0" 
-purpose "Find the centroid/roundness of a binarized image."
+version "2.0"
+purpose "Find the centroid and roundness of a binarized image."
 
-option "config"                -       "Config file"                     string        no
-option "verbose"       v       "Verbose"                         flag          off
+option "config"   - "Config file"                 string  no
+option "verbose"  v "Verbose"                     flag    off
 
-option "input"    i    "Input image filename (mask)"     string   yes
+option "input"    i "Input image filename (mask)" string  yes
index 4339c69..aeeed80 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://www.centreleonberard.fr
   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
@@ -23,7 +23,7 @@
  * @author Thomas Baudier <thomas.baudier@creatis.insa-lyon.fr>
  * @date   11 Jul 2016 08:37:53
 
- * @brief  
+ * @brief
  -------------------------------------------------------------------*/
 
 // clitk include
 
 //--------------------------------------------------------------------
 namespace clitk {
-  
+
   template<class args_info_type>
   class ITK_EXPORT RTStructStatisticsGenericFilter:
     public clitk::ImageToImageGenericFilter<RTStructStatisticsGenericFilter<args_info_type> > {
-    
+
   public:
-       
-    // Constructor 
+
+    // Constructor
     RTStructStatisticsGenericFilter ();
 
     // Types
@@ -55,19 +55,19 @@ namespace clitk {
 
     // New
     itkNewMacro(Self);
-    
-    
-    
+
+
+
     //--------------------------------------------------------------------
     void SetArgsInfo(const args_info_type & a);
 
     //--------------------------------------------------------------------
     // Main function called each time the filter is updated
-    template<class InputImageType>  
+    template<class InputImageType>
     void UpdateWithInputImageType();
 
-  protected:  
-    template<unsigned int Dim> void InitializeImageType();  
+  protected:
+    template<unsigned int Dim> void InitializeImageType();
     args_info_type mArgsInfo;
 
   }; // end class RTStructStatisticsGenericFilter
@@ -75,7 +75,7 @@ namespace clitk {
 } // end namespace
 //--------------------------------------------------------------------
 
-  
+
 #ifndef ITK_MANUAL_INSTANTIATION
 #include "clitkRTStructStatisticsGenericFilter.txx"
 #endif
index d658e2b..d83b25d 100644 (file)
@@ -56,9 +56,9 @@ void RTStructStatisticsGenericFilter<args_info_type>::SetArgsInfo(const args_inf
 
   // Set value
   this->SetIOVerbose(mArgsInfo.verbose_flag);
-  
+
   if (mArgsInfo.input_given) this->AddInputFilename(mArgsInfo.input_arg);
-  
+
   }
 //--------------------------------------------------------------------
 
@@ -79,18 +79,18 @@ void RTStructStatisticsGenericFilter<args_info_type>::UpdateWithInputImageType()
   typedef itk::LabelMap< ShapeLabelObjectType > LabelMapType;
   typedef itk::ConnectedComponentImageFilter <MaskInputImageType, OutputImageType > ConnectedComponentImageFilterType;
   typedef itk::LabelImageToShapeLabelMapFilter< OutputImageType, LabelMapType> I2LType;
-  
+
   typename ConnectedComponentImageFilterType::Pointer connected = ConnectedComponentImageFilterType::New ();
   connected->SetInput(mask);
   connected->FullyConnectedOn();
   connected->Update();
-  
+
   //Create a map to contain all connectedComponent (even a little pixel)
   typename I2LType::Pointer i2l = I2LType::New();
   i2l->SetInput( connected->GetOutput() );
   i2l->SetComputePerimeter(true);
   i2l->Update();
-  
+
   // Retrieve the biggest component
   LabelMapType *labelMap = i2l->GetOutput();
   int largestComponent(0);
@@ -101,10 +101,10 @@ void RTStructStatisticsGenericFilter<args_info_type>::UpdateWithInputImageType()
     if (labelObject->GetNumberOfPixels() > nbPixel)
     {
         nbPixel = labelObject->GetNumberOfPixels();
-        largestComponent = n; 
+        largestComponent = n;
     }
   }
-  
+
   //Write statitistics on the largest component
   ShapeLabelObjectType *labelObject = labelMap->GetNthLabelObject(largestComponent);
   std::cout << " Centroid: " << std::endl;
index 6e9206a..8412941 100644 (file)
@@ -1,11 +1,11 @@
 #File clitkSUVPeak.ggo
 package "clitkSUVPeak"
 version "2.0"
-#This tool supports multiple images on the input, or even 4D, but all images must be of the same type and dimensions. 
+#This tool supports multiple images on the input, or even 4D, but all images must be of the same type and dimensions.
 purpose "Compute statistics on an image, or on part of an image specified by a mask and label(s). The tool also supports multichannel images, which is useful, e.g., for vector fields. All channels are processed (separately) by default, but only one channel may be chosen."
 
-option "config"                -       "Config file"                     string        no
-option "verbose"       v       "Verbose"                         flag          off
+option "config"   - "Config file"                 string  no
+option "verbose"  v "Verbose"                     flag    off
 
-option "input"    i    "Input first image filename"      string   yes
-option "mask"          m       "Mask image filename (uchar)"             string        no
+option "input"    i "Input first image filename"  string  yes
+option "mask"     m "Mask image filename (uchar)" string  no
index 57c4d05..6357167 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://www.centreleonberard.fr
   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
@@ -23,7 +23,7 @@
  * @author David Sarrut <David.Sarrut@creatis.insa-lyon.fr>
  * @date   23 Feb 2008 08:37:53
 
- * @brief  
+ * @brief
  -------------------------------------------------------------------*/
 
 // clitk include
 
 //--------------------------------------------------------------------
 namespace clitk {
-  
+
   template<class args_info_type>
   class ITK_EXPORT SUVPeakGenericFilter:
     public clitk::ImageToImageGenericFilter<SUVPeakGenericFilter<args_info_type> > {
-    
+
   public:
-       
-    // Constructor 
+
+    // Constructor
     SUVPeakGenericFilter ();
 
     // Types
@@ -57,9 +57,9 @@ namespace clitk {
 
     // New
     itkNewMacro(Self);
-    
-    
-    
+
+
+
     //--------------------------------------------------------------------
     void SetArgsInfo(const args_info_type & a);
 
@@ -68,11 +68,11 @@ namespace clitk {
 
     //--------------------------------------------------------------------
     // Main function called each time the filter is updated
-    template<class InputImageType>  
+    template<class InputImageType>
     void UpdateWithInputImageType();
 
-  protected:  
-    template<unsigned int Dim> void InitializeImageType();  
+  protected:
+    template<unsigned int Dim> void InitializeImageType();
     args_info_type mArgsInfo;
 
   }; // end class SUVPeakGenericFilter
@@ -80,7 +80,7 @@ namespace clitk {
 } // end namespace
 //--------------------------------------------------------------------
 
-  
+
 #ifndef ITK_MANUAL_INSTANTIATION
 #include "clitkSUVPeakGenericFilter.txx"
 #endif
index 8a41726..127a071 100644 (file)
@@ -54,9 +54,9 @@ void SUVPeakGenericFilter<args_info_type>::SetArgsInfo(const args_info_type & a)
 
   // Set value
   this->SetIOVerbose(mArgsInfo.verbose_flag);
-  
+
   if (mArgsInfo.input_given) this->AddInputFilename(mArgsInfo.input_arg);
-  
+
   if (mArgsInfo.mask_given)  this->AddInputFilename(mArgsInfo.mask_arg);
   }
 //--------------------------------------------------------------------
@@ -88,7 +88,7 @@ void SUVPeakGenericFilter<args_info_type>::UpdateWithInputImageType()
   double volume = 1000; //1 cc into mc
   const double PI = 3.141592653589793238463;
   double radius = std::pow(3*volume/(4*PI),1./3);
-  
+
   typename ImageType::Pointer kernel = ComputeMeanFilterKernel<ImageType>(input->GetSpacing(), radius);
 
   // Perform the convolution
@@ -98,8 +98,8 @@ void SUVPeakGenericFilter<args_info_type>::UpdateWithInputImageType()
   filter->SetKernelImage(kernel);
   filter->Update();
   typename ImageType::Pointer output = filter->GetOutput();
-  
-  
+
+
   typedef itk::ImageRegionConstIteratorWithIndex<ImageType> IteratorType;
   typedef itk::ImageRegionConstIteratorWithIndex<MaskImageType> MIteratorType;
   IteratorType iters(output, output->GetLargestPossibleRegion());
@@ -128,7 +128,7 @@ void SUVPeakGenericFilter<args_info_type>::UpdateWithInputImageType()
 //--------------------------------------------------------------------
 template<class args_info_type>
 template<class ImageType>
-typename ImageType::Pointer 
+typename ImageType::Pointer
 SUVPeakGenericFilter<args_info_type>::ComputeMeanFilterKernel(const typename ImageType::SpacingType & spacing, double radius)
 {
   // Some kind of cache to speed up a bit