Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

Review/Statistics/itkNeighborhoodSampler.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkNeighborhoodSampler.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-02 05:43:58 $
00007   Version:   $Revision: 1.1 $
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 __itkNeighborhoodSampler_h
00018 #define __itkNeighborhoodSampler_h
00019 
00020 #include "itkSampleToSubsampleFilter.h"
00021 #include "itkSimpleDataObjectDecorator.h"
00022 
00023 namespace itk {
00024 namespace Statistics {
00025 
00040 template< class TSample >
00041 class ITK_EXPORT NeighborhoodSampler : public SampleToSubsampleFilter< TSample >
00042 {
00043 public:
00045   typedef NeighborhoodSampler                    Self;
00046   typedef SampleToSubsampleFilter< TSample >     Superclass;
00047   typedef SmartPointer< Self >                   Pointer;
00048   typedef SmartPointer< const Self >             ConstPointer;
00049 
00051   itkTypeMacro(NeighborhoodSampler, SampleToSubsampleFilter);
00052   itkNewMacro(Self);
00054 
00057   itkSuperclassTraitMacro( SampleType )
00058   itkSuperclassTraitMacro( MeasurementVectorType )
00059   itkSuperclassTraitMacro( MeasurementType )
00060   itkSuperclassTraitMacro( InstanceIdentifier )
00061   itkSuperclassTraitMacro( SubsampleType )
00062   itkSuperclassTraitMacro( OutputType )
00063 
00065   typedef double RadiusType;
00066 
00068   typedef SimpleDataObjectDecorator< RadiusType > InputRadiusObjectType;
00069 
00070 
00072   itkSetDecoratedInputMacro( Radius, RadiusType, 1 );
00073 
00074 protected:
00075   NeighborhoodSampler();
00076   virtual ~NeighborhoodSampler();
00077   void PrintSelf(std::ostream& os, Indent indent) const;  
00078   
00079   void GenerateData();
00080 
00081 private:
00082   NeighborhoodSampler(const Self&); //purposely not implemented
00083   void operator=(const Self&); //purposely not implemented
00084 
00085 }; // end of class
00086 
00087 } // end of namespace Statistics 
00088 } // end of namespace itk
00089 
00090 #ifndef ITK_MANUAL_INSTANTIATION
00091 #include "itkNeighborhoodSampler.txx"
00092 #endif
00093 
00094 #endif
00095 

Generated at Thu May 28 10:59:18 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000