]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Algorithms/LightCompensationFilter.h
...
[cpPlugins.git] / lib / cpExtensions / Algorithms / LightCompensationFilter.h
index 36f8da583948371d6c29383f9cf7920e40137000..a3c28ff0ae79fb538bfd8f58e23b2c571fbe8f7b 100644 (file)
@@ -9,54 +9,56 @@
 #include <cpExtensions/Algorithms/ParallelImageMean.h>
 
 namespace cpExtensions
+{
+  namespace Algorithms
   {
-    namespace Algorithms
+    /**
+     */
+    template< class I >
+    class LightCompensationFilter
+      : public itk::InPlaceImageFilter< I, I >
     {
-      /**
-       */
-      template< class I >
-      class LightCompensationFilter
-        : public itk::InPlaceImageFilter< I, I >
-      {
-      public:
-        typedef LightCompensationFilter         Self;
-        typedef itk::InPlaceImageFilter< I, I > Superclass;
-        typedef itk::SmartPointer< Self >       Pointer;
-        typedef itk::SmartPointer< const Self > ConstPointer;
-
-        typedef I TImage;
-        typedef typename I::RegionType TRegion;
-
-        typedef cpExtensions::Algorithms::ParallelImageMean< I > TMeanCalculator;
-        typedef typename TMeanCalculator::TMean TMean;
-
-      public:
-        itkNewMacro( Self );
-        itkTypeMacro( LightCompensationFilter, itkInPlaceImageFilter );
-
-        itkGetConstMacro( Mean, TMean );
-
-      protected:
-        LightCompensationFilter( );
-        virtual ~LightCompensationFilter( );
-
-      private:
-        virtual void BeforeThreadedGenerateData( );
-        virtual void ThreadedGenerateData(
-          const TRegion& region, itk::ThreadIdType id
-          );
-        virtual void AfterThreadedGenerateData( );
-
-      protected:
-        TMean m_Mean;
-        TMean m_Coefficient;
-      };
+    public:
+      typedef LightCompensationFilter         Self;
+      typedef itk::InPlaceImageFilter< I, I > Superclass;
+      typedef itk::SmartPointer< Self >       Pointer;
+      typedef itk::SmartPointer< const Self > ConstPointer;
+
+      typedef I TImage;
+      typedef typename I::RegionType TRegion;
+
+      typedef cpExtensions::Algorithms::ParallelImageMean< I > TMeanCalculator;
+      typedef typename TMeanCalculator::TMean TMean;
+
+    public:
+      itkNewMacro( Self );
+      itkTypeMacro( LightCompensationFilter, itkInPlaceImageFilter );
+
+      itkGetConstMacro( Mean, TMean );
+
+    protected:
+      LightCompensationFilter( );
+      virtual ~LightCompensationFilter( );
+
+    private:
+      virtual void BeforeThreadedGenerateData( );
+      virtual void ThreadedGenerateData(
+        const TRegion& region, itk::ThreadIdType id
+        );
+      virtual void AfterThreadedGenerateData( );
+
+    protected:
+      TMean m_Mean;
+      TMean m_Coefficient;
+    };
 
   } // ecapseman
 
 } // ecapseman
 
+#ifndef ITK_MANUAL_INSTANTIATION
 #include <cpExtensions/Algorithms/LightCompensationFilter.hxx>
+#endif // ITK_MANUAL_INSTANTIATION
 
 #endif // __CPEXTENSIONS__ALGORITHMS__LIGHTCOMPENSATIONFILTER__H__