ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkBinaryDilateImageFilter.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 __itkBinaryDilateImageFilter_h
19 #define __itkBinaryDilateImageFilter_h
20 
21 #include <vector>
22 #include <queue>
25 
26 namespace itk
27 {
65 template< typename TInputImage, typename TOutputImage, typename TKernel >
67  public BinaryMorphologyImageFilter< TInputImage, TOutputImage, TKernel >
68 {
69 public:
70 
72  itkStaticConstMacro(InputImageDimension, unsigned int,
73  TInputImage::ImageDimension);
74  itkStaticConstMacro(OutputImageDimension, unsigned int,
75  TOutputImage::ImageDimension);
77 
79  itkStaticConstMacro(KernelDimension, unsigned int,
80  TKernel::NeighborhoodDimension);
81 
83  typedef TInputImage InputImageType;
84  typedef TOutputImage OutputImageType;
85  typedef TKernel KernelType;
86 
91 
94 
96  itkNewMacro(Self);
97 
100 
102  typedef typename KernelType::ConstIterator KernelIteratorType;
103 
105  typedef typename InputImageType::PixelType InputPixelType;
106  typedef typename OutputImageType::PixelType OutputPixelType;
108  typedef typename InputImageType::OffsetType OffsetType;
109  typedef typename InputImageType::IndexType IndexType;
110 
111  typedef typename InputImageType::RegionType InputImageRegionType;
112  typedef typename OutputImageType::RegionType OutputImageRegionType;
113  typedef typename InputImageType::SizeType InputSizeType;
114 
118  void SetDilateValue(const InputPixelType & value)
119  { this->SetForegroundValue(value); }
120 
125  { return this->GetForegroundValue(); }
126 
127 protected:
130  void PrintSelf(std::ostream & os, Indent indent) const;
131 
132  void GenerateData();
133 
134  // type inherited from the superclass
136 
137 private:
138  BinaryDilateImageFilter(const Self &); //purposely not implemented
139  void operator=(const Self &); //purposely not implemented
140 };
141 } // end namespace itk
142 
143 #ifndef ITK_MANUAL_INSTANTIATION
144 #include "itkBinaryDilateImageFilter.hxx"
145 #endif
146 
147 #endif
NumericTraits< InputPixelType >::RealType InputRealType
static const unsigned int OutputImageDimension
static const unsigned int InputImageDimension
InputImageType::PixelType InputPixelType
InputImageType::RegionType InputImageRegionType
void PrintSelf(std::ostream &os, Indent indent) const
OutputImageType::RegionType OutputImageRegionType
TInputImage::PixelType InputPixelType
Base class for all process objects that output image data.
Superclass::NeighborIndexContainer NeighborIndexContainer
BinaryMorphologyImageFilter< InputImageType, OutputImageType, KernelType > Superclass
InputImageType::OffsetType OffsetType
virtual InputPixelType GetForegroundValue() const
SmartPointer< const Self > ConstPointer
KernelType::ConstIterator KernelIteratorType
virtual void SetForegroundValue(InputPixelType _arg)
OutputImageType::PixelType OutputPixelType
Base class for fast binary dilation and erosion.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
void operator=(const Self &)
Define additional traits for native types such as int or float.
InputImageType::SizeType InputSizeType
void SetDilateValue(const InputPixelType &value)
static const unsigned int KernelDimension