ITK  4.13.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:
142 
144  typedef typename Superclass::ValueType ValueType;
145  typedef typename Superclass::OutputImageType OutputImageType;
146  typedef typename Superclass::FeatureImageType FeatureImageType;
147  typedef typename Superclass::VectorImageType VectorImageType;
148  typedef typename Superclass::SpeedImageType SpeedImageType;
149 
151  typedef::itk::CannySegmentationLevelSetFunction< OutputImageType,
153 
154  typedef typename CannyFunctionType::ScalarValueType ScalarValueType;
155 
158 
160  itkNewMacro(Self);
161 
165  { this->m_CannyFunction->SetThreshold(v); }
167  { return this->m_CannyFunction->GetThreshold(); }
169 
172  void SetVariance(double v)
173  { this->m_CannyFunction->SetVariance(v); }
174  double GetVariance() const
175  { return this->m_CannyFunction->GetVariance(); }
177 
181  { return this->m_CannyFunction->GetCannyImage(); }
182 
183 #ifdef ITK_USE_CONCEPT_CHECKING
184  // Begin concept checking
185  itkConceptMacro( OutputHasNumericTraitsCheck,
187  // End concept checking
188 #endif
189 
190 protected:
193 
194 private:
195  ITK_DISALLOW_COPY_AND_ASSIGN(CannySegmentationLevelSetImageFilter);
196 
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.
SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType > Superclass
typedef::itk::CannySegmentationLevelSetFunction< OutputImageType, FeatureImageType > CannyFunctionType
Segments structures in images based on image features derived from pseudo-canny-edges.
#define itkConceptMacro(name, concept)
A base class which defines the API for implementing a special class of image segmentation filters usi...