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

itkPatternIntensityImageToImageMetric.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkPatternIntensityImageToImageMetric.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/09/11 19:39:01 $
00007   Version:   $Revision: 1.22 $
00008 
00009   Copyright (c) 2002 Insight 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 __itkPatternIntensityImageToImageMetric_h
00018 #define __itkPatternIntensityImageToImageMetric_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 PatternIntensityImageToImageMetric : 
00047 public ImageToImageMetric< TFixedImage, TMovingImage>
00048 {
00049 public:
00050 
00052   typedef PatternIntensityImageToImageMetric    Self;
00053   typedef ImageToImageMetric<TFixedImage, TMovingImage >  Superclass;
00054 
00055   typedef SmartPointer<Self>         Pointer;
00056   typedef SmartPointer<const Self>   ConstPointer;
00057 
00059   itkNewMacro(Self);
00060  
00062   itkTypeMacro(PatternIntensityImageToImageMetric, ImageToImageMetric);
00063 
00064  
00066   typedef typename Superclass::TransformType            TransformType;
00067   typedef typename Superclass::TransformPointer         TransformPointer;
00068   typedef typename Superclass::TransformParametersType  TransformParametersType;
00069   typedef typename Superclass::TransformJacobianType    TransformJacobianType;
00070 
00071   typedef typename Superclass::MeasureType              MeasureType;
00072   typedef typename Superclass::DerivativeType           DerivativeType;
00073   typedef typename Superclass::FixedImageType           FixedImageType;
00074   typedef typename Superclass::MovingImageType          MovingImageType;
00075   typedef typename Superclass::FixedImageConstPointer   FixedImageConstPointer;
00076   typedef typename Superclass::MovingImageConstPointer  MovingImageConstPointer;
00077 
00078 
00080   void GetDerivative( const TransformParametersType & parameters,
00081                             DerivativeType  & derivative ) const;
00082 
00084   MeasureType GetValue( const TransformParametersType & parameters ) const;
00085 
00087   void GetValueAndDerivative( const TransformParametersType & parameters,
00088                               MeasureType& Value, DerivativeType& derivative ) const;
00089 
00090 protected:
00091   PatternIntensityImageToImageMetric();
00092   virtual ~PatternIntensityImageToImageMetric() {};
00093   void PrintSelf(std::ostream& os, Indent indent) const;
00094 
00095 
00096 private:
00097   PatternIntensityImageToImageMetric(const Self&); //purposely not implemented
00098   void operator=(const Self&); //purposely not implemented
00099 
00100 };
00101 
00102 } // end namespace itk
00103 
00104 #ifndef ITK_MANUAL_INSTANTIATION
00105 #include "itkPatternIntensityImageToImageMetric.txx"
00106 #endif
00107 
00108 #endif
00109 
00110 
00111 

Generated at Fri May 21 01:15:10 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000