ITK  4.13.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:
121  typedef ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage,
122  TOutputPixelType > Superclass;
123 
126 
128  typedef typename Superclass::ValueType ValueType;
129  typedef typename Superclass::OutputImageType OutputImageType;
130  typedef typename Superclass::FeatureImageType FeatureImageType;
131  typedef typename Superclass::OutputPixelType OutputPixelType;
132 
139 
143 
145  itkNewMacro(Self);
146 
149  void SetDerivativeSigma(float value)
150  {
151  if ( value != m_GeodesicActiveContourFunction->GetDerivativeSigma() )
152  {
153  m_GeodesicActiveContourFunction->SetDerivativeSigma(value);
154  this->Modified();
155  }
156  }
158 
161  float GetDerivativeSigma() const
162  { return m_GeodesicActiveContourFunction->GetDerivativeSigma(); }
163 
164 protected:
167 
168  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
169 
170 
173  void GenerateData() ITK_OVERRIDE;
174 
175 private:
177  GeodesicActiveContourFunctionPointer m_GeodesicActiveContourFunction;
178 };
179 } // end namespace itk
180 
181 #ifndef ITK_MANUAL_INSTANTIATION
182 #include "itkGeodesicActiveContourShapePriorLevelSetImageFilter.hxx"
183 #endif
184 
185 #endif
Light weight base class for most itk classes.
ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType > Superclass
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
GeodesicActiveContourShapePriorLevelSetFunction< OutputImageType, FeatureImageType > GeodesicActiveContourFunctionType
A base class which defines the API for implementing a level set segmentation filter with statistical ...