ITK  5.2.0
Insight Toolkit
itkGeodesicActiveContourLevelSetImageFilter.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  * 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 itkGeodesicActiveContourLevelSetImageFilter_h
19 #define itkGeodesicActiveContourLevelSetImageFilter_h
20 
23 
24 namespace itk
25 {
104 template <typename TInputImage, typename TFeatureImage, typename TOutputPixelType = float>
106  : public SegmentationLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType>
107 {
108 public:
109  ITK_DISALLOW_COPY_AND_MOVE(GeodesicActiveContourLevelSetImageFilter);
110 
114 
117 
119  using ValueType = typename Superclass::ValueType;
120  using OutputImageType = typename Superclass::OutputImageType;
121  using FeatureImageType = typename Superclass::FeatureImageType;
122 
126 
129 
131  itkNewMacro(Self);
132 
135  void
136  SetDerivativeSigma(float value)
137  {
138  if (Math::NotExactlyEquals(value, m_GeodesicActiveContourFunction->GetDerivativeSigma()))
139  {
140  m_GeodesicActiveContourFunction->SetDerivativeSigma(value);
141  this->Modified();
142  }
143  }
145 
148  float
150  {
151  return m_GeodesicActiveContourFunction->GetDerivativeSigma();
152  }
153 
154 protected:
155  ~GeodesicActiveContourLevelSetImageFilter() override = default;
157 
158  void
159  PrintSelf(std::ostream & os, Indent indent) const override;
160 
163  void
164  GenerateData() override;
165 
166 private:
168 };
169 } // end namespace itk
170 
171 #ifndef ITK_MANUAL_INSTANTIATION
172 # include "itkGeodesicActiveContourLevelSetImageFilter.hxx"
173 #endif
174 
175 #endif
itk::SegmentationLevelSetImageFilter
A base class which defines the API for implementing a special class of image segmentation filters usi...
Definition: itkSegmentationLevelSetImageFilter.h:144
itk::GeodesicActiveContourLevelSetImageFilter::m_GeodesicActiveContourFunction
GeodesicActiveContourFunctionPointer m_GeodesicActiveContourFunction
Definition: itkGeodesicActiveContourLevelSetImageFilter.h:167
itk::GeodesicActiveContourLevelSetImageFilter::OutputImageType
typename Superclass::OutputImageType OutputImageType
Definition: itkGeodesicActiveContourLevelSetImageFilter.h:120
itk::GeodesicActiveContourLevelSetImageFilter
Segments structures in images based on a user supplied edge potential map.
Definition: itkGeodesicActiveContourLevelSetImageFilter.h:105
itk::GeodesicActiveContourLevelSetImageFilter::SetDerivativeSigma
void SetDerivativeSigma(float value)
Definition: itkGeodesicActiveContourLevelSetImageFilter.h:136
itk::GeodesicActiveContourLevelSetImageFilter::GetDerivativeSigma
float GetDerivativeSigma() const
Definition: itkGeodesicActiveContourLevelSetImageFilter.h:149
itk::GeodesicActiveContourLevelSetFunction
This function is used in GeodesicActiveContourLevelSetImageFilter to segment structures in an image b...
Definition: itkGeodesicActiveContourLevelSetFunction.h:77
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::Math::NotExactlyEquals
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
Definition: itkMath.h:733
itkSegmentationLevelSetImageFilter.h
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::GeodesicActiveContourLevelSetImageFilter::ValueType
typename Superclass::ValueType ValueType
Definition: itkGeodesicActiveContourLevelSetImageFilter.h:119
itk::GeodesicActiveContourLevelSetImageFilter::GeodesicActiveContourFunctionPointer
typename GeodesicActiveContourFunctionType::Pointer GeodesicActiveContourFunctionPointer
Definition: itkGeodesicActiveContourLevelSetImageFilter.h:125
itkGeodesicActiveContourLevelSetFunction.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::GeodesicActiveContourLevelSetImageFilter::FeatureImageType
typename Superclass::FeatureImageType FeatureImageType
Definition: itkGeodesicActiveContourLevelSetImageFilter.h:121