go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkAdvancedSimilarity3DTransform.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
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/*=========================================================================
19
20 Program: Insight Segmentation & Registration Toolkit
21 Module: $RCSfile: itkAdvancedSimilarity3DTransform.h,v $
22 Date: $Date: 2006-08-09 04:35:32 $
23 Version: $Revision: 1.3 $
24
25 Copyright (c) Insight Software Consortium. All rights reserved.
26 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
27
28 This software is distributed WITHOUT ANY WARRANTY; without even
29 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
30 PURPOSE. See the above copyright notices for more information.
31
32=========================================================================*/
33#ifndef itkAdvancedSimilarity3DTransform_h
34#define itkAdvancedSimilarity3DTransform_h
35
36#include <iostream>
38
39namespace itk
40{
41
61template <class TScalarType = double>
62// Data type for scalars (float or double)
63class ITK_TEMPLATE_EXPORT AdvancedSimilarity3DTransform : public AdvancedVersorRigid3DTransform<TScalarType>
64{
65public:
67
71 using Pointer = SmartPointer<Self>;
72 using ConstPointer = SmartPointer<const Self>;
73
75 itkNewMacro(Self);
76
79
81 itkStaticConstMacro(SpaceDimension, unsigned int, 3);
82 itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
83 itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
84 itkStaticConstMacro(ParametersDimension, unsigned int, 7);
85
87 using typename Superclass::ParametersType;
88 using typename Superclass::NumberOfParametersType;
89 using typename Superclass::JacobianType;
90 using typename Superclass::ScalarType;
91 using typename Superclass::InputPointType;
92 using typename Superclass::OutputPointType;
93 using typename Superclass::InputVectorType;
94 using typename Superclass::OutputVectorType;
95 using typename Superclass::InputVnlVectorType;
96 using typename Superclass::OutputVnlVectorType;
97 using typename Superclass::InputCovariantVectorType;
98 using typename Superclass::OutputCovariantVectorType;
99 using typename Superclass::MatrixType;
100 using typename Superclass::InverseMatrixType;
101 using typename Superclass::CenterType;
102 using typename Superclass::OffsetType;
103 using typename Superclass::TranslationType;
104
106 using typename Superclass::VersorType;
107 using typename Superclass::AxisType;
108 using typename Superclass::AngleType;
110
112 using typename Superclass::SpatialJacobianType;
114 using typename Superclass::SpatialHessianType;
116 using typename Superclass::InternalMatrixType;
117
123 void
124 SetMatrix(const MatrixType & matrix) override;
125
130 void
131 SetParameters(const ParametersType & parameters) override;
132
133 const ParametersType &
134 GetParameters() const override;
135
137 void
139
140 itkGetConstReferenceMacro(Scale, ScaleType);
141
143 void
144 GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override;
145
146protected:
147 AdvancedSimilarity3DTransform(unsigned int outputSpaceDim, unsigned int paramDim);
148 AdvancedSimilarity3DTransform(const MatrixType & matrix, const OutputVectorType & offset);
150 ~AdvancedSimilarity3DTransform() override = default;
151
152 void
153 PrintSelf(std::ostream & os, Indent indent) const override;
154
157 void
158 ComputeMatrix() override;
159
161 void
163
165 virtual void
167
168private:
169 ScaleType m_Scale{};
170};
171
172// class AdvancedSimilarity3DTransform
173
174} // namespace itk
175
176#ifndef ITK_MANUAL_INSTANTIATION
177# include "itkAdvancedSimilarity3DTransform.hxx"
178#endif
179
180#endif /* itkAdvancedSimilarity3DTransform_h */
AdvancedSimilarity3DTransform of a vector space (e.g. space coordinates)
~AdvancedSimilarity3DTransform() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
itkStaticConstMacro(SpaceDimension, unsigned int, 3)
AdvancedSimilarity3DTransform(const MatrixType &matrix, const OutputVectorType &offset)
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3)
void SetMatrix(const MatrixType &matrix) override
void GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override
ITK_DISALLOW_COPY_AND_MOVE(AdvancedSimilarity3DTransform)
AdvancedSimilarity3DTransform(unsigned int outputSpaceDim, unsigned int paramDim)
const ParametersType & GetParameters() const override
itkStaticConstMacro(ParametersDimension, unsigned int, 7)
itkStaticConstMacro(InputSpaceDimension, unsigned int, 3)
void SetScale(ScaleType scale)
virtual void PrecomputeJacobianOfSpatialJacobian()
void SetParameters(const ParametersType &parameters) override
typename SpatialJacobianType::InternalMatrixType InternalMatrixType
FixedArray< Matrix< ScalarType, InputSpaceDimension, InputSpaceDimension >, OutputSpaceDimension > SpatialHessianType
Matrix< ScalarType, OutputSpaceDimension, InputSpaceDimension > SpatialJacobianType
AdvancedVersorRigid3DTransform of a vector space (e.g. space coordinates)


Generated on 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo