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

itkMeanReciprocalSquareDifferencePointSetToImageMetric.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMeanReciprocalSquareDifferencePointSetToImageMetric.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008/02/03 04:05:28 $
00007   Version:   $Revision: 1.5 $
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 __itkMeanReciprocalSquareDifferencePointSetToImageMetric_h
00018 #define __itkMeanReciprocalSquareDifferencePointSetToImageMetric_h
00019 
00020 #include "itkPointSetToImageMetric.h"
00021 #include "itkCovariantVector.h"
00022 #include "itkPoint.h"
00023 
00024 
00025 namespace itk
00026 {
00027   
00045 template < class TFixedPointSet, class TMovingImage > 
00046 class ITK_EXPORT MeanReciprocalSquareDifferencePointSetToImageMetric : 
00047     public PointSetToImageMetric< TFixedPointSet, TMovingImage>
00048 {
00049 public:
00050 
00052   typedef  MeanReciprocalSquareDifferencePointSetToImageMetric    Self;
00053   typedef PointSetToImageMetric<TFixedPointSet, TMovingImage >  Superclass;
00054 
00055   typedef SmartPointer<Self>         Pointer;
00056   typedef SmartPointer<const Self>   ConstPointer;
00057 
00059   itkNewMacro(Self);
00060 
00062   itkTypeMacro( MeanReciprocalSquareDifferencePointSetToImageMetric, Object);
00063 
00064  
00066   typedef typename Superclass::RealType                   RealType;
00067   typedef typename Superclass::TransformType              TransformType;
00068   typedef typename Superclass::TransformPointer           TransformPointer;
00069   typedef typename Superclass::TransformParametersType    TransformParametersType;
00070   typedef typename Superclass::TransformJacobianType      TransformJacobianType;
00071   typedef typename Superclass::InputPointType             InputPointType;
00072   typedef typename Superclass::OutputPointType            OutputPointType;
00073   typedef typename Superclass::GradientPixelType          GradientPixelType;
00074 
00075   typedef typename Superclass::MeasureType                MeasureType;
00076   typedef typename Superclass::DerivativeType             DerivativeType;
00077   typedef typename Superclass::FixedPointSetType          FixedPointSetType;
00078   typedef typename Superclass::MovingImageType            MovingImageType;
00079   typedef typename Superclass::FixedPointSetConstPointer  FixedPointSetConstPointer;
00080   typedef typename Superclass::MovingImageConstPointer    MovingImageConstPointer;
00081 
00082   typedef typename Superclass::PointIterator              PointIterator;
00083   typedef typename Superclass::PointDataIterator          PointDataIterator;
00084 
00085 
00087   void GetDerivative( const TransformParametersType & parameters,
00088                       DerivativeType & Derivative ) const;
00089 
00091   MeasureType GetValue( const TransformParametersType & parameters ) const;
00092 
00094   void GetValueAndDerivative( const TransformParametersType & parameters,
00095                               MeasureType& Value, DerivativeType& Derivative ) const;
00096 
00098   itkSetMacro( Lambda, double );
00099   itkGetMacro( Lambda, double );
00101 
00102 
00103 protected:
00104   MeanReciprocalSquareDifferencePointSetToImageMetric();
00105   virtual ~MeanReciprocalSquareDifferencePointSetToImageMetric() {};
00106   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00107   
00108 private:
00109   MeanReciprocalSquareDifferencePointSetToImageMetric(const Self&); //purposely not implemented
00110   void operator=(const Self&); //purposely not implemented
00111   
00112   double          m_Lambda;
00113 
00114     
00115 };
00116 
00117 } // end namespace itk
00118 
00119 #ifndef ITK_MANUAL_INSTANTIATION
00120 #include "itkMeanReciprocalSquareDifferencePointSetToImageMetric.txx"
00121 #endif
00122 
00123 #endif
00124 
00125 
00126 
00127 

Generated at Tue Jul 29 21:12:07 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000