ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkAntiAliasBinaryImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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
23namespace itk
24{
101template <typename TInputImage, typename TOutputImage>
102class ITK_TEMPLATE_EXPORT AntiAliasBinaryImageFilter : public SparseFieldLevelSetImageFilter<TInputImage, TOutputImage>
103{
104public:
105 ITK_DISALLOW_COPY_AND_MOVE(AntiAliasBinaryImageFilter);
107
113
115 using typename Superclass::ValueType;
116 using typename Superclass::IndexType;
117 using typename Superclass::TimeStepType;
118 using typename Superclass::OutputImageType;
119 using typename Superclass::InputImageType;
120
123
125 using BinaryValueType = typename TInputImage::ValueType;
126
128 itkNewMacro(Self);
129
131 itkOverrideGetNameOfClassMacro(AntiAliasBinaryImageFilter);
132
134 itkGetConstMacro(UpperBinaryValue, BinaryValueType);
135 itkGetConstMacro(LowerBinaryValue, BinaryValueType);
137
140 void
141 SetMaximumIterations(unsigned int i)
142 {
143 itkWarningMacro("SetMaximumIterations is deprecated. Please use SetNumberOfIterations instead.");
144 this->SetNumberOfIterations(i);
145 }
146
147
148 unsigned int
150 {
151 itkWarningMacro("GetMaximumIterations is deprecated. Please use GetNumberOfIterations instead.");
152 return this->GetNumberOfIterations();
153 }
154
157
158protected:
160 ~AntiAliasBinaryImageFilter() override = default;
161 void
162 PrintSelf(std::ostream & os, Indent indent) const override;
163
168 const TimeStepType & dt,
169 const ValueType & value,
170 const ValueType & change) override;
171
174 void
175 GenerateData() override;
176
177private:
180
182
183 const TInputImage * m_InputImage{};
184};
185} // end namespace itk
186
187#ifndef ITK_MANUAL_INSTANTIATION
188# include "itkAntiAliasBinaryImageFilter.hxx"
189#endif
190
191#endif
typename FiniteDifferenceFunctionType::TimeStepType TimeStepType
ValueType CalculateUpdateValue(const IndexType &idx, const TimeStepType &dt, const ValueType &value, const ValueType &change) override
~AntiAliasBinaryImageFilter() override=default
typename OutputImageType::IndexType IndexType
CurvatureFunctionType::Pointer m_CurvatureFunction
void PrintSelf(std::ostream &os, Indent indent) const override
typename TInputImage::ValueType BinaryValueType
typename OutputImageType::ValueType ValueType
CurvatureFlowFunction< OutputImageType > CurvatureFunctionType
SparseFieldLevelSetImageFilter< TInputImage, TOutputImage > Superclass
This class encapsulate the finite difference equation which drives a curvature flow denoising algorit...
virtual const IdentifierType & GetNumberOfIterations() const
virtual void SetNumberOfIterations(IdentifierType _arg)
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
typename FiniteDifferenceFunctionType::TimeStepType TimeStepType
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....