1 #ifndef CLITKIMAGEFILLREGIONGENERICFILTER_H
2 #define CLITKIMAGEFILLREGIONGENERICFILTER_H
4 -------------------------------------------------------------------
5 * @file clitkImageFillRegionGenericFilter.h
6 * @author David Sarrut <David.Sarrut@creatis.insa-lyon.fr>
8 -------------------------------------------------------------------*/
11 #include "clitkCommon.h"
12 #include "clitkImageCommon.h"
13 #include "clitkImageToImageGenericFilter.h"
17 #include "itkImageIOBase.h"
18 #include "itkImageRegionIterator.h"
19 #include "itkImageRegionConstIterator.h"
20 #include "itkImageRegionIteratorWithIndex.h"
24 //--------------------------------------------------------------------
25 class ImageFillRegionGenericFilter:
26 public clitk::ImageToImageGenericFilter<ImageFillRegionGenericFilter> {
31 ImageFillRegionGenericFilter ();
32 ~ImageFillRegionGenericFilter (){;}
35 typedef ImageFillRegionGenericFilter Self;
36 typedef itk::SmartPointer<Self> Pointer;
37 typedef itk::SmartPointer<const Self> ConstPointer;
43 void SetFillPixelValue (double value) { mPixelValue = value; }
44 void SetRegion(int * size, int * start) { mSize = size; mStart = start ; }
45 void SetSphericRegion(std::vector<double> & radius, std::vector<double> & center);
46 void SetSphericRegion(std::vector<double> & radius);
48 //--------------------------------------------------------------------
49 // Main function called each time the filter is updated
50 template<class InputImageType>
51 void UpdateWithInputImageType();
54 template<unsigned int Dim> void InitializeImageType();
58 std::vector<double> mCenter;
59 std::vector<double> mRadius;
63 template<unsigned int Dim, class PixelType> void Update_WithDimAndPixelType_SphericRegion();
65 }; // end class ImageFillRegionGenericFilter
66 //--------------------------------------------------------------------
68 #include "clitkImageFillRegionGenericFilter.txx"
71 //--------------------------------------------------------------------
73 #endif //#define CLITKIMAGEFILLREGIONGENERICFILTER_H