ITK  6.0.0
Insight Toolkit
itkCannySegmentationLevelSetImageFilter.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 itkCannySegmentationLevelSetImageFilter_h
19#define itkCannySegmentationLevelSetImageFilter_h
20
23
24namespace itk
25{
129template <typename TInputImage, typename TFeatureImage, typename TOutputPixelType = float>
131 : public SegmentationLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType>
132{
133public:
134 ITK_DISALLOW_COPY_AND_MOVE(CannySegmentationLevelSetImageFilter);
135
141
143 using typename Superclass::ValueType;
144 using typename Superclass::OutputImageType;
145 using typename Superclass::FeatureImageType;
146 using typename Superclass::VectorImageType;
147 using typename Superclass::SpeedImageType;
148
151
153
155 itkOverrideGetNameOfClassMacro(CannySegmentationLevelSetImageFilter);
156
158 itkNewMacro(Self);
159
162 void
164 {
165 this->m_CannyFunction->SetThreshold(v);
166 }
167 ScalarValueType
169 {
170 return this->m_CannyFunction->GetThreshold();
171 }
176 void
177 SetVariance(double v)
178 {
179 this->m_CannyFunction->SetVariance(v);
180 }
181 double
183 {
184 return this->m_CannyFunction->GetVariance();
185 }
190 OutputImageType *
192 {
193 return this->m_CannyFunction->GetCannyImage();
194 }
195
196#ifdef ITK_USE_CONCEPT_CHECKING
197 // Begin concept checking
198 itkConceptMacro(OutputHasNumericTraitsCheck, (Concept::HasNumericTraits<TOutputPixelType>));
199 // End concept checking
200#endif
201
202protected:
205
206private:
207 typename CannyFunctionType::Pointer m_CannyFunction{};
208};
209} // end namespace itk
210
211#ifndef ITK_MANUAL_INSTANTIATION
212# include "itkCannySegmentationLevelSetImageFilter.hxx"
213#endif
214
215#endif
A refinement of the standard level-set function which computes a speed term and advection term based ...
Segments structures in images based on image features derived from pseudo-canny-edges.
typename CannyFunctionType::ScalarValueType ScalarValueType
~CannySegmentationLevelSetImageFilter() override=default
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...
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....