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

itkListSampleToHistogramFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkListSampleToHistogramFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-03-04 15:23:53 $
00007   Version:   $Revision: 1.12 $
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 __itkListSampleToHistogramFilter_h
00018 #define __itkListSampleToHistogramFilter_h
00019 
00020 #include "itkObject.h"
00021 #include "itkListSampleBase.h"
00022 #include "itkHistogram.h"
00023 
00024 namespace itk {
00025 namespace Statistics {
00026 
00036 template< class TListSample, class THistogram >
00037 class ITK_EXPORT ListSampleToHistogramFilter :
00038       public Object
00039 {
00040 public:
00042   typedef ListSampleToHistogramFilter Self;
00043   typedef Object                      Superclass;
00044   typedef SmartPointer<Self>          Pointer;
00045   typedef SmartPointer<const Self>    ConstPointer;
00046 
00048   itkTypeMacro(ListSampleToHistogramFilter, Object);
00049 
00051   itkNewMacro(Self);
00052 
00054   void SetListSample(const TListSample* list)
00055     { m_List = list; }
00056 
00058   void SetHistogram(THistogram* histogram)
00059     { m_Histogram = histogram;  }
00060 
00062   void Update()
00063     { this->Run(); } 
00064 
00066   void Run();
00067 
00068 protected:
00069   ListSampleToHistogramFilter();
00070   virtual ~ListSampleToHistogramFilter() {}
00071 private:
00072   const TListSample* m_List;
00073   THistogram*        m_Histogram;
00074 }; // end of class
00075 
00076 } // end of namespace Statistics 
00077 } // end of namespace itk 
00078 
00079 #ifndef ITK_MANUAL_INSTANTIATION
00080 #include "itkListSampleToHistogramFilter.txx"
00081 #endif
00082 
00083 #endif
00084 

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