00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkProductInputFunction.h,v $ 00005 Language: C++ 00006 Date: $Date: 2007/08/17 13:10:57 $ 00007 Version: $Revision: 1.2 $ 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 __itkProductInputFunction_h 00018 #define __itkProductInputFunction_h 00019 00020 #include "itkInputFunctionBase.h" 00021 #include "vnl/vnl_matrix.h" 00022 #include "vnl/vnl_vector.h" 00023 00024 namespace itk 00025 { 00026 namespace Statistics 00027 { 00028 00029 template<class TMeasurementVector, class ScalarType> 00030 class ProductInputFunction : public InputFunctionBase<TMeasurementVector, ScalarType> 00031 { 00032 public: 00033 00035 typedef ProductInputFunction Self; 00036 typedef InputFunctionBase<TMeasurementVector, ScalarType> Superclass; 00037 typedef SmartPointer<Self> Pointer; 00038 typedef SmartPointer<const Self> ConstPointer; 00039 00041 itkTypeMacro(ProductInputFunction, FunctionBase); 00042 00044 itkNewMacro(Self) ; 00045 00047 virtual ScalarType Evaluate(const TMeasurementVector& input) const; 00048 00049 protected: 00050 00051 ProductInputFunction(); 00052 virtual ~ProductInputFunction(); 00053 00055 virtual void PrintSelf( std::ostream& os, Indent indent ) const; 00056 }; 00057 00058 } // end namespace Statistics 00059 } // end namespace itk 00060 00061 #ifndef ITK_MANUAL_INSTANTIATION 00062 #include "itkProductInputFunction.txx" 00063 #endif 00064 00065 #endif 00066