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: 2002/10/21 18:30:22 $
00007   Version:   $Revision: 1.5 $
00008 
00009   Copyright (c) 2002 Insight 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, class TOutputImage>
00081 class ITK_EXPORT ThresholdSegmentationLevelSetImageFilter
00082   : public SegmentationLevelSetImageFilter<TInputImage, TOutputImage>
00083 {
00084 public:
00086   typedef ThresholdSegmentationLevelSetImageFilter Self;
00087   typedef SegmentationLevelSetImageFilter<TInputImage, TOutputImage> Superclass;
00088   typedef SmartPointer<Self>  Pointer;
00089   typedef SmartPointer<const Self>  ConstPointer;
00090 
00092   typedef typename Superclass::ValueType ValueType;
00093 
00095   typedef ThresholdSegmentationLevelSetFunction<TOutputImage> ThresholdFunctionType;
00096   
00098   itkTypeMacro(ThresholdSegmentationLevelSetImageFilter, SegmentationLevelSetImageFilter);
00099 
00101   itkNewMacro(Self);
00102   
00104   void SetUpperThreshold(ValueType v)
00105   {
00106     m_ThresholdFunction->SetUpperThreshold(v);
00107     this->Modified();
00108   }
00109   void SetLowerThreshold(ValueType v)
00110   {
00111     m_ThresholdFunction->SetLowerThreshold(v);
00112     this->Modified();
00113   }
00114   ValueType GetUpperThreshold() const
00115   {
00116     return m_ThresholdFunction->GetUpperThreshold();
00117   }
00118   ValueType GetLowerThreshold() const
00119   {
00120     return m_ThresholdFunction->GetLowerThreshold();
00121   }
00122   
00123 protected:
00124   ~ThresholdSegmentationLevelSetImageFilter() {}
00125   ThresholdSegmentationLevelSetImageFilter();
00126 
00127   virtual void PrintSelf(std::ostream &os, Indent indent) const; 
00128 
00129   ThresholdSegmentationLevelSetImageFilter(const Self &); // purposely not impl.
00130    void operator=(const Self&); //purposely not implemented
00131 private:
00132   typename ThresholdFunctionType::Pointer m_ThresholdFunction;  
00133 };
00134 
00135 } // end namespace itk
00136 
00137 
00138 
00139 #ifndef ITK_MANUAL_INSTANTIATION
00140 #include "itkThresholdSegmentationLevelSetImageFilter.txx"
00141 #endif
00142 
00143 #endif

Generated at Wed Mar 12 01:13:11 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000