ITK  5.0.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:
45  ITK_DISALLOW_COPY_AND_ASSIGN(RegistrationParameterScalesFromJacobian);
46 
52 
54  itkNewMacro( Self );
55 
58 
60  using ScalesType = typename Superclass::ScalesType;
61 
63  using ParametersType = typename Superclass::ParametersType;
64 
66  using FloatType = typename Superclass::FloatType;
67 
68  using VirtualPointType = typename Superclass::VirtualPointType;
69  using VirtualIndexType = typename Superclass::VirtualIndexType;
70  using MovingTransformType = typename Superclass::MovingTransformType;
71  using FixedTransformType = typename Superclass::FixedTransformType;
72  using JacobianType = typename Superclass::JacobianType;
73  using VirtualImageConstPointer = typename Superclass::VirtualImageConstPointer;
74 
76  void EstimateScales(ScalesType &scales) override;
77 
95  FloatType EstimateStepScale(const ParametersType &step) override;
96 
98  void EstimateLocalStepScales(const ParametersType &step,
99  ScalesType &localStepScales) override;
100 
101 protected:
103  ~RegistrationParameterScalesFromJacobian() override = default;
104 
105  void PrintSelf(std::ostream & os, Indent indent) const override;
106 
111  void ComputeSampleStepScales(const ParametersType &step, ScalesType &sampleScales);
112 }; //class RegistrationParameterScalesFromJacobian
113 
114 
115 } // namespace itk
116 
117 
118 #ifndef ITK_MANUAL_INSTANTIATION
119 #include "itkRegistrationParameterScalesFromJacobian.hxx"
120 #endif
121 
122 #endif /* itkRegistrationParameterScalesFromJacobian_h */
Light weight base class for most itk classes.
typename MetricType::MovingTransformType MovingTransformType
typename MetricType::FixedTransformType FixedTransformType
typename TMetric::VirtualImageConstPointer VirtualImageConstPointer
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