itkBinaryMorphologicalOpeningImageFilter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __itkBinaryMorphologicalOpeningImageFilter_h
00019 #define __itkBinaryMorphologicalOpeningImageFilter_h
00020
00021 #include "itkKernelImageFilter.h"
00022
00023 namespace itk {
00024
00046 template<class TInputImage, class TOutputImage, class TKernel>
00047 class ITK_EXPORT BinaryMorphologicalOpeningImageFilter :
00048 public KernelImageFilter<TInputImage, TOutputImage, TKernel>
00049 {
00050 public:
00052 typedef BinaryMorphologicalOpeningImageFilter Self;
00053 typedef KernelImageFilter<TInputImage, TOutputImage, TKernel> Superclass;
00054 typedef SmartPointer<Self> Pointer;
00055 typedef SmartPointer<const Self> ConstPointer;
00056
00058 itkNewMacro(Self);
00059
00061 itkTypeMacro(BinaryMorphologicalOpeningImageFilter,
00062 KernelImageFilter);
00063
00064 typedef TInputImage InputImageType;
00065 typedef TOutputImage OutputImageType;
00066 typedef typename InputImageType::Pointer InputImagePointer;
00067 typedef typename OutputImageType::RegionType OutputImageRegionType;
00068
00070 typedef typename TInputImage::PixelType PixelType;
00071
00073 typedef TKernel KernelType;
00074
00077 itkSetMacro(ForegroundValue, PixelType);
00078
00081 itkGetConstMacro(ForegroundValue, PixelType);
00082
00084 itkSetMacro(BackgroundValue, PixelType);
00085
00087 itkGetConstMacro(BackgroundValue, PixelType);
00088
00089 protected:
00090 BinaryMorphologicalOpeningImageFilter();
00091 ~BinaryMorphologicalOpeningImageFilter() {};
00092 void PrintSelf(std::ostream& os, Indent indent) const;
00093
00096 void GenerateData ();
00097
00098 private:
00099 BinaryMorphologicalOpeningImageFilter(const Self&);
00100 void operator=(const Self&);
00101
00102 PixelType m_ForegroundValue;
00103
00104 PixelType m_BackgroundValue;
00105
00106 };
00107
00108 }
00109
00110 #ifndef ITK_MANUAL_INSTANTIATION
00111 #include "itkBinaryMorphologicalOpeningImageFilter.txx"
00112 #endif
00113
00114 #endif
00115