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,
00128 KernelType> Superclass;
00129 typedef SmartPointer<Self> Pointer;
00130 typedef SmartPointer<const Self> ConstPointer;
00131
00133 itkNewMacro(Self);
00134
00136 itkTypeMacro(BinaryDilateImageFilter, BinaryMorphologyImageFilter);
00137
00139 typedef typename KernelType::ConstIterator KernelIteratorType;
00140
00142 typedef typename InputImageType::PixelType InputPixelType;
00143 typedef typename OutputImageType::PixelType OutputPixelType;
00144 typedef typename NumericTraits<InputPixelType>::RealType InputRealType;
00145 typedef typename InputImageType::OffsetType OffsetType;
00146 typedef typename InputImageType::IndexType IndexType;
00147
00148 typedef typename InputImageType::RegionType InputImageRegionType;
00149 typedef typename OutputImageType::RegionType OutputImageRegionType;
00150 typedef typename InputImageType::SizeType InputSizeType;
00151
00155 void SetDilateValue(const InputPixelType& value)
00156 { this->SetForegroundValue( value ); }
00157
00161 InputPixelType GetDilateValue() const
00162 { return this->GetForegroundValue(); }
00163
00164 protected:
00165 BinaryDilateImageFilter();
00166 virtual ~BinaryDilateImageFilter(){}
00167 void PrintSelf(std::ostream& os, Indent indent) const;
00168
00169 void GenerateData();
00170
00171
00172 typedef typename Superclass::NeighborIndexContainer NeighborIndexContainer;
00173
00174 private:
00175 BinaryDilateImageFilter(const Self&);
00176 void operator=(const Self&);
00177
00178 };
00179
00180 }
00181
00182 #ifndef ITK_MANUAL_INSTANTIATION
00183 #include "itkBinaryDilateImageFilter.txx"
00184 #endif
00185
00186 #endif
00187