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

itkThresholdSegmentationLevelSetImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkThresholdSegmentationLevelSetImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-27 19:30:16 $
00007   Version:   $Revision: 1.20 $
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 __itkThresholdSegmentationLevelSetImageFilter_h
00018 #define __itkThresholdSegmentationLevelSetImageFilter_h
00019 
00020 #include "itkSegmentationLevelSetImageFilter.h"
00021 #include "itkThresholdSegmentationLevelSetFunction.h"
00022 
00023 namespace itk {
00024 
00080 template <class TInputImage,
00081           class TFeatureImage,
00082           class TOutputPixelType = float >
00083 class ITK_EXPORT ThresholdSegmentationLevelSetImageFilter
00084   : public SegmentationLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType >
00085 {
00086 public:
00088   typedef ThresholdSegmentationLevelSetImageFilter Self;
00089   typedef  SegmentationLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType >
00090                                                    Superclass;
00091   typedef SmartPointer<Self>                       Pointer;
00092   typedef SmartPointer<const Self>                 ConstPointer;
00093 
00095   typedef typename Superclass::ValueType        ValueType;
00096   typedef typename Superclass::OutputImageType  OutputImageType;
00097   typedef typename Superclass::FeatureImageType FeatureImageType;
00098 
00100   typedef ThresholdSegmentationLevelSetFunction<OutputImageType,
00101                                                 FeatureImageType> ThresholdFunctionType;
00102   typedef typename ThresholdFunctionType::Pointer ThresholdFunctionPointer;
00103 
00105   itkTypeMacro(ThresholdSegmentationLevelSetImageFilter, SegmentationLevelSetImageFilter);
00106 
00108   itkNewMacro(Self);
00109 
00111   void SetUpperThreshold(ValueType v)
00112     {
00113     this->m_ThresholdFunction->SetUpperThreshold(v);
00114     this->Modified();
00115     }
00116   void SetLowerThreshold(ValueType v)
00117     {
00118     this->m_ThresholdFunction->SetLowerThreshold(v);
00119     this->Modified();
00120     }
00121   ValueType GetUpperThreshold() const
00122     {
00123     return m_ThresholdFunction->GetUpperThreshold();
00124     }
00125   ValueType GetLowerThreshold() const
00126     {
00127     return m_ThresholdFunction->GetLowerThreshold();
00128     }
00130 
00133   void SetEdgeWeight(ValueType v)
00134     {
00135     this->m_ThresholdFunction->SetEdgeWeight(v);
00136     this->Modified();
00137     }
00138   ValueType GetEdgeWeight() const
00139     {
00140     return m_ThresholdFunction->GetEdgeWeight();
00141     }
00143 
00147   void SetSmoothingIterations(int v)
00148     {
00149     this->m_ThresholdFunction->SetSmoothingIterations(v);
00150     this->Modified();
00151     }
00152   int GetSmoothingIterations() const
00153     {
00154     return m_ThresholdFunction->GetSmoothingIterations();
00155     }
00157 
00161   void SetSmoothingTimeStep(ValueType v)
00162     {
00163     this->m_ThresholdFunction->SetSmoothingTimeStep(v);
00164     this->Modified();
00165     }
00166   ValueType GetSmoothingTimeStep() const
00167     {
00168     return m_ThresholdFunction->GetSmoothingTimeStep();
00169     }
00171 
00175   void SetSmoothingConductance(ValueType v)
00176     {
00177     this->m_ThresholdFunction->SetSmoothingConductance(v);
00178     this->Modified();
00179     }
00180   ValueType GetSmoothingConductance() const
00181     {
00182     return m_ThresholdFunction->GetSmoothingConductance();
00183     } 
00185 
00186 protected:
00187   ~ThresholdSegmentationLevelSetImageFilter() {}
00188   ThresholdSegmentationLevelSetImageFilter();
00189 
00190   virtual void PrintSelf(std::ostream &os, Indent indent) const; 
00191 
00192   ThresholdSegmentationLevelSetImageFilter(const Self &); // purposely not impl.
00193   void operator=(const Self&); //purposely not implemented
00194 private:
00195   ThresholdFunctionPointer m_ThresholdFunction;
00196 };
00197 
00198 } // end namespace itk
00199 
00200 #ifndef ITK_MANUAL_INSTANTIATION
00201 #include "itkThresholdSegmentationLevelSetImageFilter.txx"
00202 #endif
00203 
00204 #endif
00205 

Generated at Sat Feb 28 13:40:11 2009 for ITK by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2000