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

itkNarrowBandThresholdSegmentationLevelSetImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkNarrowBandThresholdSegmentationLevelSetImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-26 21:45:53 $
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 __itkNarrowBandThresholdSegmentationLevelSetImageFilter_h
00018 #define __itkNarrowBandThresholdSegmentationLevelSetImageFilter_h
00019 
00020 #include "itkNarrowBandLevelSetImageFilter.h"
00021 #include "itkThresholdSegmentationLevelSetFunction.h"
00022 
00023 namespace itk {
00024 
00081 template <class TInputImage,
00082           class TFeatureImage,
00083           class TOutputPixelType = float >
00084 class ITK_EXPORT NarrowBandThresholdSegmentationLevelSetImageFilter
00085   : public NarrowBandLevelSetImageFilter<TInputImage, TFeatureImage,
00086                                          TOutputPixelType, Image<TOutputPixelType,
00087                       ::itk::GetImageDimension<TInputImage>::ImageDimension> >
00088 {
00089 public:
00091   typedef NarrowBandThresholdSegmentationLevelSetImageFilter Self;
00092   typedef  NarrowBandLevelSetImageFilter<TInputImage, TFeatureImage, TOutputPixelType,
00093    Image<TOutputPixelType, ::itk::GetImageDimension<TInputImage>::ImageDimension> >                                                         Superclass;
00094   typedef SmartPointer<Self>                                 Pointer;
00095   typedef SmartPointer<const Self>                           ConstPointer;
00096 
00098   typedef typename Superclass::ValueType        ValueType;
00099   typedef typename Superclass::OutputImageType  OutputImageType;
00100   typedef typename Superclass::FeatureImageType FeatureImageType;
00101 
00103   typedef ThresholdSegmentationLevelSetFunction<OutputImageType,
00104                                         FeatureImageType> ThresholdFunctionType;
00105   typedef typename ThresholdFunctionType::Pointer ThresholdFunctionPointer;
00106 
00108   itkTypeMacro(NarrowBandThresholdSegmentationLevelSetImageFilter, NarrowBandLevelSetImageFilter);
00109 
00111   itkNewMacro(Self);
00112 
00114   void SetUpperThreshold(ValueType v)
00115     {
00116     this->m_ThresholdFunction->SetUpperThreshold(v);
00117     this->Modified();
00118     }
00119   void SetLowerThreshold(ValueType v)
00120     {
00121     this->m_ThresholdFunction->SetLowerThreshold(v);
00122     this->Modified();
00123     }
00124   ValueType GetUpperThreshold() const
00125     {
00126     return m_ThresholdFunction->GetUpperThreshold();
00127     }
00128   ValueType GetLowerThreshold() const
00129     {
00130     return m_ThresholdFunction->GetLowerThreshold();
00131     }
00133 
00136   void SetEdgeWeight(ValueType v)
00137     {
00138     this->m_ThresholdFunction->SetEdgeWeight(v);
00139     this->Modified();
00140     }
00141   ValueType GetEdgeWeight() const
00142     {
00143     return m_ThresholdFunction->GetEdgeWeight();
00144     }
00146 
00150   void SetSmoothingIterations(int v)
00151     {
00152     this->m_ThresholdFunction->SetSmoothingIterations(v);
00153     this->Modified();
00154     }
00155   int GetSmoothingIterations() const
00156     {
00157     return m_ThresholdFunction->GetSmoothingIterations();
00158     }
00160 
00164   void SetSmoothingTimeStep(ValueType v)
00165     {
00166     this->m_ThresholdFunction->SetSmoothingTimeStep(v);
00167     this->Modified();
00168     }
00169   ValueType GetSmoothingTimeStep() const
00170     {
00171     return m_ThresholdFunction->GetSmoothingTimeStep();
00172     }
00174 
00178   void SetSmoothingConductance(ValueType v)
00179     {
00180     this->m_ThresholdFunction->SetSmoothingConductance(v);
00181     this->Modified();
00182     }
00183   ValueType GetSmoothingConductance() const
00184     {
00185     return m_ThresholdFunction->GetSmoothingConductance();
00186     }
00188 
00189 #ifdef ITK_USE_CONCEPT_CHECKING
00190 
00191   itkConceptMacro(OutputHasNumericTraitsCheck,
00192                   (Concept::HasNumericTraits<TOutputPixelType>));
00193 
00195 #endif
00196 
00197 protected:
00198   ~NarrowBandThresholdSegmentationLevelSetImageFilter() {}
00199   NarrowBandThresholdSegmentationLevelSetImageFilter();
00200   
00201   virtual void PrintSelf(std::ostream &os, Indent indent) const; 
00202   
00203   NarrowBandThresholdSegmentationLevelSetImageFilter(const Self &); // purposely not impl.
00204   void operator=(const Self&); //purposely not implemented
00205 private:
00206   ThresholdFunctionPointer m_ThresholdFunction;
00207 };
00208 
00209 } // end namespace itk
00210 
00211 #ifndef ITK_MANUAL_INSTANTIATION
00212 #include "itkNarrowBandThresholdSegmentationLevelSetImageFilter.txx"
00213 #endif
00214 
00215 #endif
00216 

Generated at Mon Jul 12 2010 19:15:56 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000