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

itkVectorThresholdSegmentationLevelSetImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkVectorThresholdSegmentationLevelSetImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-27 19:30:16 $
00007   Version:   $Revision: 1.6 $
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 __itkVectorThresholdSegmentationLevelSetImageFilter_h
00018 #define __itkVectorThresholdSegmentationLevelSetImageFilter_h
00019 
00020 #include "itkSegmentationLevelSetImageFilter.h"
00021 #include "itkVectorThresholdSegmentationLevelSetFunction.h"
00022 
00023 namespace itk {
00024 
00085 template <class TInputImage,
00086           class TFeatureImage,
00087           class TOutputPixelType = float >
00088 class ITK_EXPORT VectorThresholdSegmentationLevelSetImageFilter
00089   : public SegmentationLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType >
00090 {
00091 public:
00093   typedef VectorThresholdSegmentationLevelSetImageFilter Self;
00094   typedef  SegmentationLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType>
00095                                                          Superclass;
00096   typedef SmartPointer<Self>                             Pointer;
00097   typedef SmartPointer<const Self>                       ConstPointer;
00098 
00100   typedef typename Superclass::ValueType        ValueType;
00101   typedef typename Superclass::OutputImageType  OutputImageType;
00102   typedef typename Superclass::FeatureImageType FeatureImageType;
00103 
00105   typedef VectorThresholdSegmentationLevelSetFunction<OutputImageType,FeatureImageType>
00106                                                                ThresholdFunctionType;
00107   typedef typename ThresholdFunctionType::Pointer              ThresholdFunctionPointer;
00108   typedef typename ThresholdFunctionType::MeanVectorType       MeanVectorType;
00109   typedef typename ThresholdFunctionType::CovarianceMatrixType CovarianceMatrixType;
00110   typedef typename ThresholdFunctionType::ScalarValueType      ScalarValueType;
00111 
00113   itkTypeMacro(VectorThresholdSegmentationLevelSetImageFilter, SegmentationLevelSetImageFilter);
00114 
00116   itkNewMacro(Self);
00117 
00119   void SetMean(const MeanVectorType &mean) 
00120     {  
00121     m_ThresholdFunction->SetMean(mean);
00122     this->Modified();
00123     }
00124   const MeanVectorType & GetMean() const 
00125     {  
00126     return m_ThresholdFunction->GetMean();
00127     }
00129 
00130   void SetCovariance(const CovarianceMatrixType &cov) 
00131     { 
00132     m_ThresholdFunction->SetCovariance(cov);
00133     this->Modified();
00134     }
00135   const CovarianceMatrixType & GetCovariance() const
00136     { 
00137     return m_ThresholdFunction->GetCovariance();
00138     }
00139 
00141   void SetThreshold(ScalarValueType thr) 
00142     {
00143     m_ThresholdFunction->SetThreshold(thr);
00144     this->Modified();
00145     }
00146   ScalarValueType GetThreshold ()
00147     {
00148     return m_ThresholdFunction->GetThreshold();
00149     }
00151 
00152 protected:
00153   ~VectorThresholdSegmentationLevelSetImageFilter() {}
00154   VectorThresholdSegmentationLevelSetImageFilter();
00155 
00156   virtual void PrintSelf(std::ostream &os, Indent indent) const; 
00157 
00158   VectorThresholdSegmentationLevelSetImageFilter(const Self &); // purposely not impl.
00159   void operator=(const Self&); //purposely not implemented
00160 private:
00161   ThresholdFunctionPointer m_ThresholdFunction;
00162 };
00163 
00164 } // end namespace itk
00165 
00166 #ifndef ITK_MANUAL_INSTANTIATION
00167 #include "itkVectorThresholdSegmentationLevelSetImageFilter.txx"
00168 #endif
00169 
00170 #endif
00171 

Generated at Mon Jul 12 2010 20:13:50 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000