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

itkNormalizedCorrelationPointSetToImageMetric.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkNormalizedCorrelationPointSetToImageMetric.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006/07/09 13:49:28 $
00007   Version:   $Revision: 1.21 $
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 __itkNormalizedCorrelationPointSetToImageMetric_h
00018 #define __itkNormalizedCorrelationPointSetToImageMetric_h
00019 
00020 #include "itkPointSetToImageMetric.h"
00021 #include "itkCovariantVector.h"
00022 #include "itkPoint.h"
00023 
00024 
00025 namespace itk
00026 {
00042 template < class TFixedPointSet, class TMovingImage > 
00043 class ITK_EXPORT NormalizedCorrelationPointSetToImageMetric : 
00044     public PointSetToImageMetric< TFixedPointSet, TMovingImage>
00045 {
00046 public:
00047 
00049   typedef NormalizedCorrelationPointSetToImageMetric    Self;
00050   typedef PointSetToImageMetric<TFixedPointSet, TMovingImage >  Superclass;
00051 
00052   typedef SmartPointer<Self>         Pointer;
00053   typedef SmartPointer<const Self>   ConstPointer;
00054 
00056   itkNewMacro(Self);
00057 
00059   itkTypeMacro(NormalizedCorrelationPointSetToImageMetric, 
00060                                     PointSetToImageMetric);
00061 
00062  
00064   typedef typename Superclass::RealType                   RealType;
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::GradientPixelType          GradientPixelType;
00070 
00071   typedef typename Superclass::MeasureType                MeasureType;
00072   typedef typename Superclass::DerivativeType             DerivativeType;
00073   typedef typename Superclass::FixedPointSetType          FixedPointSetType;
00074   typedef typename Superclass::MovingImageType            MovingImageType;
00075   typedef typename Superclass::FixedPointSetConstPointer  FixedPointSetConstPointer;
00076   typedef typename Superclass::MovingImageConstPointer    MovingImageConstPointer;
00077 
00078   typedef typename Superclass::PointIterator              PointIterator;
00079   typedef typename Superclass::PointDataIterator          PointDataIterator;
00080 
00081 
00083   void GetDerivative( const TransformParametersType & parameters,
00084                       DerivativeType & Derivative ) const;
00085 
00087   MeasureType GetValue( const TransformParametersType & parameters ) const;
00088 
00090   void GetValueAndDerivative( const TransformParametersType & parameters,
00091                               MeasureType& Value, DerivativeType& Derivative ) const;
00092 
00097   itkSetMacro( SubtractMean, bool );
00098   itkGetConstReferenceMacro( SubtractMean, bool );
00099   itkBooleanMacro( SubtractMean );
00101 
00102 protected:
00103   NormalizedCorrelationPointSetToImageMetric();
00104   virtual ~NormalizedCorrelationPointSetToImageMetric() {};
00105   void PrintSelf(std::ostream& os, Indent indent) const;
00106 
00107 private:
00108   NormalizedCorrelationPointSetToImageMetric(const Self&); //purposely not implemented
00109   void operator=(const Self&); //purposely not implemented
00110 
00111   bool    m_SubtractMean;
00112 
00113 };
00114 
00115 } // end namespace itk
00116 
00117 #ifndef ITK_MANUAL_INSTANTIATION
00118 #include "itkNormalizedCorrelationPointSetToImageMetric.txx"
00119 #endif
00120 
00121 #endif
00122 
00123 
00124 
00125 

Generated at Mon Mar 12 01:56:59 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000