X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkMotionMaskGenericFilter.h;h=dfab4285b5dba9c06f95952e1d0b3c56296b3407;hb=4ec79c878958e58d421b7c71b2c75053944982ef;hp=e3368e66e33f51e55bef485c4d524c76ce75eea9;hpb=2f5b335da5621bdfc86cb594cc667d0929f4d8e3;p=clitk.git diff --git a/segmentation/clitkMotionMaskGenericFilter.h b/segmentation/clitkMotionMaskGenericFilter.h old mode 100755 new mode 100644 index e3368e6..dfab428 --- a/segmentation/clitkMotionMaskGenericFilter.h +++ b/segmentation/clitkMotionMaskGenericFilter.h @@ -1,9 +1,9 @@ /*========================================================================= 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 + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,17 +14,17 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ #ifndef clitkMotionMaskGenericFilter_h #define clitkMotionMaskGenericFilter_h /* ================================================= * @file clitkMotionMaskGenericFilter.h - * @author - * @date - * - * @brief - * + * @author + * @date + * + * @brief + * ===================================================*/ @@ -36,103 +36,103 @@ #include "clitkSetBackgroundImageFilter.h" //itk include -#include "itkLightObject.h" -#include "itkBinaryThresholdImageFilter.h" -#include "itkConnectedComponentImageFilter.h" -#include "itkRelabelComponentImageFilter.h" -#include "itkThresholdImageFilter.h" -#include "itkMirrorPadImageFilter.h" -#include "itkImageMomentsCalculator.h" -#include "itkResampleImageFilter.h" -#include "itkNearestNeighborInterpolateImageFunction.h" -#include "itkGeodesicActiveContourLevelSetImageFilter.h" -#include "itkSignedDanielssonDistanceMapImageFilter.h" -#include "itkLabelStatisticsImageFilter.h" -#include "itkCastImageFilter.h" -#include "itkCropImageFilter.h" -#include "itkBinaryMorphologicalClosingImageFilter.h" -#include "itkBinaryMorphologicalOpeningImageFilter.h" -#include "itkBinaryBallStructuringElement.h" -#include "itkImageRegionIteratorWithIndex.h" -#include "itkApproximateSignedDistanceMapImageFilter.h" - -namespace clitk +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace clitk { - class ITK_EXPORT MotionMaskGenericFilter : public itk::LightObject - { - public: - //---------------------------------------- - // ITK - //---------------------------------------- - typedef MotionMaskGenericFilter Self; - typedef itk::LightObject Superclass; - typedef itk::SmartPointer Pointer; - typedef itk::SmartPointer ConstPointer; - - // Method for creation through the object factory - itkNewMacro(Self); - - // Run-time type information (and related methods) - itkTypeMacro( MotionMaskGenericFilter, LightObject ); - - //---------------------------------------- - // Typedefs - //---------------------------------------- - typedef int InternalPixelType; - - - //---------------------------------------- - // Set & Get - //---------------------------------------- - void SetArgsInfo(const args_info_clitkMotionMask & a) - { - m_ArgsInfo=a; - m_Verbose=m_ArgsInfo.verbose_flag; - m_InputFileName=m_ArgsInfo.input_arg; - } - - - //---------------------------------------- - // Update - //---------------------------------------- - void Update(); - - protected: - - //---------------------------------------- - // Constructor & Destructor - //---------------------------------------- - MotionMaskGenericFilter(); - ~MotionMaskGenericFilter() {}; - - - //---------------------------------------- - // Templated members - //---------------------------------------- - template - typename itk::Image::Pointer GetAirImage(typename itk::Image::Pointer input ); - template - typename itk::Image::Pointer GetBonesImage(typename itk::Image::Pointer input ); - template - typename itk::Image::Pointer GetLungsImage(typename itk::Image::Pointer input ); - template - typename itk::Image::Pointer Resample(typename itk::Image::Pointer input ); - template - typename itk::Image::Pointer InitializeEllips( typename itk::Vector center, typename itk::Image::Pointer bones_low); - - - template void UpdateWithDim(std::string PixelType); - template void UpdateWithDimAndPixelType(); - - - //---------------------------------------- - // Data members - //---------------------------------------- - args_info_clitkMotionMask m_ArgsInfo; - bool m_Verbose; - std::string m_InputFileName; - - }; +class ITK_EXPORT MotionMaskGenericFilter : public itk::LightObject +{ +public: + //---------------------------------------- + // ITK + //---------------------------------------- + typedef MotionMaskGenericFilter Self; + typedef itk::LightObject Superclass; + typedef itk::SmartPointer Pointer; + typedef itk::SmartPointer ConstPointer; + + // Method for creation through the object factory + itkNewMacro(Self); + + // Run-time type information (and related methods) + itkTypeMacro( MotionMaskGenericFilter, LightObject ); + + //---------------------------------------- + // Typedefs + //---------------------------------------- + typedef int InternalPixelType; + + + //---------------------------------------- + // Set & Get + //---------------------------------------- + void SetArgsInfo(const args_info_clitkMotionMask & a) { + m_ArgsInfo=a; + m_Verbose=m_ArgsInfo.verbose_flag; + m_InputFileName=m_ArgsInfo.input_arg; + } + + + //---------------------------------------- + // Update + //---------------------------------------- + void Update(); + +protected: + + //---------------------------------------- + // Constructor & Destructor + //---------------------------------------- + MotionMaskGenericFilter(); + ~MotionMaskGenericFilter() {}; + + + //---------------------------------------- + // Templated members + //---------------------------------------- + template + typename itk::Image::Pointer GetAirImage(typename itk::Image::Pointer input, + typename itk::Image::Pointer lungs); + template + typename itk::Image::Pointer GetBonesImage(typename itk::Image::Pointer input ); + template + typename itk::Image::Pointer GetLungsImage(typename itk::Image::Pointer input ); + template + typename itk::Image::Pointer Resample(typename itk::Image::Pointer input ); + template + typename itk::Image::Pointer InitializeEllips( typename itk::Vector center, typename itk::Image::Pointer bones_low); + + + template void UpdateWithDim(std::string PixelType); + template void UpdateWithDimAndPixelType(); + + + //---------------------------------------- + // Data members + //---------------------------------------- + args_info_clitkMotionMask m_ArgsInfo; + bool m_Verbose; + std::string m_InputFileName; + +}; } // end namespace clitk