ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkMeanReciprocalSquareDifferencePointSetToImageMetric.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 __itkMeanReciprocalSquareDifferencePointSetToImageMetric_h
19 #define __itkMeanReciprocalSquareDifferencePointSetToImageMetric_h
20 
22 #include "itkCovariantVector.h"
23 #include "itkPoint.h"
24 
25 namespace itk
26 {
45 template< typename TFixedPointSet, typename TMovingImage >
47  public PointSetToImageMetric< TFixedPointSet, TMovingImage >
48 {
49 public:
50 
56 
58  itkNewMacro(Self);
59 
62 
64  typedef typename Superclass::RealType RealType;
72 
79 
82 
84  void GetDerivative(const TransformParametersType & parameters,
85  DerivativeType & Derivative) const;
86 
88  MeasureType GetValue(const TransformParametersType & parameters) const;
89 
91  void GetValueAndDerivative(const TransformParametersType & parameters,
92  MeasureType & Value, DerivativeType & Derivative) const;
93 
96  itkSetMacro(Lambda, double);
97  itkGetConstMacro(Lambda, double);
99 
100 protected:
103  virtual void PrintSelf(std::ostream & os, Indent indent) const;
104 
105 private:
107  // not
108  // implemented
109  void operator=(const Self &); //purposely
110  // not
111  // implemented
112 
113  double m_Lambda;
114 };
115 } // end namespace itk
116 
117 #ifndef ITK_MANUAL_INSTANTIATION
118 #include "itkMeanReciprocalSquareDifferencePointSetToImageMetric.hxx"
119 #endif
120 
121 #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.
virtual void PrintSelf(std::ostream &os, Indent indent) const
TransformType::Pointer TransformPointer
TransformType::JacobianType TransformJacobianType
Superclass::DerivativeType DerivativeType
TransformType::OutputPointType OutputPointType
TransformType::ParametersType TransformParametersType
CovariantVector< RealType, itkGetStaticConstMacro(MovingImageDimension) > GradientPixelType
NumericTraits< MovingImagePixelType >::RealType RealType
Superclass::MeasureType MeasureType
Computes similarity between a point set and an image.
MeasureType GetValue(const TransformParametersType &parameters) const
MovingImageType::ConstPointer MovingImageConstPointer
Computes similarity between pixel values of a point set and intensity values in an image...
void GetDerivative(const TransformParametersType &parameters, DerivativeType &Derivative) const
Control indentation during Print() invocation.
Definition: itkIndent.h:49
TransformType::InputPointType InputPointType
void GetValueAndDerivative(const TransformParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const
Base class for most ITK classes.
Definition: itkObject.h:57
Transform< CoordinateRepresentationType, itkGetStaticConstMacro(MovingImageDimension), itkGetStaticConstMacro(FixedPointSetDimension) > TransformType
FixedPointSetType::ConstPointer FixedPointSetConstPointer