00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkScalarChanAndVeseLevelSetFunctionData.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009-05-14 21:46:50 $ 00007 Version: $Revision: 1.1 $ 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 00018 #ifndef __itkScalarChanAndVeseLevelSetFunctionData_h 00019 #define __itkScalarChanAndVeseLevelSetFunctionData_h 00020 00021 #include "itkRegionBasedLevelSetFunctionData.h" 00022 00023 namespace itk 00024 { 00025 00060 template < class TInputImage, class TFeatureImage > 00061 class ScalarChanAndVeseLevelSetFunctionData : 00062 public RegionBasedLevelSetFunctionData< TInputImage, TFeatureImage > 00063 { 00064 public: 00065 00066 typedef ScalarChanAndVeseLevelSetFunctionData Self; 00067 typedef RegionBasedLevelSetFunctionData< TInputImage, TFeatureImage > Superclass; 00068 typedef SmartPointer<Self> Pointer; 00069 typedef SmartPointer<const Self> ConstPointer; 00070 00071 itkStaticConstMacro( ImageDimension, unsigned int, TFeatureImage::ImageDimension ); 00072 00074 itkNewMacro( Self ); 00075 00076 itkTypeMacro(ScalarChanAndVeseLevelSetFunctionData, RegionBasedLevelSetFunctionData ); 00077 00078 typedef TInputImage InputImageType; 00079 typedef typename Superclass::InputImagePointer InputImagePointer; 00080 typedef typename Superclass::InputImageConstPointer InputImageConstPointer; 00081 typedef typename Superclass::InputPixelType InputPixelType; 00082 typedef typename Superclass::InputRegionType InputRegionType; 00083 typedef typename Superclass::InputSizeType InputSizeType; 00084 typedef typename Superclass::InputSizeValueType InputSizeValueType; 00085 typedef typename Superclass::InputSpacingType InputSpacingType; 00086 typedef typename Superclass::InputIndexType InputIndexType; 00087 typedef typename Superclass::InputIndexValueType InputIndexValueType; 00088 typedef typename Superclass::InputPointType InputPointType; 00089 00090 typedef TFeatureImage FeatureImageType; 00091 typedef typename Superclass::FeatureImagePointer FeatureImagePointer; 00092 typedef typename Superclass::FeatureImageConstPointer FeatureImageConstPointer; 00093 typedef typename Superclass::FeaturePixelType FeaturePixelType; 00094 typedef typename Superclass::FeatureRegionType FeatureRegionType; 00095 typedef typename Superclass::FeatureSizeType FeatureSizeType; 00096 typedef typename Superclass::FeatureSizeValueType FeatureSizeValueType; 00097 typedef typename Superclass::FeatureSpacingType FeatureSpacingType; 00098 typedef typename Superclass::FeatureIndexType FeatureIndexType; 00099 typedef typename Superclass::FeaturePointType FeaturePointType; 00100 00101 double m_BackgroundConstantValues; 00102 double m_ForegroundConstantValues; 00103 double m_WeightedSumOfPixelValuesInsideLevelSet; 00104 double m_WeightedSumOfPixelValuesOutsideLevelSet; 00105 00106 protected: 00107 ScalarChanAndVeseLevelSetFunctionData() : Superclass() 00108 { 00109 m_BackgroundConstantValues = 0.; 00110 m_ForegroundConstantValues = 0.; 00111 m_WeightedSumOfPixelValuesInsideLevelSet = 0.; 00112 m_WeightedSumOfPixelValuesOutsideLevelSet = 0.; 00113 } 00114 virtual ~ScalarChanAndVeseLevelSetFunctionData() {} 00115 00116 private: 00117 ScalarChanAndVeseLevelSetFunctionData(const Self&); //purposely not implemented 00118 void operator=(const Self&); //purposely not implemented 00119 }; 00120 00121 } //end namespace itk 00122 00123 #endif 00124