ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkGrayscaleFunctionErodeImageFilter.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 itkGrayscaleFunctionErodeImageFilter_h
19 #define itkGrayscaleFunctionErodeImageFilter_h
20 
22 
23 namespace itk
24 {
49 template< typename TInputImage, typename TOutputImage, typename TKernel >
50 class ITK_TEMPLATE_EXPORT GrayscaleFunctionErodeImageFilter:
51  public MorphologyImageFilter< TInputImage, TOutputImage, TKernel >
52 {
53 public:
59 
61  itkNewMacro(Self);
62 
66 
68  typedef typename Superclass::PixelType PixelType;
69 
71  typedef typename Superclass::KernelIteratorType KernelIteratorType;
72 
74  typedef typename Superclass::NeighborhoodIteratorType NeighborhoodIteratorType;
75 
77  typedef typename Superclass::KernelType KernelType;
78 
80  typedef typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType;
81 
83  itkStaticConstMacro(InputImageDimension, unsigned int,
84  TInputImage::ImageDimension);
85  itkStaticConstMacro(OutputImageDimension, unsigned int,
86  TOutputImage::ImageDimension);
87  itkStaticConstMacro(KernelDimension, unsigned int,
88  TKernel::NeighborhoodDimension);
90 
92  typedef typename TKernel::PixelType KernelPixelType;
93 
94 #ifdef ITK_USE_CONCEPT_CHECKING
95  // Begin concept checking
96  itkConceptMacro( SameDimensionCheck1,
98  itkConceptMacro( SameDimensionCheck2,
100  itkConceptMacro( InputConvertibleToOutputCheck,
102  itkConceptMacro( KernelConvertibleToInputCheck,
104  itkConceptMacro( InputAdditiveOperatorsCheck,
106  itkConceptMacro( InputLessThanComparableCheck,
108  itkConceptMacro( KernelGreaterThanComparableCheck,
110  // End concept checking
111 #endif
112 
113 protected:
116 
124  PixelType Evaluate(const NeighborhoodIteratorType & nit,
125  const KernelIteratorType kernelBegin,
126  const KernelIteratorType kernelEnd) ITK_OVERRIDE;
127 
128 private:
129  ITK_DISALLOW_COPY_AND_ASSIGN(GrayscaleFunctionErodeImageFilter);
130 
131  // Default boundary condition for erosion filter, defaults to
132  // NumericTraits<PixelType>::max()
134 }; // end of class
135 } // end namespace itk
136 
137 #ifndef ITK_MANUAL_INSTANTIATION
138 #include "itkGrayscaleFunctionErodeImageFilter.hxx"
139 #endif
140 
141 #endif
Superclass::NeighborhoodIteratorType NeighborhoodIteratorType
Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType
Base class for all process objects that output image data.
Base class for the morphological operations such as erosion and dialation.
MorphologyImageFilter< TInputImage, TOutputImage, TKernel > Superclass
#define itkConceptMacro(name, concept)