ITK  6.0.0
Insight Toolkit
itkGeodesicActiveContourShapePriorLevelSetImageFilter.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  * https://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, typename TFeatureImage, typename TOutputPixelType = float>
112  : public ShapePriorSegmentationLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType>
113 {
114 public:
115  ITK_DISALLOW_COPY_AND_MOVE(GeodesicActiveContourShapePriorLevelSetImageFilter);
116 
120 
123 
125  using typename Superclass::ValueType;
126  using typename Superclass::OutputImageType;
127  using typename Superclass::FeatureImageType;
128  using typename Superclass::OutputPixelType;
129 
134 
136  itkOverrideGetNameOfClassMacro(GeodesicActiveContourShapePriorLevelSetImageFilter);
137 
139  itkNewMacro(Self);
140 
143  void
144  SetDerivativeSigma(float value)
145  {
146  if (value != m_GeodesicActiveContourFunction->GetDerivativeSigma())
147  {
148  m_GeodesicActiveContourFunction->SetDerivativeSigma(value);
149  this->Modified();
150  }
151  }
156  float
158  {
159  return m_GeodesicActiveContourFunction->GetDerivativeSigma();
160  }
161 
162 protected:
165 
166  void
167  PrintSelf(std::ostream & os, Indent indent) const override;
168 
169 
172  void
173  GenerateData() override;
174 
175 private:
176  GeodesicActiveContourFunctionPointer m_GeodesicActiveContourFunction{};
177 };
178 } // end namespace itk
179 
180 #ifndef ITK_MANUAL_INSTANTIATION
181 # include "itkGeodesicActiveContourShapePriorLevelSetImageFilter.hxx"
182 #endif
183 
184 #endif
Pointer
SmartPointer< Self > Pointer
Definition: itkAddImageFilter.h:93
itk::GeodesicActiveContourShapePriorLevelSetImageFilter::GeodesicActiveContourFunctionPointer
typename GeodesicActiveContourFunctionType::Pointer GeodesicActiveContourFunctionPointer
Definition: itkGeodesicActiveContourShapePriorLevelSetImageFilter.h:133
itkShapePriorSegmentationLevelSetImageFilter.h
itkGeodesicActiveContourShapePriorLevelSetFunction.h
itk::GeodesicActiveContourShapePriorLevelSetImageFilter::SetDerivativeSigma
void SetDerivativeSigma(float value)
Definition: itkGeodesicActiveContourShapePriorLevelSetImageFilter.h:144
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itk::GeodesicActiveContourShapePriorLevelSetFunction
This function is used in GeodesicActiveContourShapePriorSegmentationLevelSetFilter to segment structu...
Definition: itkGeodesicActiveContourShapePriorLevelSetFunction.h:93
itk::ShapePriorSegmentationLevelSetImageFilter
A base class which defines the API for implementing a level set segmentation filter with statistical ...
Definition: itkShapePriorSegmentationLevelSetImageFilter.h:73
itk::GeodesicActiveContourShapePriorLevelSetImageFilter
Segments structures in an image based on a user supplied edge potential map and user supplied shape m...
Definition: itkGeodesicActiveContourShapePriorLevelSetImageFilter.h:111
itk::GeodesicActiveContourShapePriorLevelSetImageFilter::GetDerivativeSigma
float GetDerivativeSigma() const
Definition: itkGeodesicActiveContourShapePriorLevelSetImageFilter.h:157
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itkShapePriorMAPCostFunction.h