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 } 00143 00145 float GetDerivativeSigma() const 00146 { return m_GeodesicActiveContourFunction->GetDerivativeSigma(); } 00147 00148 protected: 00149 ~GeodesicActiveContourLevelSetImageFilter() {} 00150 GeodesicActiveContourLevelSetImageFilter(); 00151 00152 virtual void PrintSelf(std::ostream &os, Indent indent) const; 00153 00154 GeodesicActiveContourLevelSetImageFilter(const Self &); // purposely not implemented 00155 void operator=(const Self&); //purposely not implemented 00156 00158 void GenerateData(); 00159 00160 private: 00161 GeodesicActiveContourFunctionPointer m_GeodesicActiveContourFunction; 00162 }; 00163 00164 } // end namespace itk 00165 00166 00167 00168 #ifndef ITK_MANUAL_INSTANTIATION 00169 #include "itkGeodesicActiveContourLevelSetImageFilter.txx" 00170 #endif 00171 00172 #endif