ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkCannySegmentationLevelSetImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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  * http://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,
130  typename TFeatureImage,
131  typename TOutputPixelType = float >
132 class ITK_TEMPLATE_EXPORT CannySegmentationLevelSetImageFilter:
133  public SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >
134 {
135 public:
136  ITK_DISALLOW_COPY_AND_ASSIGN(CannySegmentationLevelSetImageFilter);
137 
140  using Superclass =
144 
146  using ValueType = typename Superclass::ValueType;
147  using OutputImageType = typename Superclass::OutputImageType;
148  using FeatureImageType = typename Superclass::FeatureImageType;
149  using VectorImageType = typename Superclass::VectorImageType;
150  using SpeedImageType = typename Superclass::SpeedImageType;
151 
153  typedef::itk::CannySegmentationLevelSetFunction< OutputImageType,
155 
156  using ScalarValueType = typename CannyFunctionType::ScalarValueType;
157 
160 
162  itkNewMacro(Self);
163 
167  { this->m_CannyFunction->SetThreshold(v); }
169  { return this->m_CannyFunction->GetThreshold(); }
171 
174  void SetVariance(double v)
175  { this->m_CannyFunction->SetVariance(v); }
176  double GetVariance() const
177  { return this->m_CannyFunction->GetVariance(); }
179 
183  { return this->m_CannyFunction->GetCannyImage(); }
184 
185 #ifdef ITK_USE_CONCEPT_CHECKING
186  // Begin concept checking
187  itkConceptMacro( OutputHasNumericTraitsCheck,
189  // End concept checking
190 #endif
191 
192 protected:
193  ~CannySegmentationLevelSetImageFilter() override = default;
195 
196 private:
197  typename CannyFunctionType::Pointer m_CannyFunction;
198 };
199 } // end namespace itk
200 
201 #ifndef ITK_MANUAL_INSTANTIATION
202 #include "itkCannySegmentationLevelSetImageFilter.hxx"
203 #endif
204 
205 #endif
Light weight base class for most itk classes.
typedef::itk::CannySegmentationLevelSetFunction< OutputImageType, FeatureImageType > CannyFunctionType
Segments structures in images based on image features derived from pseudo-canny-edges.
typename CannyFunctionType::ScalarValueType ScalarValueType
#define itkConceptMacro(name, concept)
A base class which defines the API for implementing a special class of image segmentation filters usi...