ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkRegistrationParameterScalesFromPhysicalShift.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 itkRegistrationParameterScalesFromPhysicalShift_h
19 #define itkRegistrationParameterScalesFromPhysicalShift_h
20 
22 
23 namespace itk
24 {
25 
33 template < typename TMetric >
36 {
37 public:
38  ITK_DISALLOW_COPY_AND_ASSIGN(RegistrationParameterScalesFromPhysicalShift);
39 
45 
47  itkNewMacro( Self );
48 
51 
53  using ScalesType = typename Superclass::ScalesType;
54 
56  using ParametersType = typename Superclass::ParametersType;
57 
59  using FloatType = typename Superclass::FloatType;
60 
61  using VirtualPointType = typename Superclass::VirtualPointType;
62  using VirtualIndexType = typename Superclass::VirtualIndexType;
63  using MovingTransformType = typename Superclass::MovingTransformType;
64  using FixedTransformType = typename Superclass::FixedTransformType;
65  using JacobianType = typename Superclass::JacobianType;
66  using VirtualImageConstPointer = typename Superclass::VirtualImageConstPointer;
67 
68 protected:
71 
72  void PrintSelf(std::ostream & os, Indent indent) const override;
73 
74  void ComputeSampleShifts(const ParametersType &deltaParameters, ScalesType &localShifts) override;
75 
76 private:
77  template <typename TTransform>
78  void ComputeSampleShiftsInternal(const ParametersType &deltaParameters, ScalesType &localShifts);
79 
80 }; //class RegistrationParameterScalesFromPhysicalShift
81 
82 } // namespace itk
83 
84 
85 #ifndef ITK_MANUAL_INSTANTIATION
86 #include "itkRegistrationParameterScalesFromPhysicalShift.hxx"
87 #endif
88 
89 #endif /* itkRegistrationParameterScalesFromPhysicalShift_h */
Light weight base class for most itk classes.
typename MetricType::MovingTransformType MovingTransformType
Registration helper base class for estimating scales of transform parameters from the maximum voxel s...
typename MetricType::FixedTransformType FixedTransformType
Registration helper class for estimating scales of transform parameters a step sizes, from the maximum voxel shift in physical space caused by a parameter change.
typename TMetric::VirtualImageConstPointer VirtualImageConstPointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49