ITK  4.8.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 >
133  public SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >
134 {
135 public:
142 
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  CannySegmentationLevelSetImageFilter(const Self &); //purposely not
196  // implemented
197  void operator=(const Self &); //purposely not
198  // implemented
199 
200  typename CannyFunctionType::Pointer m_CannyFunction;
201 };
202 } // end namespace itk
203 
204 #ifndef ITK_MANUAL_INSTANTIATION
205 #include "itkCannySegmentationLevelSetImageFilter.hxx"
206 #endif
207 
208 #endif
Light weight base class for most itk classes.
SegmentationFunctionType::VectorImageType VectorImageType
SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType > Superclass
typedef::itk::CannySegmentationLevelSetFunction< OutputImageType, FeatureImageType > CannyFunctionType
SegmentationFunctionType::ImageType SpeedImageType
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...
Templated n-dimensional image class.
Definition: itkImage.h:75