ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkBasicDilateImageFilter.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 __itkBasicDilateImageFilter_h
19 #define __itkBasicDilateImageFilter_h
20 
22 
23 namespace itk
24 {
47 template< typename TInputImage, typename TOutputImage, typename TKernel >
49  public MorphologyImageFilter< TInputImage, TOutputImage, TKernel >
50 {
51 public:
57 
59  itkNewMacro(Self);
60 
62  itkTypeMacro(BasicDilateImageFilter,
64 
66  typedef typename Superclass::PixelType PixelType;
67 
70 
73 
76 
79 
81  itkStaticConstMacro(InputImageDimension, unsigned int,
82  TInputImage::ImageDimension);
83  itkStaticConstMacro(OutputImageDimension, unsigned int,
84  TOutputImage::ImageDimension);
85  itkStaticConstMacro(KernelDimension, unsigned int,
86  TKernel::NeighborhoodDimension);
88 
90  typedef typename TKernel::PixelType KernelPixelType;
91 
92 #ifdef ITK_USE_CONCEPT_CHECKING
93  // Begin concept checking
94  itkConceptMacro( InputConvertibleToOutputCheck,
96  itkConceptMacro( SameDimensionCheck1,
98  itkConceptMacro( SameDimensionCheck2,
100  itkConceptMacro( InputGreaterThanComparableCheck,
102  itkConceptMacro( KernelGreaterThanComparableCheck,
104  // End concept checking
105 #endif
106 
107 protected:
110 
118  const KernelIteratorType kernelBegin,
119  const KernelIteratorType kernelEnd);
120 
121 private:
122  BasicDilateImageFilter(const Self &); //purposely not implemented
123  void operator=(const Self &); //purposely not implemented
124 
125  // Default boundary condition for dilation filter, defaults to
126  // NumericTraits<PixelType>::NonpositiveMin()
128 }; // end of class
129 } // end namespace itk
130 
131 #ifndef ITK_MANUAL_INSTANTIATION
132 #include "itkBasicDilateImageFilter.hxx"
133 #endif
134 
135 #endif
gray scale dilation of an image
static const unsigned int KernelDimension
void operator=(const Self &)
Superclass::NeighborhoodIteratorType NeighborhoodIteratorType
ConstantBoundaryCondition< InputImageType > DefaultBoundaryConditionType
MorphologyImageFilter< TInputImage, TOutputImage, TKernel > Superclass
Superclass::KernelIteratorType KernelIteratorType
static const unsigned int InputImageDimension
Base class for all process objects that output image data.
PixelType Evaluate(const NeighborhoodIteratorType &nit, const KernelIteratorType kernelBegin, const KernelIteratorType kernelEnd)
KernelType::ConstIterator KernelIteratorType
Base class for the morphological operations such as erosion and dialation.
ConstNeighborhoodIterator< TInputImage > NeighborhoodIteratorType
SmartPointer< const Self > ConstPointer
Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType
TInputImage::PixelType PixelType
static const unsigned int OutputImageDimension
#define itkConceptMacro(name, concept)
DefaultBoundaryConditionType m_DilateBoundaryCondition