ITK  6.0.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 * 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 itkCurvesLevelSetImageFilter_h
19#define itkCurvesLevelSetImageFilter_h
20
23
24namespace itk
25{
101template <typename TInputImage, typename TFeatureImage, typename TOutputPixelType = float>
102class ITK_TEMPLATE_EXPORT CurvesLevelSetImageFilter
103 : public SegmentationLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType>
104{
105public:
106 ITK_DISALLOW_COPY_AND_MOVE(CurvesLevelSetImageFilter);
107
113
115 using typename Superclass::ValueType;
116 using typename Superclass::OutputImageType;
117 using typename Superclass::FeatureImageType;
118
122
124 itkOverrideGetNameOfClassMacro(CurvesLevelSetImageFilter);
125
127 itkNewMacro(Self);
128
130 void
132 {
133 m_CurvesFunction->SetDerivativeSigma(value);
134 this->Modified();
135 }
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
150protected:
151 ~CurvesLevelSetImageFilter() override = default;
153
154 void
155 PrintSelf(std::ostream & os, Indent indent) const override;
156
159 void
160 GenerateData() override;
161
162private:
163 CurvesFunctionPointer m_CurvesFunction{};
164};
165} // end namespace itk
166
167#ifndef ITK_MANUAL_INSTANTIATION
168# include "itkCurvesLevelSetImageFilter.hxx"
169#endif
170
171#endif
This function is used in CurvesLevelSetImageFilter to segment structures in images based on user supp...
Segments structures in images based on user supplied edge potential map.
void PrintSelf(std::ostream &os, Indent indent) const override
typename CurvesFunctionType::Pointer CurvesFunctionPointer
~CurvesLevelSetImageFilter() override=default
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
A base class which defines the API for implementing a special class of image segmentation filters usi...
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....