ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkRegistrationParameterScalesFromIndexShift.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 itkRegistrationParameterScalesFromIndexShift_h
19 #define itkRegistrationParameterScalesFromIndexShift_h
20 
22 
23 namespace itk
24 {
25 
33 template < typename TMetric >
34 class ITK_TEMPLATE_EXPORT RegistrationParameterScalesFromIndexShift :
36 {
37 public:
38  ITK_DISALLOW_COPY_AND_ASSIGN(RegistrationParameterScalesFromIndexShift);
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  using FixedImageType = typename TMetric::FixedImageType;
69  using MovingImageType = typename TMetric::MovingImageType;
70 
71  using FixedImageConstPointer = typename FixedImageType::ConstPointer;
72  using MovingImageConstPointer = typename MovingImageType::ConstPointer;
73 
76  using FixedPointValueType = typename FixedImageType::PointValueType;
77 
79 
82  using MovingPointValueType = typename MovingImageType::PointValueType;
83 
85 
86 protected:
88  ~RegistrationParameterScalesFromIndexShift() override = default;
89 
90  void PrintSelf(std::ostream & os, Indent indent) const override;
91 
92  void ComputeSampleShifts(const ParametersType &deltaParameters, ScalesType &localShifts) override;
93 
94  template<typename TContinuousIndexType>
95  void TransformPointToContinuousIndex(const VirtualPointType &point, TContinuousIndexType &mappedIndex);
96 
97 private:
98  template <typename TTransform>
99  void ComputeSampleShiftsInternal(const ParametersType &deltaParameters, ScalesType &localShifts);
100 
101 }; //class RegistrationParameterScalesFromIndexShift
102 
103 } // namespace itk
104 
105 
106 #ifndef ITK_MANUAL_INSTANTIATION
107 #include "itkRegistrationParameterScalesFromIndexShift.hxx"
108 #endif
109 
110 #endif /* itkRegistrationParameterScalesFromIndexShift_h */
typename itk::ContinuousIndex< FixedPointValueType, FixedImageType::ImageDimension > FixedContinuousIndexType
Light weight base class for most itk classes.
Registration helper class for estimating scales of transform parameters from the maximum voxel shift ...
typename MetricType::MovingTransformType MovingTransformType
Registration helper base class for estimating scales of transform parameters from the maximum voxel s...
typename MetricType::FixedTransformType FixedTransformType
typename itk::ContinuousIndex< MovingPointValueType, MovingImageType::ImageDimension > MovingContinuousIndexType
typename TMetric::VirtualImageConstPointer VirtualImageConstPointer
A templated class holding a point in n-Dimensional image space.
Control indentation during Print() invocation.
Definition: itkIndent.h:49