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: 2009-03-04 19:29:54 $
00007   Version:   $Revision: 1.7 $
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   
00046 template< class TSample >
00047 class SampleMeanShiftBlurringFilter :
00048     public SampleAlgorithmBase< TSample >
00049 {
00050 public:
00052   typedef SampleMeanShiftBlurringFilter  Self;
00053   typedef SampleAlgorithmBase< TSample > Superclass;
00054   typedef SmartPointer<Self>             Pointer;
00055   typedef SmartPointer<const Self>       ConstPointer;
00056 
00058   itkTypeMacro(SampleMeanShiftBlurringFilter, SampleAlgorithmBase);
00059   itkNewMacro(Self);
00061 
00062 
00063   typedef typename TSample::MeasurementVectorType MeasurementVectorType;
00064   typedef typename Superclass::InputSampleType    InputSampleType;
00065   typedef ListSample< MeasurementVectorType >     OutputType;
00066   typedef MeanShiftModeSeekerBase< TSample >      MeanShiftModeSeekerType;
00067 
00069   void SetMeanShiftModeSeeker(MeanShiftModeSeekerType* function);
00070   MeanShiftModeSeekerType* GetMeanShiftModeSeeker()
00071     { return m_ModeSeeker; }
00073 
00075   OutputType* GetOutput();
00076 
00077 protected:
00078   SampleMeanShiftBlurringFilter();
00079   virtual ~SampleMeanShiftBlurringFilter();
00080   void PrintSelf(std::ostream& os, Indent indent) const;
00081 
00083   void GenerateData();
00084 
00085 private:
00086   typename OutputType::Pointer m_Output;
00087   MeanShiftModeSeekerType*     m_ModeSeeker;
00088 }; // end of class
00089     
00090 } // end of namespace Statistics 
00091 } // end of namespace itk 
00092 
00093 #ifndef ITK_MANUAL_INSTANTIATION
00094 #include "itkSampleMeanShiftBlurringFilter.txx"
00095 #endif
00096 
00097 #endif
00098 

Generated at Thu May 28 11:26:32 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000