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 
24 namespace itk
25 {
129 template <typename TInputImage, typename TFeatureImage, typename TOutputPixelType = float>
130 class ITK_TEMPLATE_EXPORT CannySegmentationLevelSetImageFilter
131  : public SegmentationLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType>
132 {
133 public:
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
168  GetThreshold() const
169  {
170  return this->m_CannyFunction->GetThreshold();
171  }
176  void
177  SetVariance(double v)
178  {
179  this->m_CannyFunction->SetVariance(v);
180  }
181  double
182  GetVariance() const
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 
202 protected:
203  ~CannySegmentationLevelSetImageFilter() override = default;
205 
206 private:
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
itk::SegmentationLevelSetImageFilter
A base class which defines the API for implementing a special class of image segmentation filters usi...
Definition: itkSegmentationLevelSetImageFilter.h:144
itk::CannySegmentationLevelSetImageFilter::GetVariance
double GetVariance() const
Definition: itkCannySegmentationLevelSetImageFilter.h:182
itk::Concept::HasNumericTraits
Definition: itkConceptChecking.h:717
itkCannySegmentationLevelSetFunction.h
itk::CannySegmentationLevelSetImageFilter
Segments structures in images based on image features derived from pseudo-canny-edges.
Definition: itkCannySegmentationLevelSetImageFilter.h:130
itk::SmartPointer< Self >
itk::CannySegmentationLevelSetImageFilter::ScalarValueType
typename CannyFunctionType::ScalarValueType ScalarValueType
Definition: itkCannySegmentationLevelSetImageFilter.h:152
itkSegmentationLevelSetImageFilter.h
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itk::CannySegmentationLevelSetImageFilter::SetThreshold
void SetThreshold(ScalarValueType v)
Definition: itkCannySegmentationLevelSetImageFilter.h:163
itk::CannySegmentationLevelSetFunction
A refinement of the standard level-set function which computes a speed term and advection term based ...
Definition: itkCannySegmentationLevelSetFunction.h:35
itk::CannySegmentationLevelSetImageFilter::SetVariance
void SetVariance(double v)
Definition: itkCannySegmentationLevelSetImageFilter.h:177
itk::LevelSetFunction::ScalarValueType
PixelType ScalarValueType
Definition: itkLevelSetFunction.h:90
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:65
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::CannySegmentationLevelSetImageFilter::GetThreshold
ScalarValueType GetThreshold() const
Definition: itkCannySegmentationLevelSetImageFilter.h:168
itk::CannySegmentationLevelSetImageFilter::GetCannyImage
OutputImageType * GetCannyImage()
Definition: itkCannySegmentationLevelSetImageFilter.h:191