NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
itkMetricDerivativeBridge.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef itkMetricDerivativeBridge_h
16 #define itkMetricDerivativeBridge_h
17 
18 #include <itkObject.h>
20 
21 namespace itk
22 {
23 
24 template <class TFixedImage, class TMovingImage> class ImageToImageMetricWithConstraint;
25 
33 template < typename TFixedImage, typename TMovingImage >
34 class ITK_EXPORT MetricDerivativeBridge :
35  public Object
36 {
37 public:
38 
41  typedef Object Superclass;
42  typedef SmartPointer<Self> Pointer;
43  typedef SmartPointer<const Self> ConstPointer;
44 
46  itkTypeMacro(MetricDerivativeBridge, Object);
47 
53 
55  itkStaticConstMacro(Dimension, unsigned int, TFixedImage::ImageDimension);
56 
58  virtual void GetCostFunctionDerivative(SimilarityMeasurePointer similarityMeasure,
59  const ParametersType &parameters,
60  DerivativeType &derivative) const = 0;
61 
62 protected:
63 
66 
67 private:
68 
69  MetricDerivativeBridge(const Self&); // purposefully not implemented
70  void operator=(const Self&); // purposefully not implemented
71 };
72 
73 } // end namespace itk
74 
75 #endif
76 
77 
78 
SimilarityMeasureType::DerivativeType DerivativeType
Definition: itkMetricDerivativeBridge.h:51
SimilarityMeasureType::ConstPointer SimilarityMeasurePointer
Definition: itkMetricDerivativeBridge.h:50
MetricDerivativeBridge()
Definition: itkMetricDerivativeBridge.h:64
Abstract base class to provide functionality for adding arbitrary constraints, and also arbitrary way...
Definition: itkImageToImageMetricWithConstraint.h:49
SmartPointer< Self > Pointer
Definition: itkMetricDerivativeBridge.h:42
virtual ~MetricDerivativeBridge()
Definition: itkMetricDerivativeBridge.h:65
Superclass::DerivativeType DerivativeType
Definition: itkImageToImageMetricWithConstraint.h:70
Definition: niftkITKAffineResampleImage.cxx:74
ImageToImageMetricWithConstraint< TFixedImage, TMovingImage > SimilarityMeasureType
Definition: itkMetricDerivativeBridge.h:46
SimilarityMeasureType::TransformParametersType ParametersType
Definition: itkMetricDerivativeBridge.h:52
MetricDerivativeBridge Self
Definition: itkMetricDerivativeBridge.h:40
SmartPointer< const Self > ConstPointer
Definition: itkMetricDerivativeBridge.h:43
Definition: itkMetricDerivativeBridge.h:34
SmartPointer< const Self > ConstPointer
Definition: itkImageToImageMetricWithConstraint.h:58
Superclass::ParametersType TransformParametersType
Definition: itkImageToImageMetricWithConstraint.h:71
Object Superclass
Definition: itkMetricDerivativeBridge.h:41
const unsigned int Dimension
Definition: niftkBreastDCEandADC.cxx:89