ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkRegistrationParameterScalesFromJacobian.h
Go to the documentation of this file.
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 __itkRegistrationParameterScalesFromJacobian_h
00019 #define __itkRegistrationParameterScalesFromJacobian_h
00020 
00021 #include "itkRegistrationParameterScalesEstimator.h"
00022 
00023 namespace itk
00024 {
00025 
00040 template < class TMetric >
00041 class ITK_EXPORT RegistrationParameterScalesFromJacobian :
00042   public RegistrationParameterScalesEstimator< TMetric >
00043 {
00044 public:
00046   typedef RegistrationParameterScalesFromJacobian         Self;
00047   typedef RegistrationParameterScalesEstimator< TMetric > Superclass;
00048   typedef SmartPointer<Self>                              Pointer;
00049   typedef SmartPointer<const Self>                        ConstPointer;
00050 
00052   itkNewMacro( Self );
00053 
00055   itkTypeMacro( RegistrationParameterScalesFromJacobian, RegistrationParameterScalesEstimator );
00056 
00058   typedef typename Superclass::ScalesType                ScalesType;
00059 
00061   typedef typename Superclass::ParametersType            ParametersType;
00062 
00064   typedef typename Superclass::FloatType                 FloatType;
00065 
00066   typedef typename Superclass::VirtualPointType          VirtualPointType;
00067   typedef typename Superclass::VirtualIndexType          VirtualIndexType;
00068   typedef typename Superclass::MovingTransformType       MovingTransformType;
00069   typedef typename Superclass::FixedTransformType        FixedTransformType;
00070   typedef typename Superclass::JacobianType              JacobianType;
00071   typedef typename Superclass::VirtualImageConstPointer  VirtualImageConstPointer;
00072 
00074   virtual void EstimateScales(ScalesType &scales);
00075 
00093   virtual FloatType EstimateStepScale(const ParametersType &step);
00094 
00096   virtual void EstimateLocalStepScales(const ParametersType &step,
00097     ScalesType &localStepScales);
00098 
00099 protected:
00100   RegistrationParameterScalesFromJacobian();
00101   ~RegistrationParameterScalesFromJacobian(){};
00102 
00103   virtual void PrintSelf(std::ostream &os, Indent indent) const;
00104 
00109   void ComputeSampleStepScales(const ParametersType &step, ScalesType &sampleScales);
00110 
00111 private:
00112   RegistrationParameterScalesFromJacobian(const Self&); //purposely not implemented
00113   void operator=(const Self&); //purposely not implemented
00114 
00115 }; //class RegistrationParameterScalesFromJacobian
00116 
00117 
00118 }  // namespace itk
00119 
00120 
00121 #ifndef ITK_MANUAL_INSTANTIATION
00122 #include "itkRegistrationParameterScalesFromJacobian.hxx"
00123 #endif
00124 
00125 #endif /* __itkRegistrationParameterScalesFromJacobian_h */
00126