00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkBinaryDilateImageFilter_h
00018 #define __itkBinaryDilateImageFilter_h
00019
00020 #include <vector>
00021 #include <queue>
00022 #include "itkBinaryMorphologyImageFilter.h"
00023 #include "itkImage.h"
00024 #include "itkNumericTraits.h"
00025 #include "itkNeighborhoodIterator.h"
00026 #include "itkConstNeighborhoodIterator.h"
00027 #include "itkNeighborhood.h"
00028 #include "itkImageBoundaryCondition.h"
00029 #include "itkImageRegionIterator.h"
00030 #include "itkConceptChecking.h"
00031
00032 namespace itk
00033 {
00102 template <class TInputImage, class TOutputImage, class TKernel>
00103 class ITK_EXPORT BinaryDilateImageFilter :
00104 public BinaryMorphologyImageFilter< TInputImage, TOutputImage, TKernel >
00105 {
00106 public:
00107
00109 itkStaticConstMacro(InputImageDimension, unsigned int,
00110 TInputImage::ImageDimension);
00111 itkStaticConstMacro(OutputImageDimension, unsigned int,
00112 TOutputImage::ImageDimension);
00114
00116 itkStaticConstMacro(KernelDimension, unsigned int,
00117 TKernel::NeighborhoodDimension);
00118
00120 typedef TInputImage InputImageType;
00121 typedef TOutputImage OutputImageType;
00122 typedef TKernel KernelType;
00123
00124
00126 typedef BinaryDilateImageFilter Self;
00127 typedef BinaryMorphologyImageFilter<InputImageType, OutputImageType, KernelType> Superclass;
00128 typedef SmartPointer<Self> Pointer;
00129 typedef SmartPointer<const Self> ConstPointer;
00130
00132 itkNewMacro(Self);
00133
00135 itkTypeMacro(BinaryDilateImageFilter, BinaryMorphologyImageFilter);
00136
00138 typedef typename KernelType::ConstIterator KernelIteratorType ;
00139
00141 typedef typename InputImageType::PixelType InputPixelType;
00142 typedef typename OutputImageType::PixelType OutputPixelType;
00143 typedef typename NumericTraits<InputPixelType>::RealType InputRealType;
00144 typedef typename InputImageType::OffsetType OffsetType;
00145 typedef typename InputImageType::IndexType IndexType;
00146
00147 typedef typename InputImageType::RegionType InputImageRegionType;
00148 typedef typename OutputImageType::RegionType OutputImageRegionType;
00149 typedef typename InputImageType::SizeType InputSizeType;
00150
00154 void SetDilateValue(const InputPixelType& value)
00155 { this->SetForegroundValue( value ); }
00156
00160 InputPixelType GetDilateValue() const
00161 { return this->GetForegroundValue(); }
00162
00163 protected:
00164 BinaryDilateImageFilter();
00165 virtual ~BinaryDilateImageFilter(){}
00166 void PrintSelf(std::ostream& os, Indent indent) const;
00167
00168 void GenerateData();
00169
00170
00171 typedef typename Superclass::NeighborIndexContainer NeighborIndexContainer;
00172
00173 private:
00174 BinaryDilateImageFilter(const Self&);
00175 void operator=(const Self&);
00176
00177 };
00178
00179 }
00180
00181 #ifndef ITK_MANUAL_INSTANTIATION
00182 #include "itkBinaryDilateImageFilter.txx"
00183 #endif
00184
00185 #endif
00186