00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkSampleMeanShiftBlurringFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2005/07/26 15:55:04 $ 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 __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) ; 00060 00061 00062 typedef typename TSample::MeasurementVectorType MeasurementVectorType ; 00063 typedef typename Superclass::InputSampleType InputSampleType ; 00064 typedef ListSample< MeasurementVectorType > OutputType ; 00065 typedef MeanShiftModeSeekerBase< TSample > MeanShiftModeSeekerType ; 00066 00068 void SetMeanShiftModeSeeker(MeanShiftModeSeekerType* function) ; 00069 MeanShiftModeSeekerType* GetMeanShiftModeSeeker() 00070 { return m_ModeSeeker ; } 00071 00073 OutputType* GetOutput() ; 00074 00075 protected: 00076 SampleMeanShiftBlurringFilter() ; 00077 virtual ~SampleMeanShiftBlurringFilter() ; 00078 void PrintSelf(std::ostream& os, Indent indent) const; 00079 00081 void GenerateData() ; 00082 00083 private: 00084 typename OutputType::Pointer m_Output ; 00085 MeanShiftModeSeekerType* m_ModeSeeker ; 00086 } ; // end of class 00087 00088 } // end of namespace Statistics 00089 } // end of namespace itk 00090 00091 #ifndef ITK_MANUAL_INSTANTIATION 00092 #include "itkSampleMeanShiftBlurringFilter.txx" 00093 #endif 00094 00095 #endif 00096