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

itkGeodesicActiveContourLevelSetImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkGeodesicActiveContourLevelSetImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2004/06/01 18:33:44 $
00007   Version:   $Revision: 1.10 $
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 __itkGeodesicActiveContourLevelSetImageFilter_h_
00018 #define __itkGeodesicActiveContourLevelSetImageFilter_h_
00019 
00020 #include "itkSegmentationLevelSetImageFilter.h"
00021 #include "itkGeodesicActiveContourLevelSetFunction.h"
00022 
00023 namespace itk {
00024 
00102 template <class TInputImage,
00103           class TFeatureImage,
00104           class TOutputPixelType = float >
00105 class ITK_EXPORT GeodesicActiveContourLevelSetImageFilter
00106   : public SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, 
00107                                             TOutputPixelType>
00108 {
00109 public:
00111   typedef GeodesicActiveContourLevelSetImageFilter Self;
00112   typedef SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, 
00113                                            TOutputPixelType> Superclass;
00114   typedef SmartPointer<Self>  Pointer;
00115   typedef SmartPointer<const Self>  ConstPointer;
00116 
00118   typedef typename Superclass::ValueType ValueType;
00119   typedef typename Superclass::OutputImageType OutputImageType;
00120   typedef typename Superclass::FeatureImageType FeatureImageType;
00121 
00123   typedef GeodesicActiveContourLevelSetFunction<OutputImageType,
00124                                                 FeatureImageType > GeodesicActiveContourFunctionType;
00125   typedef typename GeodesicActiveContourFunctionType::Pointer
00126   GeodesicActiveContourFunctionPointer;
00127 
00129   itkTypeMacro(GeodesicActiveContourLevelSetImageFilter, SegmentationLevelSetImageFilter);
00130 
00132   itkNewMacro(Self);
00133 
00135   void SetDerivativeSigma( float value )
00136   { 
00137     if ( value != m_GeodesicActiveContourFunction->GetDerivativeSigma() )
00138       {
00139       m_GeodesicActiveContourFunction->SetDerivativeSigma( value );
00140       this->Modified();
00141       }
00142   }
00144 
00146   float GetDerivativeSigma() const
00147   { return m_GeodesicActiveContourFunction->GetDerivativeSigma(); }
00148 
00149 protected:
00150   ~GeodesicActiveContourLevelSetImageFilter() {}
00151   GeodesicActiveContourLevelSetImageFilter();
00152 
00153   virtual void PrintSelf(std::ostream &os, Indent indent) const; 
00154 
00155   GeodesicActiveContourLevelSetImageFilter(const Self &); // purposely not implemented
00156   void operator=(const Self&); //purposely not implemented
00157 
00159   void GenerateData();
00160 
00161 private:
00162   GeodesicActiveContourFunctionPointer m_GeodesicActiveContourFunction;
00163 };
00164 
00165 } // end namespace itk
00166 
00167 
00168 
00169 #ifndef ITK_MANUAL_INSTANTIATION
00170 #include "itkGeodesicActiveContourLevelSetImageFilter.txx"
00171 #endif
00172 
00173 #endif
00174 

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