Orfeo Toolbox  3.16
itkBinaryMorphologicalClosingImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkBinaryMorphologicalClosingImageFilter.h,v $
5  Language: C++
6  Date: $Date: 2009-04-23 03:43:41 $
7  Version: $Revision: 1.4 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 
18 #ifndef __itkBinaryMorphologicalClosingImageFilter_h
19 #define __itkBinaryMorphologicalClosingImageFilter_h
20 
21 #include "itkKernelImageFilter.h"
22 
23 namespace itk {
24 
46 template<class TInputImage, class TOutputImage, class TKernel>
48  public KernelImageFilter<TInputImage, TOutputImage, TKernel>
49 {
50 public:
56 
58  itkNewMacro(Self);
59 
63 
64  typedef TInputImage InputImageType;
65  typedef TOutputImage OutputImageType;
66  typedef typename InputImageType::Pointer InputImagePointer;
67  typedef typename OutputImageType::RegionType OutputImageRegionType;
68 
70  typedef typename TInputImage::PixelType InputPixelType;
71  typedef typename TInputImage::PixelType OutputPixelType;
72 
74  typedef TKernel KernelType;
75 
78  itkSetMacro(ForegroundValue, InputPixelType);
79 
82  itkGetConstMacro(ForegroundValue, InputPixelType);
83 
84 
87  itkSetMacro(SafeBorder, bool);
88  itkGetConstReferenceMacro(SafeBorder, bool);
89  itkBooleanMacro(SafeBorder);
90 
91 protected:
94  void PrintSelf(std::ostream& os, Indent indent) const;
95 
98  void GenerateData ();
99 
100 private:
101  BinaryMorphologicalClosingImageFilter(const Self&); //purposely not implemented
102  void operator=(const Self&); //purposely not implemented
103 
105 
107 }; // end of class
108 
109 } // end namespace itk
110 
111 #ifndef ITK_MANUAL_INSTANTIATION
113 #endif
114 
115 #endif

Generated at Sat Feb 2 2013 23:27:32 for Orfeo Toolbox with doxygen 1.8.1.1