go home Home | Main Page | Topics | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Loading...
Searching...
No Matches
itkComputePreconditionerUsingDisplacementDistribution.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 itkComputePreconditionerUsingDisplacementDistribution_h
19#define itkComputePreconditionerUsingDisplacementDistribution_h
20
22
23
24namespace itk
25{
38
39template <typename TFixedImage, typename TTransform>
41 : public ComputeDisplacementDistribution<TFixedImage, TTransform>
42{
43public:
45
49 using Pointer = SmartPointer<Self>;
50 using ConstPointer = SmartPointer<const Self>;
51
53 itkNewMacro(Self);
54
57
59 using typename Superclass::FixedImageType;
61 using typename Superclass::TransformType;
62 using typename Superclass::TransformPointer;
64 using typename Superclass::ParametersType;
65 using typename Superclass::DerivativeType;
66 using typename Superclass::ScalesType;
67 using typename Superclass::FixedImageMaskType;
71
72 // check
73 itkStaticConstMacro(FixedImageDimension, unsigned int, TFixedImage::ImageDimension);
74
76 itkSetClampMacro(RegularizationKappa, double, 0.0, 1.0);
77 itkGetConstReferenceMacro(RegularizationKappa, double);
78
80 itkSetMacro(MaximumStepLength, double);
81 itkGetConstReferenceMacro(MaximumStepLength, double);
82
84 itkSetClampMacro(ConditionNumber, double, 0.0, 10.0);
85 itkGetConstReferenceMacro(ConditionNumber, double);
86
90 void
91 Compute(const ParametersType & mu, double & jacg, double & maxJJ, std::string method) override;
92
96 void
97 Compute(const ParametersType & mu, double & maxJJ, ParametersType & preconditioner) const;
98
99 void
100 ComputeJacobiTypePreconditioner(double & maxJJ, ParametersType & preconditioner);
101
103 virtual void
104 PreconditionerInterpolation(ParametersType & preconditioner);
105
106protected:
109
110 using typename Superclass::FixedImageIndexType;
111 using typename Superclass::FixedImagePointType;
112 using typename Superclass::JacobianType;
113 using typename Superclass::JacobianValueType;
114 using typename Superclass::ImageSampleType;
118
122};
123
124} // end namespace itk
125
126#ifndef ITK_MANUAL_INSTANTIATION
127# include "itkComputePreconditionerUsingDisplacementDistribution.hxx"
128#endif
129
130#endif // end #ifndef itkComputePreconditionerUsingDisplacementDistribution_h
ITK_DISALLOW_COPY_AND_MOVE(ComputePreconditionerUsingDisplacementDistribution)
void Compute(const ParametersType &mu, double &jacg, double &maxJJ, std::string method) override
itkStaticConstMacro(FixedImageDimension, unsigned int, TFixedImage::ImageDimension)
void ComputeJacobiTypePreconditioner(double &maxJJ, ParametersType &preconditioner)
virtual void PreconditionerInterpolation(ParametersType &preconditioner)
void Compute(const ParametersType &mu, double &maxJJ, ParametersType &preconditioner) const
itkOverrideGetNameOfClassMacro(ComputePreconditionerUsingDisplacementDistribution)


Generated on 1774142652 for elastix by doxygen 1.15.0 elastix logo