ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkCurvesLevelSetImageFilter.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 itkCurvesLevelSetImageFilter_h
19 #define itkCurvesLevelSetImageFilter_h
20 
23 
24 namespace itk
25 {
101 template< typename TInputImage,
102  typename TFeatureImage,
103  typename TOutputPixelType = float >
104 class ITK_TEMPLATE_EXPORT CurvesLevelSetImageFilter:
105  public SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >
106 {
107 public:
113 
115  typedef typename Superclass::ValueType ValueType;
116  typedef typename Superclass::OutputImageType OutputImageType;
117  typedef typename Superclass::FeatureImageType FeatureImageType;
118 
122 
125 
127  itkNewMacro(Self);
128 
130  void SetDerivativeSigma(float value)
131  {
132  m_CurvesFunction->SetDerivativeSigma(value);
133  this->Modified();
134  }
136 
137  float GetDerivativeSigma() const
138  { return m_CurvesFunction->GetDerivativeSigma(); }
139 
140 #ifdef ITK_USE_CONCEPT_CHECKING
141  // Begin concept checking
142  itkConceptMacro( OutputHasNumericTraitsCheck,
144  // End concept checking
145 #endif
146 
147 protected:
148  ~CurvesLevelSetImageFilter() ITK_OVERRIDE {}
150 
151  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
152 
153  ITK_DISALLOW_COPY_AND_ASSIGN(CurvesLevelSetImageFilter);
154 
157  void GenerateData() ITK_OVERRIDE;
158 
159 private:
160  CurvesFunctionPointer m_CurvesFunction;
161 };
162 } // end namespace itk
163 
164 #ifndef ITK_MANUAL_INSTANTIATION
165 #include "itkCurvesLevelSetImageFilter.hxx"
166 #endif
167 
168 #endif
Light weight base class for most itk classes.
CurvesLevelSetFunction< OutputImageType, FeatureImageType > CurvesFunctionType
Segments structures in images based on user supplied edge potential map.
Superclass::FeatureImageType FeatureImageType
This function is used in CurvesLevelSetImageFilter to segment structures in images based on user supp...
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::OutputImageType OutputImageType
CurvesFunctionType::Pointer CurvesFunctionPointer
#define itkConceptMacro(name, concept)
A base class which defines the API for implementing a special class of image segmentation filters usi...
SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType > Superclass