00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkReconstructionByErosionImageFilter_h
00018 #define __itkReconstructionByErosionImageFilter_h
00019
00020 #include "itkReconstructionImageFilter.h"
00021
00022 #include "itkNumericTraits.h"
00023
00024 namespace itk {
00058 template <class TInputImage, class TOutputImage>
00059 class ITK_EXPORT ReconstructionByErosionImageFilter :
00060 public ReconstructionImageFilter<TInputImage, TOutputImage, std::less<typename TOutputImage::PixelType> >
00061 {
00062 public:
00063 typedef ReconstructionByErosionImageFilter Self;
00064 typedef ReconstructionImageFilter<
00065 TInputImage, TOutputImage, std::less<typename TOutputImage::PixelType> >
00066 Superclass;
00067 typedef SmartPointer<Self> Pointer;
00068 typedef SmartPointer<const Self> ConstPointer;
00069
00071 typedef TInputImage MarkerImageType;
00072 typedef typename MarkerImageType::Pointer MarkerImagePointer;
00073 typedef typename MarkerImageType::ConstPointer MarkerImageConstPointer;
00074 typedef typename MarkerImageType::RegionType MarkerImageRegionType;
00075 typedef typename MarkerImageType::PixelType MarkerImagePixelType;
00076 typedef TInputImage MaskImageType;
00077 typedef typename MaskImageType::Pointer MaskImagePointer;
00078 typedef typename MaskImageType::ConstPointer MaskImageConstPointer;
00079 typedef typename MaskImageType::RegionType MaskImageRegionType;
00080 typedef typename MaskImageType::PixelType MaskImagePixelType;
00081 typedef TOutputImage OutputImageType;
00082 typedef typename OutputImageType::Pointer OutputImagePointer;
00083 typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
00084 typedef typename OutputImageType::RegionType OutputImageRegionType;
00085 typedef typename OutputImageType::PixelType OutputImagePixelType;
00086
00088 itkStaticConstMacro(MarkerImageDimension, unsigned int,
00089 TInputImage::ImageDimension);
00090 itkStaticConstMacro(MaskImageDimension, unsigned int,
00091 TInputImage::ImageDimension);
00092 itkStaticConstMacro(OutputImageDimension, unsigned int,
00093 TOutputImage::ImageDimension);
00095
00097 itkNewMacro(Self);
00098
00100 itkTypeMacro(ReconstructionByErosionImageFilter,
00101 ReconstructionImageFilter);
00102
00103
00104 protected:
00105 ReconstructionByErosionImageFilter()
00106 {
00107 this->m_MarkerValue = NumericTraits<ITK_TYPENAME TOutputImage::PixelType>::max();
00108 }
00109 virtual ~ReconstructionByErosionImageFilter() {}
00110
00111 private:
00112 ReconstructionByErosionImageFilter(const Self&);
00113 void operator=(const Self&);
00114
00115 };
00116
00117 }
00118
00119 #endif
00120