00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkGrayscaleGeodesicDilateImageFilter_h
00018 #define __itkGrayscaleGeodesicDilateImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021
00022 namespace itk {
00023
00061 template<class TInputImage, class TOutputImage>
00062 class ITK_EXPORT GrayscaleGeodesicDilateImageFilter :
00063 public ImageToImageFilter<TInputImage, TOutputImage>
00064 {
00065 public:
00067 typedef GrayscaleGeodesicDilateImageFilter Self;
00068 typedef ImageToImageFilter<TInputImage, TOutputImage>
00069 Superclass;
00070 typedef SmartPointer<Self> Pointer;
00071 typedef SmartPointer<const Self> ConstPointer;
00072
00074 typedef TInputImage MarkerImageType;
00075 typedef TInputImage MaskImageType;
00076 typedef TOutputImage OutputImageType;
00077 typedef typename MarkerImageType::Pointer MarkerImagePointer;
00078 typedef typename MarkerImageType::ConstPointer MarkerImageConstPointer;
00079 typedef typename MarkerImageType::RegionType MarkerImageRegionType;
00080 typedef typename MarkerImageType::PixelType MarkerImagePixelType;
00081 typedef typename MaskImageType::Pointer MaskImagePointer;
00082 typedef typename MaskImageType::ConstPointer MaskImageConstPointer;
00083 typedef typename MaskImageType::RegionType MaskImageRegionType;
00084 typedef typename MaskImageType::PixelType MaskImagePixelType;
00085 typedef typename OutputImageType::Pointer OutputImagePointer;
00086 typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
00087 typedef typename OutputImageType::RegionType OutputImageRegionType;
00088 typedef typename OutputImageType::PixelType OutputImagePixelType;
00089
00091 itkStaticConstMacro(MarkerImageDimension, unsigned int,
00092 TInputImage::ImageDimension);
00093 itkStaticConstMacro(MaskImageDimension, unsigned int,
00094 TInputImage::ImageDimension);
00095 itkStaticConstMacro(OutputImageDimension, unsigned int,
00096 TOutputImage::ImageDimension);
00097
00099 itkNewMacro(Self);
00100
00102 itkTypeMacro(GrayscaleGeodesicDilateImageFilter,
00103 ImageToImageFilter);
00104
00108 void SetMarkerImage(const MarkerImageType *);
00109 const MarkerImageType* GetMarkerImage();
00110
00114 void SetMaskImage(const MaskImageType *);
00115 const MaskImageType* GetMaskImage();
00116
00120 itkSetMacro(RunOneIteration, bool);
00121 itkGetMacro(RunOneIteration, bool);
00122 itkBooleanMacro(RunOneIteration);
00123
00126 itkGetMacro(NumberOfIterationsUsed, unsigned long);
00127
00134 itkSetMacro(FullyConnected, bool);
00135 itkGetConstReferenceMacro(FullyConnected, bool);
00136 itkBooleanMacro(FullyConnected);
00137
00138 protected:
00139 GrayscaleGeodesicDilateImageFilter();
00140 ~GrayscaleGeodesicDilateImageFilter() {};
00141 void PrintSelf(std::ostream& os, Indent indent) const;
00142
00149 void GenerateInputRequestedRegion();
00150
00155 void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00156
00163 void GenerateData();
00164
00169 void ThreadedGenerateData (const OutputImageRegionType&
00170 outputRegionForThread,
00171 int threadId) ;
00172
00173 private:
00174 GrayscaleGeodesicDilateImageFilter(const Self&);
00175 void operator=(const Self&);
00176
00177 bool m_RunOneIteration;
00178 unsigned long m_NumberOfIterationsUsed;
00179 bool m_FullyConnected;
00180
00181 } ;
00182
00183 }
00184
00185 #ifndef ITK_MANUAL_INSTANTIATION
00186 #include "itkGrayscaleGeodesicDilateImageFilter.txx"
00187 #endif
00188
00189 #endif
00190
00191