ITK  4.4.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< class TInputImage,
130  class TFeatureImage,
131  class TOutputPixelType = float >
133  public SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, TOutputPixelType >
134 {
135 public:
142 
144  typedef typename Superclass::ValueType ValueType;
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 
164  void SetThreshold(ScalarValueType v)
165  { this->m_CannyFunction->SetThreshold(v); }
166  ScalarValueType GetThreshold() const
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 
180  OutputImageType * GetCannyImage(void)
181  { return this->m_CannyFunction->GetCannyImage(); }
182 
183 #ifdef ITK_USE_CONCEPT_CHECKING
184 
185  itkConceptMacro( OutputHasNumericTraitsCheck,
187 
189 #endif
190 
191 protected:
194 
195 private:
196  CannySegmentationLevelSetImageFilter(const Self &); //purposely not
197  // implemented
198  void operator=(const Self &); //purposely not
199  // implemented
200 
201  typename CannyFunctionType::Pointer m_CannyFunction;
202 };
203 } // end namespace itk
204 
205 #ifndef ITK_MANUAL_INSTANTIATION
206 #include "itkCannySegmentationLevelSetImageFilter.hxx"
207 #endif
208 
209 #endif
210