ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkBasicErodeImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkBasicErodeImageFilter_h
19 #define __itkBasicErodeImageFilter_h
20 
22 
23 namespace itk
24 {
45 template< typename TInputImage, typename TOutputImage, typename TKernel >
47  public MorphologyImageFilter< TInputImage, TOutputImage, TKernel >
48 {
49 public:
55 
57  itkNewMacro(Self);
58 
60  itkTypeMacro(BasicErodeImageFilter,
62 
64  typedef typename Superclass::PixelType PixelType;
65 
68 
71 
74 
77 
79  itkStaticConstMacro(InputImageDimension, unsigned int,
80  TInputImage::ImageDimension);
81  itkStaticConstMacro(OutputImageDimension, unsigned int,
82  TOutputImage::ImageDimension);
83  itkStaticConstMacro(KernelDimension, unsigned int,
84  TKernel::NeighborhoodDimension);
86 
88  typedef typename TKernel::PixelType KernelPixelType;
89 
90 #ifdef ITK_USE_CONCEPT_CHECKING
91  // Begin concept checking
92  itkConceptMacro( InputConvertibleToOutputCheck,
94  itkConceptMacro( SameDimensionCheck1,
96  itkConceptMacro( SameDimensionCheck2,
98  itkConceptMacro( InputLessThanComparableCheck,
100  itkConceptMacro( KernelGreaterThanComparableCheck,
102  // End concept checking
103 #endif
104 
105 protected:
108 
115  virtual PixelType Evaluate(const NeighborhoodIteratorType & nit,
116  const KernelIteratorType kernelBegin,
117  const KernelIteratorType kernelEnd);
118 
119 private:
120  BasicErodeImageFilter(const Self &); //purposely not implemented
121  void operator=(const Self &); //purposely not implemented
122 
123  // Default boundary condition for erosion filter, defaults to
124  // NumericTraits<PixelType>::max()
126 }; // end of class
127 } // end namespace itk
128 
129 #ifndef ITK_MANUAL_INSTANTIATION
130 #include "itkBasicErodeImageFilter.hxx"
131 #endif
132 
133 #endif
Superclass::KernelType KernelType
static const unsigned int InputImageDimension
ConstantBoundaryCondition< InputImageType > DefaultBoundaryConditionType
virtual PixelType Evaluate(const NeighborhoodIteratorType &nit, const KernelIteratorType kernelBegin, const KernelIteratorType kernelEnd)
Base class for all process objects that output image data.
KernelType::ConstIterator KernelIteratorType
Base class for the morphological operations such as erosion and dialation.
ConstNeighborhoodIterator< TInputImage > NeighborhoodIteratorType
static const unsigned int KernelDimension
DefaultBoundaryConditionType m_ErodeBoundaryCondition
static const unsigned int OutputImageDimension
gray scale erosion of an image
TInputImage::PixelType PixelType
Superclass::NeighborhoodIteratorType NeighborhoodIteratorType
MorphologyImageFilter< TInputImage, TOutputImage, TKernel > Superclass
#define itkConceptMacro(name, concept)
Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType
void operator=(const Self &)
SmartPointer< const Self > ConstPointer
Superclass::KernelIteratorType KernelIteratorType