ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkErodeObjectMorphologyImageFilter.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 __itkErodeObjectMorphologyImageFilter_h
19 #define __itkErodeObjectMorphologyImageFilter_h
20 
22 
23 namespace itk
24 {
45 template< typename TInputImage, typename TOutputImage, typename TKernel >
47  public ObjectMorphologyImageFilter< TInputImage, TOutputImage, TKernel >
48 {
49 public:
55 
57  itkNewMacro(Self);
58 
61 
63  typedef typename Superclass::PixelType PixelType;
64 
66  typedef TKernel KernelType;
67 
69  typedef typename KernelType::ConstIterator KernelIteratorType;
70 
72 
76 
79  void SetErodeValue(PixelType objectValue)
80  {
81  this->SetObjectValue(objectValue);
82  }
83 
87  {
88  return this->GetObjectValue();
89  }
90 
92  itkSetMacro(BackgroundValue, PixelType);
93 
95  itkGetConstMacro(BackgroundValue, PixelType);
96 
98  typedef typename TKernel::PixelType KernelPixelType;
99 
100 #ifdef ITK_USE_CONCEPT_CHECKING
101  // Begin concept checking
102  itkConceptMacro( KernelGreaterThanComparableCheck,
104  // End concept checking
105 #endif
106 
107 protected:
110  void PrintSelf(std::ostream & os, Indent indent) const;
111 
117  const KernelType & kernel);
118 
119 private:
120  ErodeObjectMorphologyImageFilter(const Self &); //purposely not implemented
121  void operator=(const Self &); //purposely not implemented
122 
124 
125  // Default boundary condition for erosion filter, defaults to
126  // NumericTraits<PixelType>::max()
128 }; // end of class
129 } // end namespace itk
130 
131 #ifndef ITK_MANUAL_INSTANTIATION
132 #include "itkErodeObjectMorphologyImageFilter.hxx"
133 #endif
134 
135 #endif
void PrintSelf(std::ostream &os, Indent indent) const
virtual void SetObjectValue(PixelType _arg)
ConstantBoundaryCondition< InputImageType > DefaultBoundaryConditionType
Base class for all process objects that output image data.
NeighborhoodIterator< TOutputImage > OutputNeighborhoodIteratorType
ObjectMorphologyImageFilter< TInputImage, TOutputImage, TKernel > Superclass
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual PixelType GetObjectValue() const
Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType
#define itkConceptMacro(name, concept)
Base class for the morphological operations being applied to isolated objects in an image...
void Evaluate(OutputNeighborhoodIteratorType &nit, const KernelType &kernel)
Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image.