ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkMeanSquaresPointSetToImageMetric_h 00019 #define __itkMeanSquaresPointSetToImageMetric_h 00020 00021 #include "itkPointSetToImageMetric.h" 00022 #include "itkCovariantVector.h" 00023 #include "itkPoint.h" 00024 00025 namespace itk 00026 { 00040 template< class TFixedPointSet, class TMovingImage > 00041 class ITK_EXPORT MeanSquaresPointSetToImageMetric: 00042 public PointSetToImageMetric< TFixedPointSet, TMovingImage > 00043 { 00044 public: 00045 00047 typedef MeanSquaresPointSetToImageMetric Self; 00048 typedef PointSetToImageMetric< TFixedPointSet, TMovingImage > Superclass; 00049 typedef SmartPointer< Self > Pointer; 00050 typedef SmartPointer< const Self > ConstPointer; 00051 00053 itkNewMacro(Self); 00054 00056 itkTypeMacro(MeanSquaresPointSetToImageMetric, Object); 00057 00059 typedef typename Superclass::RealType RealType; 00060 typedef typename Superclass::TransformType TransformType; 00061 typedef typename Superclass::TransformPointer TransformPointer; 00062 typedef typename Superclass::TransformParametersType TransformParametersType; 00063 typedef typename Superclass::TransformJacobianType TransformJacobianType; 00064 typedef typename Superclass::GradientPixelType GradientPixelType; 00065 typedef typename Superclass::InputPointType InputPointType; 00066 typedef typename Superclass::OutputPointType OutputPointType; 00067 00068 typedef typename Superclass::MeasureType MeasureType; 00069 typedef typename Superclass::DerivativeType DerivativeType; 00070 typedef typename Superclass::FixedPointSetType FixedPointSetType; 00071 typedef typename Superclass::MovingImageType MovingImageType; 00072 typedef typename Superclass::FixedPointSetConstPointer FixedPointSetConstPointer; 00073 typedef typename Superclass::MovingImageConstPointer MovingImageConstPointer; 00074 00075 typedef typename Superclass::PointIterator PointIterator; 00076 typedef typename Superclass::PointDataIterator PointDataIterator; 00077 00079 void GetDerivative(const TransformParametersType & parameters, 00080 DerivativeType & Derivative) const; 00081 00083 MeasureType GetValue(const TransformParametersType & parameters) const; 00084 00086 void GetValueAndDerivative(const TransformParametersType & parameters, 00087 MeasureType & Value, DerivativeType & Derivative) const; 00088 00089 protected: 00090 MeanSquaresPointSetToImageMetric(); 00091 virtual ~MeanSquaresPointSetToImageMetric() {} 00092 private: 00093 MeanSquaresPointSetToImageMetric(const Self &); //purposely not implemented 00094 void operator=(const Self &); //purposely not implemented 00095 }; 00096 } // end namespace itk 00097 00098 #ifndef ITK_MANUAL_INSTANTIATION 00099 #include "itkMeanSquaresPointSetToImageMetric.hxx" 00100 #endif 00101 00102 #endif 00103