ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkRegistrationParameterScalesFromJacobian.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 itkRegistrationParameterScalesFromJacobian_h
19 #define itkRegistrationParameterScalesFromJacobian_h
20 
22 
23 namespace itk
24 {
25 
40 template < typename TMetric >
41 class ITK_TEMPLATE_EXPORT RegistrationParameterScalesFromJacobian :
42  public RegistrationParameterScalesEstimator< TMetric >
43 {
44 public:
50 
52  itkNewMacro( Self );
53 
56 
58  typedef typename Superclass::ScalesType ScalesType;
59 
61  typedef typename Superclass::ParametersType ParametersType;
62 
64  typedef typename Superclass::FloatType FloatType;
65 
66  typedef typename Superclass::VirtualPointType VirtualPointType;
67  typedef typename Superclass::VirtualIndexType VirtualIndexType;
68  typedef typename Superclass::MovingTransformType MovingTransformType;
69  typedef typename Superclass::FixedTransformType FixedTransformType;
70  typedef typename Superclass::JacobianType JacobianType;
71  typedef typename Superclass::VirtualImageConstPointer VirtualImageConstPointer;
72 
74  virtual void EstimateScales(ScalesType &scales) ITK_OVERRIDE;
75 
93  virtual FloatType EstimateStepScale(const ParametersType &step) ITK_OVERRIDE;
94 
96  virtual void EstimateLocalStepScales(const ParametersType &step,
97  ScalesType &localStepScales) ITK_OVERRIDE;
98 
99 protected:
102 
103  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
104 
109  void ComputeSampleStepScales(const ParametersType &step, ScalesType &sampleScales);
110 
111 private:
112  ITK_DISALLOW_COPY_AND_ASSIGN(RegistrationParameterScalesFromJacobian);
113 
114 }; //class RegistrationParameterScalesFromJacobian
115 
116 
117 } // namespace itk
118 
119 
120 #ifndef ITK_MANUAL_INSTANTIATION
121 #include "itkRegistrationParameterScalesFromJacobian.hxx"
122 #endif
123 
124 #endif /* itkRegistrationParameterScalesFromJacobian_h */
Light weight base class for most itk classes.
RegistrationParameterScalesEstimator< TMetric > Superclass
Implements a registration helper class for estimating scales of transform parameters and step sizes...
Implements a registration helper class for estimating scales of transform parameters from Jacobian no...
Control indentation during Print() invocation.
Definition: itkIndent.h:49