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 {
00066 template <class TInputImage, class TOutputImage, class TKernel>
00067 class ITK_EXPORT BinaryDilateImageFilter :
00068 public BinaryMorphologyImageFilter< TInputImage, TOutputImage, TKernel >
00069 {
00070 public:
00071
00073 itkStaticConstMacro(InputImageDimension, unsigned int,
00074 TInputImage::ImageDimension);
00075 itkStaticConstMacro(OutputImageDimension, unsigned int,
00076 TOutputImage::ImageDimension);
00078
00080 itkStaticConstMacro(KernelDimension, unsigned int,
00081 TKernel::NeighborhoodDimension);
00082
00084 typedef TInputImage InputImageType;
00085 typedef TOutputImage OutputImageType;
00086 typedef TKernel KernelType;
00087
00088
00090 typedef BinaryDilateImageFilter Self;
00091 typedef BinaryMorphologyImageFilter<InputImageType, OutputImageType,
00092 KernelType> Superclass;
00093 typedef SmartPointer<Self> Pointer;
00094 typedef SmartPointer<const Self> ConstPointer;
00095
00097 itkNewMacro(Self);
00098
00100 itkTypeMacro(BinaryDilateImageFilter, BinaryMorphologyImageFilter);
00101
00103 typedef typename KernelType::ConstIterator KernelIteratorType;
00104
00106 typedef typename InputImageType::PixelType InputPixelType;
00107 typedef typename OutputImageType::PixelType OutputPixelType;
00108 typedef typename NumericTraits<InputPixelType>::RealType InputRealType;
00109 typedef typename InputImageType::OffsetType OffsetType;
00110 typedef typename InputImageType::IndexType IndexType;
00111
00112 typedef typename InputImageType::RegionType InputImageRegionType;
00113 typedef typename OutputImageType::RegionType OutputImageRegionType;
00114 typedef typename InputImageType::SizeType InputSizeType;
00115
00119 void SetDilateValue(const InputPixelType& value)
00120 { this->SetForegroundValue( value ); }
00121
00125 InputPixelType GetDilateValue() const
00126 { return this->GetForegroundValue(); }
00127
00128 protected:
00129 BinaryDilateImageFilter();
00130 virtual ~BinaryDilateImageFilter(){}
00131 void PrintSelf(std::ostream& os, Indent indent) const;
00132
00133 void GenerateData();
00134
00135
00136 typedef typename Superclass::NeighborIndexContainer NeighborIndexContainer;
00137
00138 private:
00139 BinaryDilateImageFilter(const Self&);
00140 void operator=(const Self&);
00141
00142 };
00143
00144 }
00145
00146 #ifndef ITK_MANUAL_INSTANTIATION
00147 #include "itkBinaryDilateImageFilter.txx"
00148 #endif
00149
00150 #endif
00151