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

itkSampleToSubsampleFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkSampleToSubsampleFilter.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 __itkSampleToSubsampleFilter_h
00018 #define __itkSampleToSubsampleFilter_h
00019 
00020 #include "itkSample.h"
00021 #include "itkSubsample.h"
00022 #include "itkProcessObject.h"
00023 
00024 namespace itk {
00025 namespace Statistics {
00026 
00043 template< class TSample >
00044 class ITK_EXPORT SampleToSubsampleFilter : public ProcessObject
00045 {
00046 public:
00048   typedef SampleToSubsampleFilter     Self;
00049   typedef ProcessObject               Superclass;
00050   typedef SmartPointer< Self >        Pointer;
00051   typedef SmartPointer< const Self >  ConstPointer;
00052 
00054   itkTypeMacro(SampleToSubsampleFilter, ProcessObject);
00055 
00058   typedef TSample                                    SampleType;
00059   typedef typename SampleType::MeasurementVectorType MeasurementVectorType;
00060   typedef typename SampleType::MeasurementType       MeasurementType;
00061   typedef typename SampleType::InstanceIdentifier    InstanceIdentifier;
00062 
00064   typedef Subsample< SampleType >                    SubsampleType;
00065   typedef SubsampleType                              OutputType;
00066 
00068   virtual void SetInput( const SampleType * sample );
00069   virtual const SampleType * GetInput() const;
00071 
00073   const OutputType  * GetOutput() const;
00074 
00075 
00076 protected:
00077   SampleToSubsampleFilter();
00078   virtual ~SampleToSubsampleFilter();
00079   void PrintSelf(std::ostream& os, Indent indent) const;  
00080   
00087   virtual DataObjectPointer MakeOutput(unsigned int idx);
00088 
00089 private:
00090   SampleToSubsampleFilter(const Self&); //purposely not implemented
00091   void operator=(const Self&); //purposely not implemented
00092 
00093 }; // end of class
00094 
00095 } // end of namespace Statistics 
00096 } // end of namespace itk
00097 
00098 #ifndef ITK_MANUAL_INSTANTIATION
00099 #include "itkSampleToSubsampleFilter.txx"
00100 #endif
00101 
00102 #endif
00103 

Generated at Mon Jul 12 2010 19:41:49 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000