ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkGeodesicActiveContourShapePriorLevelSetImageFilter.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 itkGeodesicActiveContourShapePriorLevelSetImageFilter_h
19 #define itkGeodesicActiveContourShapePriorLevelSetImageFilter_h
20 
24 
25 namespace itk
26 {
110 template< typename TInputImage,
111  typename TFeatureImage,
112  typename TOutputPixelType = float >
114  public ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage,
115  TOutputPixelType >
116 {
117 public:
118  ITK_DISALLOW_COPY_AND_ASSIGN(GeodesicActiveContourShapePriorLevelSetImageFilter);
119 
122  using Superclass = ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage,
123  TOutputPixelType >;
124 
127 
129  using ValueType = typename Superclass::ValueType;
130  using OutputImageType = typename Superclass::OutputImageType;
131  using FeatureImageType = typename Superclass::FeatureImageType;
132  using OutputPixelType = typename Superclass::OutputPixelType;
133 
138 
142 
144  itkNewMacro(Self);
145 
148  void SetDerivativeSigma(float value)
149  {
150  if ( value != m_GeodesicActiveContourFunction->GetDerivativeSigma() )
151  {
152  m_GeodesicActiveContourFunction->SetDerivativeSigma(value);
153  this->Modified();
154  }
155  }
157 
160  float GetDerivativeSigma() const
161  { return m_GeodesicActiveContourFunction->GetDerivativeSigma(); }
162 
163 protected:
166 
167  void PrintSelf(std::ostream & os, Indent indent) const override;
168 
169 
172  void GenerateData() override;
173 
174 private:
176 };
177 } // end namespace itk
178 
179 #ifndef ITK_MANUAL_INSTANTIATION
180 #include "itkGeodesicActiveContourShapePriorLevelSetImageFilter.hxx"
181 #endif
182 
183 #endif
Light weight base class for most itk classes.
Segments structures in an image based on a user supplied edge potential map and user supplied shape m...
This function is used in GeodesicActiveContourShapePriorSegmentationLevelSetFilter to segment structu...
Control indentation during Print() invocation.
Definition: itkIndent.h:49
A base class which defines the API for implementing a level set segmentation filter with statistical ...