00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkSampleSelectiveMeanShiftBlurringFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2005/07/26 15:55:05 $ 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 00018 #ifndef __itkSampleSelectiveMeanShiftBlurringFilter_h 00019 #define __itkSampleSelectiveMeanShiftBlurringFilter_h 00020 00021 #include "itkSampleMeanShiftBlurringFilter.h" 00022 #include "itkArray.h" 00023 #include <vector> 00024 00025 namespace itk{ 00026 namespace Statistics{ 00027 00054 template< class TSample > 00055 class SampleSelectiveMeanShiftBlurringFilter : 00056 public SampleMeanShiftBlurringFilter< TSample > 00057 { 00058 public: 00060 typedef SampleSelectiveMeanShiftBlurringFilter Self; 00061 typedef SampleMeanShiftBlurringFilter< TSample > Superclass ; 00062 typedef SmartPointer<Self> Pointer; 00063 typedef SmartPointer<const Self> ConstPointer; 00064 00066 itkTypeMacro(SampleSelectiveMeanShiftBlurringFilter, 00067 SampleMeanShiftBlurringFilter); 00068 itkNewMacro(Self) ; 00070 00071 typedef typename Superclass::MeasurementVectorType MeasurementVectorType ; 00072 typedef typename Superclass::OutputType OutputType ; 00073 typedef typename Superclass::MeanShiftModeSeekerType 00074 MeanShiftModeSeekerType ; 00075 00076 00078 typedef std::vector< bool > ComponentSelectionsType; 00079 00082 void SetComponentSelections(ComponentSelectionsType selections) ; 00083 void GetComponentSelections() 00084 { return m_ComponentSelections ; } 00086 00087 protected: 00088 SampleSelectiveMeanShiftBlurringFilter() ; 00089 virtual ~SampleSelectiveMeanShiftBlurringFilter() ; 00090 void PrintSelf(std::ostream& os, Indent indent) const; 00091 00093 void GenerateData() ; 00094 00095 private: 00096 ComponentSelectionsType m_ComponentSelections ; 00097 } ; // end of class 00098 00099 } // end of namespace Statistics 00100 } // end of namespace itk 00101 00102 #ifndef ITK_MANUAL_INSTANTIATION 00103 #include "itkSampleSelectiveMeanShiftBlurringFilter.txx" 00104 #endif 00105 00106 #endif 00107 00108