go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkCyclicBSplineDeformableTransform.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#ifndef itkCyclicBSplineDeformableTransform_h
19#define itkCyclicBSplineDeformableTransform_h
20
22#include "itkImage.h"
23#include "itkImageRegion.h"
29
30namespace itk
31{
32
40template <class TScalarType = double, // Data type for scalars
41 unsigned int NDimensions = 3, // Number of dimensions
42 unsigned int VSplineOrder = 3>
43// Spline order
44class ITK_TEMPLATE_EXPORT CyclicBSplineDeformableTransform
45 : public AdvancedBSplineDeformableTransform<TScalarType, NDimensions, VSplineOrder>
46{
47public:
49
53 using Pointer = SmartPointer<Self>;
54 using ConstPointer = SmartPointer<const Self>;
55
57 itkNewMacro(Self);
58
61
63 itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions);
64
66 itkStaticConstMacro(SplineOrder, unsigned int, VSplineOrder);
67
68 using typename Superclass::JacobianType;
72 using typename Superclass::SpatialHessianType;
74 using typename Superclass::InternalMatrixType;
75 using typename Superclass::ParametersType;
76 using typename Superclass::NumberOfParametersType;
77
79 using PixelType = typename ParametersType::ValueType;
81 using ImagePointer = typename ImageType::Pointer;
82
83 using typename Superclass::RegionType;
84 using IndexType = typename RegionType::IndexType;
85 using SizeType = typename RegionType::SizeType;
86 using SpacingType = typename ImageType::SpacingType;
87 using DirectionType = typename ImageType::DirectionType;
88 using OriginType = typename ImageType::PointType;
89 using GridOffsetType = typename RegionType::IndexType;
90 using typename Superclass::InputPointType;
91 using typename Superclass::OutputPointType;
92 using typename Superclass::WeightsType;
95 using typename Superclass::ScalarType;
96 using typename Superclass::JacobianImageType;
97 using typename Superclass::JacobianPixelType;
100 BSplineInterpolationWeightFunction2<ScalarType, Self::SpaceDimension - 1, VSplineOrder>;
102
104 void
105 SetGridRegion(const RegionType & region) override;
106
108 OutputPointType
109 TransformPoint(const InputPointType & point) const override;
110
112 virtual void
113 GetJacobian(const InputPointType & inputPoint, WeightsType & weights, ParameterIndexArrayType & indices) const;
114
116 void
117 GetSpatialJacobian(const InputPointType & inputPoint, SpatialJacobianType & sj) const override;
118
119protected:
122
123 void
125 const RegionType & supportRegion) const override;
126
128 bool
129 InsideValidRegion(const ContinuousIndexType & index) const override;
130
132 virtual void
133 SplitRegion(const RegionType & imageRegion,
134 const RegionType & inRegion,
135 RegionType & outRegion1,
136 RegionType & outRegion2) const;
137
138private:
139 // Private using-declaration, to avoid `-Woverloaded-virtual` warnings from GCC (GCC 11.4) or clang (macos-12).
140 using Superclass::GetJacobian;
141};
142
143} // namespace itk
144
145#ifndef ITK_MANUAL_INSTANTIATION
146# include "itkCyclicBSplineDeformableTransform.hxx"
147#endif
148
149#endif /* itkCyclicBSplineDeformableTransform_h */
Deformable transform using a B-spline representation.
typename WeightsFunctionType::WeightsType WeightsType
typename WeightsFunctionType::ContinuousIndexType ContinuousIndexType
typename SpatialJacobianType::InternalMatrixType InternalMatrixType
FixedArray< Matrix< ScalarType, InputSpaceDimension, InputSpaceDimension >, OutputSpaceDimension > SpatialHessianType
Matrix< ScalarType, OutputSpaceDimension, InputSpaceDimension > SpatialJacobianType
Returns the weights over the support region used for B-spline interpolation/reconstruction.
ContinuousIndex< TCoordRep, VSpaceDimension > ContinuousIndexType
Deformable transform using a B-spline representation in which the B-spline grid is formulated in a cy...
typename WeightsFunctionType::WeightsType WeightsType
itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions)
itkStaticConstMacro(SplineOrder, unsigned int, VSplineOrder)
typename RedWeightsFunctionType::ContinuousIndexType RedContinuousIndexType
OutputPointType TransformPoint(const InputPointType &point) const override
virtual void SplitRegion(const RegionType &imageRegion, const RegionType &inRegion, RegionType &outRegion1, RegionType &outRegion2) const
virtual void GetJacobian(const InputPointType &inputPoint, WeightsType &weights, ParameterIndexArrayType &indices) const
~CyclicBSplineDeformableTransform() override=default
void SetGridRegion(const RegionType &region) override
bool InsideValidRegion(const ContinuousIndexType &index) const override
typename WeightsFunctionType::ContinuousIndexType ContinuousIndexType
void GetSpatialJacobian(const InputPointType &inputPoint, SpatialJacobianType &sj) const override
void ComputeNonZeroJacobianIndices(NonZeroJacobianIndicesType &nonZeroJacobianIndices, const RegionType &supportRegion) const override
ITK_DISALLOW_COPY_AND_MOVE(CyclicBSplineDeformableTransform)


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