ITK  5.2.0
Insight Toolkit
itkRegistrationParameterScalesFromIndexShift.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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 
34 template <typename TMetric>
37 {
38 public:
39  ITK_DISALLOW_COPY_AND_ASSIGN(RegistrationParameterScalesFromIndexShift);
40 
46 
48  itkNewMacro(Self);
49 
52 
54  using ScalesType = typename Superclass::ScalesType;
55 
57  using ParametersType = typename Superclass::ParametersType;
58 
60  using FloatType = typename Superclass::FloatType;
61 
62  using VirtualPointType = typename Superclass::VirtualPointType;
63  using VirtualIndexType = typename Superclass::VirtualIndexType;
64  using MovingTransformType = typename Superclass::MovingTransformType;
65  using FixedTransformType = typename Superclass::FixedTransformType;
66  using JacobianType = typename Superclass::JacobianType;
67  using VirtualImageConstPointer = typename Superclass::VirtualImageConstPointer;
68 
69  using FixedImageType = typename TMetric::FixedImageType;
70  using MovingImageType = typename TMetric::MovingImageType;
71 
72  using FixedImageConstPointer = typename FixedImageType::ConstPointer;
73  using MovingImageConstPointer = typename MovingImageType::ConstPointer;
74 
77  using FixedPointValueType = typename FixedImageType::PointValueType;
78 
80 
83  using MovingPointValueType = typename MovingImageType::PointValueType;
84 
87 
88 protected:
90  ~RegistrationParameterScalesFromIndexShift() override = default;
91 
92  void
93  PrintSelf(std::ostream & os, Indent indent) const override;
94 
95  void
96  ComputeSampleShifts(const ParametersType & deltaParameters, ScalesType & localShifts) override;
97 
98  template <typename TContinuousIndexType>
99  void
100  TransformPointToContinuousIndex(const VirtualPointType & point, TContinuousIndexType & mappedIndex);
101 
102 private:
103  template <typename TTransform>
104  void
105  ComputeSampleShiftsInternal(const ParametersType & deltaParameters, ScalesType & localShifts);
106 
107 }; // class RegistrationParameterScalesFromIndexShift
108 
109 } // namespace itk
110 
111 
112 #ifndef ITK_MANUAL_INSTANTIATION
113 # include "itkRegistrationParameterScalesFromIndexShift.hxx"
114 #endif
115 
116 #endif /* itkRegistrationParameterScalesFromIndexShift_h */
itk::RegistrationParameterScalesFromIndexShift::MovingPointValueType
typename MovingImageType::PointValueType MovingPointValueType
Definition: itkRegistrationParameterScalesFromIndexShift.h:83
itk::RegistrationParameterScalesFromIndexShift::FixedPointType
typename FixedImageType::PointType FixedPointType
Definition: itkRegistrationParameterScalesFromIndexShift.h:75
itk::RegistrationParameterScalesEstimator::ParametersType
typename Superclass::ParametersType ParametersType
Definition: itkRegistrationParameterScalesEstimator.h:99
itk::RegistrationParameterScalesEstimator::FloatType
typename Superclass::FloatType FloatType
Definition: itkRegistrationParameterScalesEstimator.h:102
itk::RegistrationParameterScalesFromIndexShift::FixedImageType
typename TMetric::FixedImageType FixedImageType
Definition: itkRegistrationParameterScalesFromIndexShift.h:69
itk::GTest::TypedefsAndConstructors::Dimension2::PointType
ImageBaseType::PointType PointType
Definition: itkGTestTypedefsAndConstructors.h:51
itk::RegistrationParameterScalesEstimator::ScalesType
typename Superclass::ScalesType ScalesType
Definition: itkRegistrationParameterScalesEstimator.h:96
itk::SmartPointer< Self >
itk::RegistrationParameterScalesFromIndexShift::MovingPointType
typename MovingImageType::PointType MovingPointType
Definition: itkRegistrationParameterScalesFromIndexShift.h:81
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::RegistrationParameterScalesEstimator::JacobianType
typename TMetric::JacobianType JacobianType
Definition: itkRegistrationParameterScalesEstimator.h:148
itkRegistrationParameterScalesFromShiftBase.h
itk::RegistrationParameterScalesEstimator::VirtualPointType
typename TMetric::VirtualPointType VirtualPointType
Definition: itkRegistrationParameterScalesEstimator.h:126
itk::RegistrationParameterScalesFromIndexShift::FixedContinuousIndexType
typename itk::ContinuousIndex< FixedPointValueType, FixedImageType::ImageDimension > FixedContinuousIndexType
Definition: itkRegistrationParameterScalesFromIndexShift.h:79
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::RegistrationParameterScalesFromIndexShift::MovingImageType
typename TMetric::MovingImageType MovingImageType
Definition: itkRegistrationParameterScalesFromIndexShift.h:70
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::RegistrationParameterScalesFromIndexShift::MovingImageConstPointer
typename MovingImageType::ConstPointer MovingImageConstPointer
Definition: itkRegistrationParameterScalesFromIndexShift.h:73
itk::RegistrationParameterScalesEstimator::MovingTransformType
typename MetricType::MovingTransformType MovingTransformType
Definition: itkRegistrationParameterScalesEstimator.h:112
itk::RegistrationParameterScalesFromIndexShift::FixedPointValueType
typename FixedImageType::PointValueType FixedPointValueType
Definition: itkRegistrationParameterScalesFromIndexShift.h:77
itk::RegistrationParameterScalesEstimator::FixedTransformType
typename MetricType::FixedTransformType FixedTransformType
Definition: itkRegistrationParameterScalesEstimator.h:109
itk::RegistrationParameterScalesFromShiftBase
Registration helper base class for estimating scales of transform parameters from the maximum voxel s...
Definition: itkRegistrationParameterScalesFromShiftBase.h:44
itk::RegistrationParameterScalesFromIndexShift
Registration helper class for estimating scales of transform parameters from the maximum voxel shift ...
Definition: itkRegistrationParameterScalesFromIndexShift.h:35
itk::RegistrationParameterScalesFromIndexShift::MovingContinuousIndexType
typename itk::ContinuousIndex< MovingPointValueType, MovingImageType::ImageDimension > MovingContinuousIndexType
Definition: itkRegistrationParameterScalesFromIndexShift.h:86
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::RegistrationParameterScalesFromIndexShift::MovingIndexType
typename MovingImageType::IndexType MovingIndexType
Definition: itkRegistrationParameterScalesFromIndexShift.h:82
itk::ContinuousIndex
A templated class holding a point in n-Dimensional image space.
Definition: itkContinuousIndex.h:46
itk::RegistrationParameterScalesFromIndexShift::FixedImageConstPointer
typename FixedImageType::ConstPointer FixedImageConstPointer
Definition: itkRegistrationParameterScalesFromIndexShift.h:72
itk::RegistrationParameterScalesEstimator::VirtualIndexType
typename TMetric::VirtualIndexType VirtualIndexType
Definition: itkRegistrationParameterScalesEstimator.h:127
itk::RegistrationParameterScalesEstimator::VirtualImageConstPointer
typename TMetric::VirtualImageConstPointer VirtualImageConstPointer
Definition: itkRegistrationParameterScalesEstimator.h:121
itk::RegistrationParameterScalesFromIndexShift::FixedIndexType
typename FixedImageType::IndexType FixedIndexType
Definition: itkRegistrationParameterScalesFromIndexShift.h:76