ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkBinaryMinMaxCurvatureFlowImageFilter.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 itkBinaryMinMaxCurvatureFlowImageFilter_h
19 #define itkBinaryMinMaxCurvatureFlowImageFilter_h
20 
23 
24 namespace itk
25 {
75 template< typename TInputImage, typename TOutputImage >
76 class ITK_TEMPLATE_EXPORT BinaryMinMaxCurvatureFlowImageFilter:
77  public MinMaxCurvatureFlowImageFilter< TInputImage, TOutputImage >
78 {
79 public:
80  ITK_DISALLOW_COPY_AND_ASSIGN(BinaryMinMaxCurvatureFlowImageFilter);
81 
87 
89  itkNewMacro(Self);
90 
93 
95  using FiniteDifferenceFunctionType = typename Superclass::FiniteDifferenceFunctionType;
96  using OutputImageType = typename Superclass::OutputImageType;
97 
100 
103  static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
104 
106  itkSetMacro(Threshold, double);
107  itkGetConstMacro(Threshold, double);
109 
110 #ifdef ITK_USE_CONCEPT_CHECKING
111  // Begin concept checking
112  itkConceptMacro( InputConvertibleToOutputCheck,
113  ( Concept::Convertible< typename TInputImage::PixelType,
114  typename TOutputImage::PixelType > ) );
115  // End concept checking
116 #endif
117 
118 protected:
119 
120 protected:
122  ~BinaryMinMaxCurvatureFlowImageFilter() override = default;
123  void PrintSelf(std::ostream & os, Indent indent) const override;
124 
127  void InitializeIteration() override;
128 
129 private:
130  double m_Threshold;
131 };
132 } // end namspace itk
133 
134 #ifndef ITK_MANUAL_INSTANTIATION
135 #include "itkBinaryMinMaxCurvatureFlowImageFilter.hxx"
136 #endif
137 
138 #endif
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.
TOutputImage OutputImageType
Denoise a binary image using min/max curvature flow.
Denoise an image using min/max curvature flow.
typename Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)