Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkGrayscaleFillholeImageFilter_h
00018 #define __itkGrayscaleFillholeImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021
00022 namespace itk {
00023
00053 template<class TInputImage, class TOutputImage>
00054 class ITK_EXPORT GrayscaleFillholeImageFilter :
00055 public ImageToImageFilter<TInputImage, TOutputImage>
00056 {
00057 public:
00059 typedef GrayscaleFillholeImageFilter Self;
00060 typedef ImageToImageFilter<TInputImage, TOutputImage>
00061 Superclass;
00062 typedef SmartPointer<Self> Pointer;
00063 typedef SmartPointer<const Self> ConstPointer;
00064
00066 typedef TInputImage InputImageType;
00067 typedef typename InputImageType::Pointer InputImagePointer;
00068 typedef typename InputImageType::ConstPointer InputImageConstPointer;
00069 typedef typename InputImageType::RegionType InputImageRegionType;
00070 typedef typename InputImageType::PixelType InputImagePixelType;
00071 typedef TOutputImage OutputImageType;
00072 typedef typename OutputImageType::Pointer OutputImagePointer;
00073 typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
00074 typedef typename OutputImageType::RegionType OutputImageRegionType;
00075 typedef typename OutputImageType::PixelType OutputImagePixelType;
00076
00078 itkStaticConstMacro(InputImageDimension, unsigned int,
00079 TInputImage::ImageDimension);
00080 itkStaticConstMacro(OutputImageDimension, unsigned int,
00081 TOutputImage::ImageDimension);
00083
00085 itkNewMacro(Self);
00086
00088 itkTypeMacro(GrayscaleFillholeImageFilter,
00089 ImageToImageFilter);
00090
00095 unsigned long GetNumberOfIterationsUsed()
00096 {
00097 itkLegacyBodyMacro(itk::GrayscaleFillholeImageFilter::GetNumberOfIterationsUsed, 2.2);
00098 return m_NumberOfIterationsUsed;
00099 };
00101
00108 itkSetMacro(FullyConnected, bool);
00109 itkGetConstReferenceMacro(FullyConnected, bool);
00110 itkBooleanMacro(FullyConnected);
00112
00113 #ifdef ITK_USE_CONCEPT_CHECKING
00114
00115 itkConceptMacro(InputOStreamWritableCheck,
00116 (Concept::OStreamWritable<InputImagePixelType>));
00117
00119 #endif
00120
00121 protected:
00122 GrayscaleFillholeImageFilter();
00123 ~GrayscaleFillholeImageFilter() {};
00124 void PrintSelf(std::ostream& os, Indent indent) const;
00125
00129 void GenerateInputRequestedRegion();
00130
00132 void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00133
00136 void GenerateData();
00137
00138
00139 private:
00140 GrayscaleFillholeImageFilter(const Self&);
00141 void operator=(const Self&);
00142
00143 unsigned long m_NumberOfIterationsUsed;
00144
00145 bool m_FullyConnected;
00146 };
00147
00148 }
00149
00150 #ifndef ITK_MANUAL_INSTANTIATION
00151 #include "itkGrayscaleFillholeImageFilter.txx"
00152 #endif
00153
00154 #endif
00155