00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkSampleMeanShiftBlurringFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:47 $ 00007 Version: $Revision: 1.4 $ 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 00050 itkTypeMacro(SampleMeanShiftBlurringFilter, SampleAlgorithmBase); 00051 itkNewMacro(Self) ; 00052 00053 itkStaticConstMacro(MeasurementVectorSize, unsigned int, 00054 TSample::MeasurementVectorSize) ; 00055 00056 typedef typename TSample::MeasurementVectorType MeasurementVectorType ; 00057 typedef typename Superclass::InputSampleType InputSampleType ; 00058 typedef ListSample< MeasurementVectorType > OutputType ; 00059 typedef MeanShiftModeSeekerBase< TSample > MeanShiftModeSeekerType ; 00060 00062 void SetMeanShiftModeSeeker(MeanShiftModeSeekerType* function) ; 00063 MeanShiftModeSeekerType* GetMeanShiftModeSeeker() 00064 { return m_ModeSeeker ; } 00065 00067 OutputType* GetOutput() ; 00068 00069 protected: 00070 SampleMeanShiftBlurringFilter() ; 00071 virtual ~SampleMeanShiftBlurringFilter() ; 00072 void PrintSelf(std::ostream& os, Indent indent) const; 00073 00075 void GenerateData() ; 00076 00077 private: 00078 typename OutputType::Pointer m_Output ; 00079 MeanShiftModeSeekerType* m_ModeSeeker ; 00080 } ; // end of class 00081 00082 } // end of namespace Statistics 00083 } // end of namespace itk 00084 00085 #ifndef ITK_MANUAL_INSTANTIATION 00086 #include "itkSampleMeanShiftBlurringFilter.txx" 00087 #endif 00088 00089 #endif 00090