go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkTransformPenaltyTerm.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 itkTransformPenaltyTerm_h
19#define itkTransformPenaltyTerm_h
20
22
23// Needed for checking for B-spline for faster implementation
26
27namespace itk
28{
44template <class TFixedImage, class TScalarType = double>
45class ITK_TEMPLATE_EXPORT TransformPenaltyTerm : public AdvancedImageToImageMetric<TFixedImage, TFixedImage>
46{
47public:
49
53 using Pointer = SmartPointer<Self>;
54 using ConstPointer = SmartPointer<const Self>;
55
58
60 using typename Superclass::CoordinateRepresentationType;
61 using typename Superclass::MovingImageType;
62 using typename Superclass::MovingImagePixelType;
63 using typename Superclass::MovingImagePointer;
64 using typename Superclass::MovingImageConstPointer;
65 using typename Superclass::FixedImageType;
66 using typename Superclass::FixedImagePointer;
67 using typename Superclass::FixedImageConstPointer;
68 using typename Superclass::FixedImageRegionType;
69 // these not: use advanced transform below
70 // using typename Superclass::TransformType;
71 // using typename Superclass::TransformPointer;
72 using typename Superclass::InputPointType;
73 using typename Superclass::OutputPointType;
74 using typename Superclass::TransformParametersType;
75 using typename Superclass::TransformJacobianType;
76 using typename Superclass::InterpolatorType;
77 using typename Superclass::InterpolatorPointer;
78 using typename Superclass::RealType;
79 using typename Superclass::GradientPixelType;
80 using typename Superclass::GradientImageType;
81 using typename Superclass::GradientImagePointer;
82 using typename Superclass::GradientImageFilterType;
83 using typename Superclass::GradientImageFilterPointer;
84 using typename Superclass::FixedImageMaskType;
85 using typename Superclass::FixedImageMaskPointer;
86 using typename Superclass::MovingImageMaskType;
87 using typename Superclass::MovingImageMaskPointer;
88 using typename Superclass::MeasureType;
89 using typename Superclass::DerivativeType;
91 using typename Superclass::ParametersType;
95 using typename Superclass::ThreaderType;
96 using typename Superclass::ThreadInfoType;
97
106
108 using ScalarType = TScalarType; // \todo: not really meaningful name.
109
112 using SpatialJacobianType = typename TransformType::SpatialJacobianType;
113 using JacobianOfSpatialJacobianType = typename TransformType::JacobianOfSpatialJacobianType;
114 using SpatialHessianType = typename TransformType::SpatialHessianType;
115 using JacobianOfSpatialHessianType = typename TransformType::JacobianOfSpatialHessianType;
116 using InternalMatrixType = typename TransformType::InternalMatrixType;
117
119 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
120
121protected:
123 using typename Superclass::FixedImageIndexType;
126 using typename Superclass::FixedImagePointType;
130
133
135 ~TransformPenaltyTerm() override = default;
136
138 virtual bool
140};
141
142} // end namespace itk
143
144#ifndef ITK_MANUAL_INSTANTIATION
145# include "itkTransformPenaltyTerm.hxx"
146#endif
147
148#endif // #ifndef itkTransformPenaltyTerm_h
Deformable transform using a B-spline representation.
This class combines two transforms: an 'initial transform' with a 'current transform'.
An extension of the ITK ImageToImageMetric. It is the intended base class for all elastix metrics.
typename BSplineOrder1TransformType::Pointer BSplineOrder1TransformPointer
typename ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
typename AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
typename FixedImageIndexType::IndexValueType FixedImageIndexValueType
typename ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
typename BSplineOrder3TransformType::Pointer BSplineOrder3TransformPointer
typename BSplineOrder2TransformType::Pointer BSplineOrder2TransformPointer
typename InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
Transform maps points, vectors and covariant vectors from an input space to an output space.
A cost function that calculates a penalty term on a transformation.
~TransformPenaltyTerm() override=default
typename TransformType::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType
typename Superclass::AdvancedTransformType TransformType
typename TransformType::SpatialHessianType SpatialHessianType
SmartPointer< const Self > ConstPointer
virtual bool CheckForBSplineTransform2(BSplineOrder3TransformPointer &bspline) const
typename TransformType::SpatialJacobianType SpatialJacobianType
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
typename TransformType::InternalMatrixType InternalMatrixType
ITK_DISALLOW_COPY_AND_MOVE(TransformPenaltyTerm)
typename TransformType::JacobianOfSpatialHessianType JacobianOfSpatialHessianType


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo