ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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 }
172
173
176 void
177 SetVariance(double v)
178 {
179 this->m_CannyFunction->SetVariance(v);
180 }
181 double
183 {
184 return this->m_CannyFunction->GetVariance();
185 }
186
187
190 OutputImageType *
192 {
193 return this->m_CannyFunction->GetCannyImage();
194 }
195
196 itkConceptMacro(OutputHasNumericTraitsCheck, (Concept::HasNumericTraits<TOutputPixelType>));
197
198protected:
201
202private:
204};
205} // end namespace itk
206
207#ifndef ITK_MANUAL_INSTANTIATION
208# include "itkCannySegmentationLevelSetImageFilter.hxx"
209#endif
210
211#endif
A refinement of the standard level-set function which computes a speed term and advection term based ...
typename CannyFunctionType::ScalarValueType ScalarValueType
itk::CannySegmentationLevelSetFunction< OutputImageType, FeatureImageType > CannyFunctionType
SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType > Superclass
~CannySegmentationLevelSetImageFilter() override=default
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....