Orfeo Toolbox  4.2
itkBinaryReconstructionByErosionImageFilter.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 __itkBinaryReconstructionByErosionImageFilter_h
19 #define __itkBinaryReconstructionByErosionImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
23 #include "itkLabelMap.h"
29 
30 
31 namespace itk {
32 
54 template<typename TInputImage>
56  public ImageToImageFilter<TInputImage, TInputImage>
57 {
58 public:
64 
66  typedef TInputImage InputImageType;
67  typedef TInputImage OutputImageType;
68  typedef typename InputImageType::Pointer InputImagePointer;
69  typedef typename InputImageType::ConstPointer InputImageConstPointer;
70  typedef typename InputImageType::RegionType InputImageRegionType;
71  typedef typename InputImageType::PixelType InputImagePixelType;
72  typedef typename OutputImageType::Pointer OutputImagePointer;
73  typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
74  typedef typename OutputImageType::RegionType OutputImageRegionType;
75  typedef typename OutputImageType::PixelType OutputImagePixelType;
76 
78  itkStaticConstMacro(InputImageDimension, unsigned int,
79  TInputImage::ImageDimension);
80  itkStaticConstMacro(OutputImageDimension, unsigned int,
81  TInputImage::ImageDimension);
82  itkStaticConstMacro(ImageDimension, unsigned int,
83  TInputImage::ImageDimension);
84 
92 
94  itkNewMacro(Self);
95 
98 
105  itkSetMacro(FullyConnected, bool);
106  itkGetConstReferenceMacro(FullyConnected, bool);
107  itkBooleanMacro(FullyConnected);
108 
109 #ifdef ITK_USE_CONCEPT_CHECKING
110  // Begin concept checking
111  itkConceptMacro(InputEqualityComparableCheck,
113  itkConceptMacro(IntConvertibleToInputCheck,
115  itkConceptMacro(InputOStreamWritableCheck,
117  // End concept checking
118 #endif
119 
124  itkSetMacro(BackgroundValue, OutputImagePixelType);
125  itkGetConstMacro(BackgroundValue, OutputImagePixelType);
126 
131  itkSetMacro(ForegroundValue, OutputImagePixelType);
132  itkGetConstMacro(ForegroundValue, OutputImagePixelType);
133 
135  void SetMarkerImage(const InputImageType *input);
136 
139 
141  void SetMaskImage(const InputImageType *input);
142 
145 
146 protected:
149  void PrintSelf(std::ostream& os, Indent indent) const;
150 
155 
157  void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
158 
161  void GenerateData();
162 
163 private:
164  BinaryReconstructionByErosionImageFilter(const Self&); //purposely not implemented
165  void operator=(const Self&); //purposely not implemented
166 
170 }; // end of class
171 
172 } // end namespace itk
173 
174 #ifndef ITK_MANUAL_INSTANTIATION
176 #endif
177 
178 #endif

Generated at Sat Aug 30 2014 14:22:26 for Orfeo Toolbox with doxygen 1.8.3.1