ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkMeanSquaresPointSetToImageMetric.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 itkMeanSquaresPointSetToImageMetric_h
19 #define itkMeanSquaresPointSetToImageMetric_h
20 
22 #include "itkCovariantVector.h"
23 #include "itkPoint.h"
24 
25 namespace itk
26 {
40 template< typename TFixedPointSet, typename TMovingImage >
42  public PointSetToImageMetric< TFixedPointSet, TMovingImage >
43 {
44 public:
45 
51 
53  itkNewMacro(Self);
54 
57 
59  typedef typename Superclass::RealType RealType;
67 
74 
77 
79  void GetDerivative(const TransformParametersType & parameters,
80  DerivativeType & Derivative) const ITK_OVERRIDE;
81 
83  MeasureType GetValue(const TransformParametersType & parameters) const ITK_OVERRIDE;
84 
86  void GetValueAndDerivative(const TransformParametersType & parameters,
87  MeasureType & Value, DerivativeType & Derivative) const ITK_OVERRIDE;
88 
89 protected:
92 
93 private:
94  MeanSquaresPointSetToImageMetric(const Self &); //purposely not implemented
95  void operator=(const Self &); //purposely not implemented
96 };
97 } // end namespace itk
98 
99 #ifndef ITK_MANUAL_INSTANTIATION
100 #include "itkMeanSquaresPointSetToImageMetric.hxx"
101 #endif
102 
103 #endif
Array class with size defined at construction time.
Definition: itkArray.h:50
FixedPointSetType::PointDataContainer::ConstIterator PointDataIterator
PointSetToImageMetric< TFixedPointSet, TMovingImage > Superclass
FixedPointSetType::PointsContainer::ConstIterator PointIterator
Light weight base class for most itk classes.
TransformType::Pointer TransformPointer
MeasureType GetValue(const TransformParametersType &parameters) const override
Superclass::FixedPointSetConstPointer FixedPointSetConstPointer
TransformType::JacobianType TransformJacobianType
Superclass::DerivativeType DerivativeType
TransformType::OutputPointType OutputPointType
TransformType::ParametersType TransformParametersType
void GetValueAndDerivative(const TransformParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const override
CovariantVector< RealType, itkGetStaticConstMacro(MovingImageDimension) > GradientPixelType
NumericTraits< MovingImagePixelType >::RealType RealType
Superclass::TransformJacobianType TransformJacobianType
Superclass::MeasureType MeasureType
Computes similarity between a point set and an image.
MovingImageType::ConstPointer MovingImageConstPointer
Computes similarity between pixel values of a point set and intensity values of an image...
Superclass::TransformParametersType TransformParametersType
Superclass::MovingImageConstPointer MovingImageConstPointer
void GetDerivative(const TransformParametersType &parameters, DerivativeType &Derivative) const override
TransformType::InputPointType InputPointType
Base class for most ITK classes.
Definition: itkObject.h:57
Transform< CoordinateRepresentationType, itkGetStaticConstMacro(MovingImageDimension), itkGetStaticConstMacro(FixedPointSetDimension) > TransformType
FixedPointSetType::ConstPointer FixedPointSetConstPointer