ITK  5.2.0
Insight Toolkit
itkCurvesLevelSetImageFilter.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 itkCurvesLevelSetImageFilter_h
19 #define itkCurvesLevelSetImageFilter_h
20 
23 
24 namespace itk
25 {
101 template <typename TInputImage, typename TFeatureImage, typename TOutputPixelType = float>
102 class ITK_TEMPLATE_EXPORT CurvesLevelSetImageFilter
103  : public SegmentationLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType>
104 {
105 public:
106  ITK_DISALLOW_COPY_AND_MOVE(CurvesLevelSetImageFilter);
107 
113 
115  using ValueType = typename Superclass::ValueType;
116  using OutputImageType = typename Superclass::OutputImageType;
117  using FeatureImageType = typename Superclass::FeatureImageType;
118 
122 
125 
127  itkNewMacro(Self);
128 
130  void
131  SetDerivativeSigma(float value)
132  {
133  m_CurvesFunction->SetDerivativeSigma(value);
134  this->Modified();
135  }
137 
138  float
140  {
141  return m_CurvesFunction->GetDerivativeSigma();
142  }
143 
144 #ifdef ITK_USE_CONCEPT_CHECKING
145  // Begin concept checking
146  itkConceptMacro(OutputHasNumericTraitsCheck, (Concept::HasNumericTraits<TOutputPixelType>));
147  // End concept checking
148 #endif
149 
150 protected:
151  ~CurvesLevelSetImageFilter() override = default;
153 
154  void
155  PrintSelf(std::ostream & os, Indent indent) const override;
156 
159  void
160  GenerateData() override;
161 
162 private:
164 };
165 } // end namespace itk
166 
167 #ifndef ITK_MANUAL_INSTANTIATION
168 # include "itkCurvesLevelSetImageFilter.hxx"
169 #endif
170 
171 #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::Concept::HasNumericTraits
Definition: itkConceptChecking.h:712
itk::CurvesLevelSetImageFilter
Segments structures in images based on user supplied edge potential map.
Definition: itkCurvesLevelSetImageFilter.h:102
itk::CurvesLevelSetImageFilter::GetDerivativeSigma
float GetDerivativeSigma() const
Definition: itkCurvesLevelSetImageFilter.h:139
itk::CurvesLevelSetImageFilter::SetDerivativeSigma
void SetDerivativeSigma(float value)
Definition: itkCurvesLevelSetImageFilter.h:131
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itkSegmentationLevelSetImageFilter.h
itk::CurvesLevelSetImageFilter::FeatureImageType
typename Superclass::FeatureImageType FeatureImageType
Definition: itkCurvesLevelSetImageFilter.h:117
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::CurvesLevelSetImageFilter::m_CurvesFunction
CurvesFunctionPointer m_CurvesFunction
Definition: itkCurvesLevelSetImageFilter.h:163
itk::CurvesLevelSetImageFilter::CurvesFunctionPointer
typename CurvesFunctionType::Pointer CurvesFunctionPointer
Definition: itkCurvesLevelSetImageFilter.h:121
itk::CurvesLevelSetImageFilter::ValueType
typename Superclass::ValueType ValueType
Definition: itkCurvesLevelSetImageFilter.h:115
itk::CurvesLevelSetImageFilter::OutputImageType
typename Superclass::OutputImageType OutputImageType
Definition: itkCurvesLevelSetImageFilter.h:116
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:64
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::CurvesLevelSetFunction
This function is used in CurvesLevelSetImageFilter to segment structures in images based on user supp...
Definition: itkCurvesLevelSetFunction.h:62
itkCurvesLevelSetFunction.h