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::FixedImageMaskType;
86 using typename Superclass::MeasureType;
87 using typename Superclass::DerivativeType;
89 using typename Superclass::ParametersType;
93 using typename Superclass::ThreadInfoType;
94
103
105 using ScalarType = TScalarType; // \todo: not really meaningful name.
106
109 using SpatialJacobianType = typename TransformType::SpatialJacobianType;
110 using JacobianOfSpatialJacobianType = typename TransformType::JacobianOfSpatialJacobianType;
111 using SpatialHessianType = typename TransformType::SpatialHessianType;
112 using JacobianOfSpatialHessianType = typename TransformType::JacobianOfSpatialHessianType;
113 using InternalMatrixType = typename TransformType::InternalMatrixType;
114
116 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
117
118protected:
120 using typename Superclass::FixedImageIndexType;
123 using typename Superclass::FixedImagePointType;
127
130
132 ~TransformPenaltyTerm() override = default;
133
135 virtual bool
137};
138
139} // end namespace itk
140
141#ifndef ITK_MANUAL_INSTANTIATION
142# include "itkTransformPenaltyTerm.hxx"
143#endif
144
145#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
ImageMaskSpatialObject< Self::FixedImageDimension > FixedImageMaskType
typename BSplineOrder3TransformType::Pointer BSplineOrder3TransformPointer
typename BSplineOrder2TransformType::Pointer BSplineOrder2TransformPointer
typename InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
ImageMaskSpatialObject< Self::MovingImageDimension > MovingImageMaskType
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 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo