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

itkMeanSquaresPointSetToImageMetric.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMeanSquaresPointSetToImageMetric.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-24 20:03:00 $
00007   Version:   $Revision: 1.22 $
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 __itkMeanSquaresPointSetToImageMetric_h
00018 #define __itkMeanSquaresPointSetToImageMetric_h
00019 
00020 #include "itkPointSetToImageMetric.h"
00021 #include "itkCovariantVector.h"
00022 #include "itkPoint.h"
00023 
00024 
00025 namespace itk
00026 {
00027 
00040 template < class TFixedPointSet, class TMovingImage > 
00041 class ITK_EXPORT MeanSquaresPointSetToImageMetric : 
00042     public PointSetToImageMetric< TFixedPointSet, TMovingImage>
00043 {
00044 public:
00045 
00047   typedef MeanSquaresPointSetToImageMetric                     Self;
00048   typedef PointSetToImageMetric<TFixedPointSet, TMovingImage > Superclass;
00049   typedef SmartPointer<Self>                                   Pointer;
00050   typedef SmartPointer<const Self>                             ConstPointer;
00051 
00053   itkNewMacro(Self);
00054 
00056   itkTypeMacro(MeanSquaresPointSetToImageMetric, Object);
00057 
00058  
00060   typedef typename Superclass::RealType                   RealType;
00061   typedef typename Superclass::TransformType              TransformType;
00062   typedef typename Superclass::TransformPointer           TransformPointer;
00063   typedef typename Superclass::TransformParametersType    TransformParametersType;
00064   typedef typename Superclass::TransformJacobianType      TransformJacobianType;
00065   typedef typename Superclass::GradientPixelType          GradientPixelType;
00066   typedef typename Superclass::InputPointType             InputPointType;
00067   typedef typename Superclass::OutputPointType            OutputPointType;
00068 
00069   typedef typename Superclass::MeasureType                MeasureType;
00070   typedef typename Superclass::DerivativeType             DerivativeType;
00071   typedef typename Superclass::FixedPointSetType          FixedPointSetType;
00072   typedef typename Superclass::MovingImageType            MovingImageType;
00073   typedef typename Superclass::FixedPointSetConstPointer  FixedPointSetConstPointer;
00074   typedef typename Superclass::MovingImageConstPointer    MovingImageConstPointer;
00075 
00076   typedef typename Superclass::PointIterator              PointIterator;
00077   typedef typename Superclass::PointDataIterator          PointDataIterator;
00078 
00079 
00081   void GetDerivative( const TransformParametersType & parameters,
00082                       DerivativeType & Derivative ) const;
00083 
00085   MeasureType GetValue( const TransformParametersType & parameters ) const;
00086 
00088   void GetValueAndDerivative( const TransformParametersType & parameters,
00089                               MeasureType& Value, DerivativeType& Derivative ) const;
00090 
00091 protected:
00092   MeanSquaresPointSetToImageMetric();
00093   virtual ~MeanSquaresPointSetToImageMetric() {};
00094 
00095 private:
00096   MeanSquaresPointSetToImageMetric(const Self&); //purposely not implemented
00097   void operator=(const Self&); //purposely not implemented
00098 
00099 };
00100 
00101 } // end namespace itk
00102 
00103 #ifndef ITK_MANUAL_INSTANTIATION
00104 #include "itkMeanSquaresPointSetToImageMetric.txx"
00105 #endif
00106 
00107 #endif
00108 

Generated at Fri Apr 16 19:01:21 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000