ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkGeodesicActiveContourLevelSetImageFilter.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 itkGeodesicActiveContourLevelSetImageFilter_h
19 #define itkGeodesicActiveContourLevelSetImageFilter_h
20 
23 
24 namespace itk
25 {
104 template< typename TInputImage,
105  typename TFeatureImage,
106  typename TOutputPixelType = float >
108  public SegmentationLevelSetImageFilter< TInputImage, TFeatureImage,
109  TOutputPixelType >
110 {
111 public:
112  ITK_DISALLOW_COPY_AND_ASSIGN(GeodesicActiveContourLevelSetImageFilter);
113 
116  using Superclass = SegmentationLevelSetImageFilter< TInputImage, TFeatureImage,
117  TOutputPixelType >;
118 
121 
123  using ValueType = typename Superclass::ValueType;
124  using OutputImageType = typename Superclass::OutputImageType;
125  using FeatureImageType = typename Superclass::FeatureImageType;
126 
131 
134 
136  itkNewMacro(Self);
137 
140  void SetDerivativeSigma(float value)
141  {
142  if ( Math::NotExactlyEquals(value, m_GeodesicActiveContourFunction->GetDerivativeSigma()) )
143  {
144  m_GeodesicActiveContourFunction->SetDerivativeSigma(value);
145  this->Modified();
146  }
147  }
149 
152  float GetDerivativeSigma() const
153  { return m_GeodesicActiveContourFunction->GetDerivativeSigma(); }
154 
155 protected:
156  ~GeodesicActiveContourLevelSetImageFilter() override = default;
158 
159  void PrintSelf(std::ostream & os, Indent indent) const override;
160 
163  void GenerateData() override;
164 
165 private:
167 };
168 } // end namespace itk
169 
170 #ifndef ITK_MANUAL_INSTANTIATION
171 #include "itkGeodesicActiveContourLevelSetImageFilter.hxx"
172 #endif
173 
174 #endif
Light weight base class for most itk classes.
typename GeodesicActiveContourFunctionType::Pointer GeodesicActiveContourFunctionPointer
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
Definition: itkMath.h:718
Control indentation during Print() invocation.
Definition: itkIndent.h:49
This function is used in GeodesicActiveContourLevelSetImageFilter to segment structures in an image b...
Segments structures in images based on a user supplied edge potential map.
A base class which defines the API for implementing a special class of image segmentation filters usi...