ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkNormalizedCorrelationPointSetToImageMetric.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 itkNormalizedCorrelationPointSetToImageMetric_h
19 #define itkNormalizedCorrelationPointSetToImageMetric_h
20 
22 #include "itkCovariantVector.h"
23 #include "itkPoint.h"
24 
25 namespace itk
26 {
43 template< typename TFixedPointSet, typename TMovingImage >
45  public PointSetToImageMetric< TFixedPointSet, TMovingImage >
46 {
47 public:
48 
54 
56  itkNewMacro(Self);
57 
61 
63  typedef typename Superclass::RealType RealType;
69 
76 
81 
83  void GetDerivative(const TransformParametersType & parameters,
84  DerivativeType & Derivative) const ITK_OVERRIDE;
85 
87  MeasureType GetValue(const TransformParametersType & parameters) const ITK_OVERRIDE;
88 
90  void GetValueAndDerivative(const TransformParametersType & parameters,
91  MeasureType & Value, DerivativeType & Derivative) const ITK_OVERRIDE;
92 
97  itkSetMacro(SubtractMean, bool);
98  itkGetConstReferenceMacro(SubtractMean, bool);
99  itkBooleanMacro(SubtractMean);
101 
102 protected:
105  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
106 
107 private:
108  NormalizedCorrelationPointSetToImageMetric(const Self &) ITK_DELETE_FUNCTION;
109  void operator=(const Self &) ITK_DELETE_FUNCTION;
110 
112 };
113 } // end namespace itk
114 
115 #ifndef ITK_MANUAL_INSTANTIATION
116 #include "itkNormalizedCorrelationPointSetToImageMetric.hxx"
117 #endif
118 
119 #endif
Array class with size defined at construction time.
Definition: itkArray.h:50
FixedPointSetType::PointDataContainer::ConstIterator PointDataIterator
FixedPointSetType::PointsContainer::ConstIterator PointIterator
Light weight base class for most itk classes.
void GetValueAndDerivative(const TransformParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const override
TransformType::Pointer TransformPointer
TransformType::JacobianType TransformJacobianType
Superclass::DerivativeType DerivativeType
TransformType::OutputPointType OutputPointType
TransformType::ParametersType TransformParametersType
CovariantVector< RealType, itkGetStaticConstMacro(MovingImageDimension) > GradientPixelType
NumericTraits< MovingImagePixelType >::RealType RealType
void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::MeasureType MeasureType
Computes similarity between a point set and an image.
void GetDerivative(const TransformParametersType &parameters, DerivativeType &Derivative) const override
MovingImageType::ConstPointer MovingImageConstPointer
MeasureType GetValue(const TransformParametersType &parameters) const override
Computes similarity between pixel values of a point set and intensity values of an image...
Control indentation during Print() invocation.
Definition: itkIndent.h:49
TransformType::InputPointType InputPointType
Transform< CoordinateRepresentationType, itkGetStaticConstMacro(MovingImageDimension), itkGetStaticConstMacro(FixedPointSetDimension) > TransformType
PointSetToImageMetric< TFixedPointSet, TMovingImage > Superclass
FixedPointSetType::ConstPointer FixedPointSetConstPointer