00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkSampleSelectiveMeanShiftBlurringFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/12/09 16:53:08 $ 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 00018 #ifndef __itkSampleSelectiveMeanShiftBlurringFilter_h 00019 #define __itkSampleSelectiveMeanShiftBlurringFilter_h 00020 00021 #include "itkSampleMeanShiftBlurringFilter.h" 00022 00023 namespace itk{ 00024 namespace Statistics{ 00025 00044 template< class TSample > 00045 class SampleSelectiveMeanShiftBlurringFilter : 00046 public SampleMeanShiftBlurringFilter< TSample > 00047 { 00048 public: 00050 typedef SampleSelectiveMeanShiftBlurringFilter Self; 00051 typedef SampleMeanShiftBlurringFilter< TSample > Superclass ; 00052 typedef SmartPointer<Self> Pointer; 00053 typedef SmartPointer<const Self> ConstPointer; 00054 00056 itkTypeMacro(SampleSelectiveMeanShiftBlurringFilter, 00057 SampleMeanShiftBlurringFilter); 00058 itkNewMacro(Self) ; 00059 00060 itkStaticConstMacro(MeasurementVectorSize, unsigned int, 00061 TSample::MeasurementVectorSize) ; 00062 00063 typedef typename Superclass::MeasurementVectorType MeasurementVectorType ; 00064 typedef typename Superclass::OutputType OutputType ; 00065 typedef typename Superclass::MeanShiftModeSeekerType 00066 MeanShiftModeSeekerType ; 00067 00068 typedef Vector< bool, itkGetStaticConstMacro(MeasurementVectorSize) > 00069 ComponentSelectionsType ; 00070 00073 void SetComponentSelections(ComponentSelectionsType selections) ; 00074 void GetComponentSelections() 00075 { return m_ComponentSelections ; } 00076 00077 protected: 00078 SampleSelectiveMeanShiftBlurringFilter() ; 00079 virtual ~SampleSelectiveMeanShiftBlurringFilter() ; 00080 void PrintSelf(std::ostream& os, Indent indent) const; 00081 00083 void GenerateData() ; 00084 00085 private: 00086 ComponentSelectionsType m_ComponentSelections ; 00087 } ; // end of class 00088 00089 } // end of namespace Statistics 00090 } // end of namespace itk 00091 00092 #ifndef ITK_MANUAL_INSTANTIATION 00093 #include "itkSampleSelectiveMeanShiftBlurringFilter.txx" 00094 #endif 00095 00096 #endif 00097