00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkGeodesicActiveContourShapePriorLevelSetImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003-09-10 14:28:31 $ 00007 Version: $Revision: 1.2 $ 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 __itkGeodesicActiveContourShapePriorLevelSetImageFilter_h_ 00018 #define __itkGeodesicActiveContourShapePriorLevelSetImageFilter_h_ 00019 00020 #include "itkShapePriorSegmentationLevelSetImageFilter.h" 00021 #include "itkGeodesicActiveContourShapePriorLevelSetFunction.h" 00022 #include "itkShapePriorMAPCostFunction.h" 00023 00024 namespace itk { 00025 00108 template <class TInputImage, 00109 class TFeatureImage, 00110 class TOutputPixelType = float > 00111 class ITK_EXPORT GeodesicActiveContourShapePriorLevelSetImageFilter 00112 : public ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, 00113 TOutputPixelType > 00114 { 00115 public: 00117 typedef GeodesicActiveContourShapePriorLevelSetImageFilter Self; 00118 typedef ShapePriorSegmentationLevelSetImageFilter< TInputImage, TFeatureImage, 00119 TOutputPixelType > Superclass; 00120 typedef SmartPointer<Self> Pointer; 00121 typedef SmartPointer<const Self> ConstPointer; 00122 00124 typedef typename Superclass::ValueType ValueType; 00125 typedef typename Superclass::OutputImageType OutputImageType; 00126 typedef typename Superclass::FeatureImageType FeatureImageType; 00127 typedef typename Superclass::OutputPixelType OutputPixelType; 00128 00130 typedef GeodesicActiveContourShapePriorLevelSetFunction< OutputImageType, 00131 FeatureImageType > 00132 GeodesicActiveContourFunctionType; 00133 typedef typename GeodesicActiveContourFunctionType::Pointer 00134 GeodesicActiveContourFunctionPointer; 00135 00136 00138 itkTypeMacro(GeodesicActiveContourShapePriorLevelSetImageFilter, 00139 ShapePriorSegmentationLevelSetImageFilter); 00140 00142 itkNewMacro(Self); 00143 00145 void SetDerivativeSigma( float value ) 00146 { 00147 if ( value != m_GeodesicActiveContourFunction->GetDerivativeSigma() ) 00148 { 00149 m_GeodesicActiveContourFunction->SetDerivativeSigma( value ); 00150 this->Modified(); 00151 } 00152 } 00154 00156 float GetDerivativeSigma() const 00157 { return m_GeodesicActiveContourFunction->GetDerivativeSigma(); } 00158 00159 protected: 00160 ~GeodesicActiveContourShapePriorLevelSetImageFilter() {} 00161 GeodesicActiveContourShapePriorLevelSetImageFilter(); 00162 00163 virtual void PrintSelf(std::ostream &os, Indent indent) const; 00164 00165 GeodesicActiveContourShapePriorLevelSetImageFilter(const Self &); // purposely not implemented 00166 void operator=(const Self&); //purposely not implemented 00167 00170 void GenerateData(); 00171 00172 private: 00173 GeodesicActiveContourFunctionPointer m_GeodesicActiveContourFunction; 00174 00175 }; 00176 00177 } // end namespace itk 00178 00179 00180 00181 #ifndef ITK_MANUAL_INSTANTIATION 00182 #include "itkGeodesicActiveContourShapePriorLevelSetImageFilter.txx" 00183 #endif 00184 00185 #endif 00186