X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FAlgorithms%2FLightCompensationFilter.h;h=a3c28ff0ae79fb538bfd8f58e23b2c571fbe8f7b;hb=a422d88602e9b49085ccfab0ef0f9f2d93fb6a1e;hp=36f8da583948371d6c29383f9cf7920e40137000;hpb=2361f4f97631e09d88d8a5510a369817dcaa19db;p=cpPlugins.git diff --git a/lib/cpExtensions/Algorithms/LightCompensationFilter.h b/lib/cpExtensions/Algorithms/LightCompensationFilter.h index 36f8da5..a3c28ff 100644 --- a/lib/cpExtensions/Algorithms/LightCompensationFilter.h +++ b/lib/cpExtensions/Algorithms/LightCompensationFilter.h @@ -9,54 +9,56 @@ #include 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 +#endif // ITK_MANUAL_INSTANTIATION #endif // __CPEXTENSIONS__ALGORITHMS__LIGHTCOMPENSATIONFILTER__H__