Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkCannySegmentationLevelSetImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkCannySegmentationLevelSetImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006/08/29 15:55:09 $
00007   Version:   $Revision: 1.14 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkCannySegmentationLevelSetImageFilter_h_
00018 #define __itkCannySegmentationLevelSetImageFilter_h_
00019 
00020 #include "itkSegmentationLevelSetImageFilter.h"
00021 #include "itkCannySegmentationLevelSetFunction.h"
00022 
00023 namespace itk {
00024 
00126 template <class TInputImage,
00127           class TFeatureImage,
00128           class TOutputPixelType = float>
00129 class ITK_EXPORT CannySegmentationLevelSetImageFilter
00130   : public SegmentationLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType >
00131 {
00132 public:
00134   typedef CannySegmentationLevelSetImageFilter Self;
00135   typedef  SegmentationLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType >   Superclass;
00136   typedef SmartPointer<Self>  Pointer;
00137   typedef SmartPointer<const Self>  ConstPointer;
00138 
00140   typedef typename Superclass::ValueType ValueType;
00141   typedef typename Superclass::OutputImageType OutputImageType;
00142   typedef typename Superclass::FeatureImageType FeatureImageType;
00143   typedef typename Superclass::VectorImageType VectorImageType;
00144   typedef typename Superclass::SpeedImageType  SpeedImageType;
00145 
00147   typedef ::itk::CannySegmentationLevelSetFunction<OutputImageType,
00148                                                    FeatureImageType> CannyFunctionType;
00149 
00150   typedef typename CannyFunctionType::ScalarValueType ScalarValueType;
00151   
00153   itkTypeMacro(CannySegmenationLevelSetImageFilter, SegmentationLevelSetImageFilter);
00154 
00156   itkNewMacro(Self);
00157 
00160   void SetThreshold(ScalarValueType v)
00161   { this->m_CannyFunction->SetThreshold(v); }
00162   ScalarValueType GetThreshold() const
00163   { return this->m_CannyFunction->GetThreshold(); }
00165 
00168   void SetVariance(double v)
00169   { this->m_CannyFunction->SetVariance(v); }
00170   double GetVariance() const
00171   { return this->m_CannyFunction->GetVariance(); }
00173 
00176   OutputImageType *GetCannyImage(void)
00177     { return this->m_CannyFunction->GetCannyImage(); }
00178 
00179 #ifdef ITK_USE_CONCEPT_CHECKING
00180 
00181   itkConceptMacro(OutputHasNumericTraitsCheck,
00182     (Concept::HasNumericTraits<TOutputPixelType>));
00183 
00185 #endif
00186 
00187 protected:
00188   ~CannySegmentationLevelSetImageFilter() {}
00189   CannySegmentationLevelSetImageFilter();
00190 
00191 private:
00192   CannySegmentationLevelSetImageFilter(const Self&); //purposely not implemented
00193   void operator=(const Self&); //purposely not implemented
00194 
00195   typename CannyFunctionType::Pointer m_CannyFunction;  
00196 };
00197 
00198 } // end namespace itk
00199 
00200 
00201 
00202 #ifndef ITK_MANUAL_INSTANTIATION
00203 #include "itkCannySegmentationLevelSetImageFilter.txx"
00204 #endif
00205 
00206 #endif
00207 

Generated at Sun Sep 23 12:06:38 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000