ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkAntiAliasBinaryImageFilter.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 itkAntiAliasBinaryImageFilter_h
19 #define itkAntiAliasBinaryImageFilter_h
22 
23 namespace itk
24 {
106 template< typename TInputImage, typename TOutputImage >
107 class ITK_TEMPLATE_EXPORT AntiAliasBinaryImageFilter:
108  public SparseFieldLevelSetImageFilter< TInputImage, TOutputImage >
109 {
110 public:
111  ITK_DISALLOW_COPY_AND_ASSIGN(AntiAliasBinaryImageFilter);
113 
119 
121  using ValueType = typename Superclass::ValueType;
123  using TimeStepType = typename Superclass::TimeStepType;
124  using OutputImageType = typename Superclass::OutputImageType;
125  using InputImageType = typename Superclass::InputImageType;
126 
129 
131  using BinaryValueType = typename TInputImage::ValueType;
132 
134  itkNewMacro(Self);
135 
138 
140  itkGetConstMacro(UpperBinaryValue, BinaryValueType);
141  itkGetConstMacro(LowerBinaryValue, BinaryValueType);
143 
146  void SetMaximumIterations(unsigned int i)
147  {
148  itkWarningMacro("SetMaximumIterations is deprecated. Please use SetNumberOfIterations instead.");
149  this->SetNumberOfIterations(i);
150  }
152 
153  unsigned int GetMaximumIterations()
154  {
155  itkWarningMacro("GetMaximumIterations is deprecated. Please use GetNumberOfIterations instead.");
156  return this->GetNumberOfIterations();
157  }
158 
159 #ifdef ITK_USE_CONCEPT_CHECKING
160  // Begin concept checking
161  itkConceptMacro( DoubleConvertibleToOutputCheck,
163  itkConceptMacro( InputOStreamWritableCheck,
165  // End concept checking
166 #endif
167 
168 protected:
170  ~AntiAliasBinaryImageFilter() override = default;
171  void PrintSelf(std::ostream & os, Indent indent) const override;
172 
175  ValueType CalculateUpdateValue(const IndexType & idx,
176  const TimeStepType & dt,
177  const ValueType & value,
178  const ValueType & change) override;
179 
182  void GenerateData() override;
183 
184 private:
187 
189 
190  const TInputImage *m_InputImage;
191 };
192 } // end namespace itk
193 
194 #ifndef ITK_MANUAL_INSTANTIATION
195 #include "itkAntiAliasBinaryImageFilter.hxx"
196 #endif
197 
198 #endif
typename OutputImageType::IndexType IndexType
typename OutputImageType::ValueType ValueType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
This class implements a finite difference partial differential equation solver for evolving surfaces ...
A method for estimation of a surface from a binary volume.
typename TInputImage::ValueType BinaryValueType
TOutputImage OutputImageType
This class encapsulate the finite difference equation which drives a curvature flow denoising algorit...
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
typename FiniteDifferenceFunctionType::TimeStepType TimeStepType
CurvatureFunctionType::Pointer m_CurvatureFunction