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: 2008-12-21 19:13:12 $
00007   Version:   $Revision: 1.11 $
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
00112                                     Self;
00113   typedef SegmentationLevelSetImageFilter< TInputImage, TFeatureImage, 
00114                                            TOutputPixelType>
00115                                     Superclass;
00116   typedef SmartPointer<Self>        Pointer;
00117   typedef SmartPointer<const Self>  ConstPointer;
00118 
00120   typedef typename Superclass::ValueType        ValueType;
00121   typedef typename Superclass::OutputImageType  OutputImageType;
00122   typedef typename Superclass::FeatureImageType FeatureImageType;
00123 
00125   typedef GeodesicActiveContourLevelSetFunction<OutputImageType,
00126                                                 FeatureImageType > GeodesicActiveContourFunctionType;
00127   typedef typename GeodesicActiveContourFunctionType::Pointer
00128   GeodesicActiveContourFunctionPointer;
00129 
00131   itkTypeMacro(GeodesicActiveContourLevelSetImageFilter, SegmentationLevelSetImageFilter);
00132 
00134   itkNewMacro(Self);
00135 
00138   void SetDerivativeSigma( float value )
00139     { 
00140     if ( value != m_GeodesicActiveContourFunction->GetDerivativeSigma() )
00141       {
00142       m_GeodesicActiveContourFunction->SetDerivativeSigma( value );
00143       this->Modified();
00144       }
00145     }
00147 
00149   float GetDerivativeSigma() const
00150     { return m_GeodesicActiveContourFunction->GetDerivativeSigma(); }
00151 
00152 protected:
00153   ~GeodesicActiveContourLevelSetImageFilter() {}
00154   GeodesicActiveContourLevelSetImageFilter();
00155 
00156   virtual void PrintSelf(std::ostream &os, Indent indent) const; 
00157 
00158   GeodesicActiveContourLevelSetImageFilter(const Self &); // purposely not implemented
00159   void operator=(const Self&); //purposely not implemented
00160 
00162   void GenerateData();
00163 
00164 private:
00165   GeodesicActiveContourFunctionPointer m_GeodesicActiveContourFunction;
00166 };
00167 
00168 } // end namespace itk
00169 
00170 #ifndef ITK_MANUAL_INSTANTIATION
00171 #include "itkGeodesicActiveContourLevelSetImageFilter.txx"
00172 #endif
00173 
00174 #endif
00175 

Generated at Mon Jul 12 2010 18:24:25 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000