ITK  5.0.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:
48  ITK_DISALLOW_COPY_AND_ASSIGN(NormalizedCorrelationTwoImageToOneImageMetric);
49 
53 
56 
58  itkNewMacro(Self);
59 
62 
63 
65  using RealType = typename Superclass::RealType;
71 
78 
79 
81  void GetDerivative( const TransformParametersType & parameters,
82  DerivativeType & Derivative ) const override;
83 
85  MeasureType GetValue( const TransformParametersType & parameters ) const override;
86 
88  void GetValueAndDerivative( const TransformParametersType & parameters,
89  MeasureType& Value, DerivativeType& Derivative ) const override;
90 
95  itkSetMacro( SubtractMean, bool );
96  itkGetConstReferenceMacro( SubtractMean, bool );
97  itkBooleanMacro( SubtractMean );
99 
100 protected:
103  void PrintSelf(std::ostream& os, Indent indent) const override;
104 
105 private:
107 };
108 
109 } // end namespace itk
110 
111 #ifndef ITK_MANUAL_INSTANTIATION
112 #include "itkNormalizedCorrelationTwoImageToOneImageMetric.hxx"
113 #endif
114 
115 #endif
Array class with size defined at construction time.
Definition: itkArray.h:46
typename NumericTraits< MovingImagePixelType >::RealType RealType
Light weight base class for most itk classes.
Computes similarity between two fixed images and one fixed image.
typename TransformType::JacobianType TransformJacobianType
typename FixedImageType::ConstPointer FixedImageConstPointer
void GetDerivative(const TransformParametersType &parameters, DerivativeType &Derivative) const override
Transform< CoordinateRepresentationType, itkGetStaticConstMacro(MovingImageDimension), itkGetStaticConstMacro(FixedImageDimension)> TransformType
void PrintSelf(std::ostream &os, Indent indent) const override
void GetValueAndDerivative(const TransformParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const override
CovariantVector< RealType, itkGetStaticConstMacro(MovingImageDimension)> GradientPixelType
typename MovingImageType::ConstPointer MovingImageConstPointer
Superclass::DerivativeType DerivativeType
typename TransformType::Pointer TransformPointer
typename TransformType::ParametersType TransformParametersType
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:60
MeasureType GetValue(const TransformParametersType &parameters) const override