ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkNormalizedCorrelationTwoImageToOneImageMetric.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkNormalizedCorrelationTwoImageToOneImageMetric_h
19 #define itkNormalizedCorrelationTwoImageToOneImageMetric_h
20 
22 #include "itkCovariantVector.h"
23 #include "itkPoint.h"
24 
25 
26 namespace itk
27 {
43 template < typename TFixedImage, typename TMovingImage >
45  public TwoImageToOneImageMetric< TFixedImage, TMovingImage >
46 {
47 public:
51 
54 
56  itkNewMacro(Self);
57 
60 
61 
63  typedef typename Superclass::RealType RealType;
69 
76 
77 
79  void GetDerivative( const TransformParametersType & parameters,
80  DerivativeType & Derivative ) const;
81 
83  MeasureType GetValue( const TransformParametersType & parameters ) const;
84 
86  void GetValueAndDerivative( const TransformParametersType & parameters,
87  MeasureType& Value, DerivativeType& Derivative ) const;
88 
93  itkSetMacro( SubtractMean, bool );
94  itkGetConstReferenceMacro( SubtractMean, bool );
95  itkBooleanMacro( SubtractMean );
97 
98 protected:
101  virtual void PrintSelf(std::ostream& os, Indent indent) const;
102 
103 private:
104  NormalizedCorrelationTwoImageToOneImageMetric(const Self&); //purposely not implemented
105  void operator=(const Self&); //purposely not implemented
106 
108 };
109 
110 } // end namespace itk
111 
112 #ifndef ITK_MANUAL_INSTANTIATION
113 #include "itkNormalizedCorrelationTwoImageToOneImageMetric.hxx"
114 #endif
115 
116 #endif
Array class with size defined at construction time.
Definition: itkArray.h:50
NumericTraits< MovingImagePixelType >::RealType RealType
Light weight base class for most itk classes.
Computes similarity between two fixed images and one fixed image.
virtual void PrintSelf(std::ostream &os, Indent indent) const
TransformType::ParametersType TransformParametersType
CovariantVector< RealType, itkGetStaticConstMacro(MovingImageDimension)> GradientPixelType
MovingImageType::ConstPointer MovingImageConstPointer
FixedImageType::ConstPointer FixedImageConstPointer
void GetDerivative(const TransformParametersType &parameters, DerivativeType &Derivative) const
void GetValueAndDerivative(const TransformParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const
TransformType::JacobianType TransformJacobianType
Superclass::DerivativeType DerivativeType
MeasureType GetValue(const TransformParametersType &parameters) const
Transform< CoordinateRepresentationType, itkGetStaticConstMacro(MovingImageDimension), itkGetStaticConstMacro(FixedImageDimension)> TransformType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Computes similarity between two fixed images and one moving image.
Base class for most ITK classes.
Definition: itkObject.h:59