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

itkSampleMeanShiftBlurringFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkSampleMeanShiftBlurringFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/12/09 16:53:08 $
00007   Version:   $Revision: 1.5 $
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 __itkSampleMeanShiftBlurringFilter_h
00018 #define __itkSampleMeanShiftBlurringFilter_h
00019 
00020 #include "itkSampleAlgorithmBase.h"
00021 #include "itkListSample.h"
00022 #include "itkMeanShiftModeSeekerBase.h"
00023 
00024 namespace itk{ 
00025 namespace Statistics{
00026   
00039 template< class TSample >
00040 class SampleMeanShiftBlurringFilter :
00041     public SampleAlgorithmBase< TSample >
00042 {
00043 public:
00045   typedef SampleMeanShiftBlurringFilter Self ;
00046   typedef SampleAlgorithmBase< TSample > Superclass ;
00047   typedef SmartPointer<Self> Pointer ;
00048   typedef SmartPointer<const Self> ConstPointer;
00049 
00051   itkTypeMacro(SampleMeanShiftBlurringFilter, SampleAlgorithmBase);
00052   itkNewMacro(Self) ;
00053   
00054   itkStaticConstMacro(MeasurementVectorSize, unsigned int,
00055                       TSample::MeasurementVectorSize) ;
00056 
00057   typedef typename TSample::MeasurementVectorType MeasurementVectorType ;
00058   typedef typename Superclass::InputSampleType InputSampleType ;
00059   typedef ListSample< MeasurementVectorType > OutputType ;
00060   typedef MeanShiftModeSeekerBase< TSample > MeanShiftModeSeekerType ;
00061 
00063   void SetMeanShiftModeSeeker(MeanShiftModeSeekerType* function) ;
00064   MeanShiftModeSeekerType* GetMeanShiftModeSeeker()
00065   { return m_ModeSeeker ; }
00066 
00068   OutputType* GetOutput() ;
00069 
00070 protected:
00071   SampleMeanShiftBlurringFilter() ;
00072   virtual ~SampleMeanShiftBlurringFilter() ;
00073   void PrintSelf(std::ostream& os, Indent indent) const;
00074 
00076   void GenerateData() ;
00077 
00078 private:
00079   typename OutputType::Pointer m_Output ;
00080   MeanShiftModeSeekerType* m_ModeSeeker ;
00081 } ; // end of class
00082     
00083 } // end of namespace Statistics 
00084 } // end of namespace itk 
00085 
00086 #ifndef ITK_MANUAL_INSTANTIATION
00087 #include "itkSampleMeanShiftBlurringFilter.txx"
00088 #endif
00089 
00090 #endif
00091 

Generated at Wed Mar 30 00:09:17 2005 for ITK by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2000