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 __itkBinaryMorphologicalClosingImageFilter_h
00019 #define __itkBinaryMorphologicalClosingImageFilter_h
00020
00021 #include "itkKernelImageFilter.h"
00022
00023 namespace itk {
00024
00046 template<class TInputImage, class TOutputImage, class TKernel>
00047 class ITK_EXPORT BinaryMorphologicalClosingImageFilter :
00048 public KernelImageFilter<TInputImage, TOutputImage, TKernel>
00049 {
00050 public:
00052 typedef BinaryMorphologicalClosingImageFilter 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(BinaryMorphologicalClosingImageFilter,
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 InputPixelType;
00071 typedef typename TInputImage::PixelType OutputPixelType;
00072
00074 typedef TKernel KernelType;
00075
00078 itkSetMacro(ForegroundValue, InputPixelType);
00079
00082 itkGetConstMacro(ForegroundValue, InputPixelType);
00083
00084
00087 itkSetMacro(SafeBorder, bool);
00088 itkGetConstReferenceMacro(SafeBorder, bool);
00089 itkBooleanMacro(SafeBorder);
00091
00092 protected:
00093 BinaryMorphologicalClosingImageFilter();
00094 ~BinaryMorphologicalClosingImageFilter() {};
00095 void PrintSelf(std::ostream& os, Indent indent) const;
00096
00099 void GenerateData ();
00100
00101 private:
00102 BinaryMorphologicalClosingImageFilter(const Self&);
00103 void operator=(const Self&);
00104
00105 InputPixelType m_ForegroundValue;
00106
00107 bool m_SafeBorder;
00108 };
00109
00110 }
00111
00112 #ifndef ITK_MANUAL_INSTANTIATION
00113 #include "itkBinaryMorphologicalClosingImageFilter.txx"
00114 #endif
00115
00116 #endif
00117