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

itkMeanReciprocalSquareDifferenceImageToImageMetric.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMeanReciprocalSquareDifferenceImageToImageMetric.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-04-23 03:53:36 $
00007   Version:   $Revision: 1.6 $
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 __itkMeanReciprocalSquareDifferenceImageToImageMetric_h
00018 #define __itkMeanReciprocalSquareDifferenceImageToImageMetric_h
00019 
00020 #include "itkImageToImageMetric.h"
00021 #include "itkCovariantVector.h"
00022 #include "itkPoint.h"
00023 
00024 
00025 namespace itk
00026 {
00045 template < class TFixedImage, class TMovingImage > 
00046 class ITK_EXPORT MeanReciprocalSquareDifferenceImageToImageMetric : 
00047     public ImageToImageMetric< TFixedImage, TMovingImage>
00048 {
00049 public:
00050 
00052   typedef MeanReciprocalSquareDifferenceImageToImageMetric  Self;
00053   typedef ImageToImageMetric<TFixedImage, TMovingImage >    Superclass;
00054   typedef SmartPointer<Self>                                Pointer;
00055   typedef SmartPointer<const Self>                          ConstPointer;
00056 
00058   itkNewMacro(Self);
00059 
00061   itkTypeMacro(MeanReciprocalSquareDifferenceImageToImageMetric, ImageToImageMetric);
00062 
00063  
00065   typedef typename Superclass::TransformType            TransformType;
00066   typedef typename Superclass::TransformPointer         TransformPointer;
00067   typedef typename Superclass::TransformParametersType  TransformParametersType;
00068   typedef typename Superclass::TransformJacobianType    TransformJacobianType;
00069   typedef typename Superclass::InputPointType           InputPointType;
00070   typedef typename Superclass::OutputPointType          OutputPointType;
00071 
00072   typedef typename Superclass::MeasureType              MeasureType;
00073   typedef typename Superclass::DerivativeType           DerivativeType;
00074   typedef typename Superclass::FixedImageType           FixedImageType;
00075   typedef typename Superclass::MovingImageType          MovingImageType;
00076   typedef typename Superclass::FixedImageConstPointer   FixedImageConstPointer;
00077   typedef typename Superclass::MovingImageConstPointer  MovingImageConstPointer;
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 
00093   itkGetConstMacro( Lambda, double );
00094   itkSetMacro( Lambda, double );
00096 
00099   itkGetConstMacro( Delta, double );
00100   itkSetMacro( Delta, double );
00102 
00103 
00104 protected:
00105   MeanReciprocalSquareDifferenceImageToImageMetric();
00106   virtual ~MeanReciprocalSquareDifferenceImageToImageMetric() {};
00107   void PrintSelf(std::ostream& os, Indent indent) const;
00108 
00109 
00110 private:
00111   MeanReciprocalSquareDifferenceImageToImageMetric(const Self&); //purposely not implemented
00112   void operator=(const Self&); //purposely not implemented
00113 
00114   double m_Lambda;
00115   double m_Delta;
00116 };
00117 
00118 } // end namespace itk
00119 
00120 #ifndef ITK_MANUAL_INSTANTIATION
00121 #include "itkMeanReciprocalSquareDifferenceImageToImageMetric.txx"
00122 #endif
00123 
00124 #endif
00125 

Generated at Tue Sep 15 03:55:37 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000