go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkRecursiveBSplineTransform.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 __itkRecursiveBSplineTransform_h
19 #define __itkRecursiveBSplineTransform_h
20 
22 
24 
25 namespace itk
26 {
36 template< typename TScalarType = double,
37  unsigned int NDimensions = 3,
38  unsigned int VSplineOrder = 3 >
40  public AdvancedBSplineDeformableTransform< TScalarType, NDimensions, VSplineOrder >
41 {
42 public:
43 
47  TScalarType, NDimensions, VSplineOrder > Superclass;
49  typedef SmartPointer< const Self > ConstPointer;
50 
52  itkNewMacro( Self );
53 
56 
58  itkStaticConstMacro( SpaceDimension, unsigned int, NDimensions );
59 
61  itkStaticConstMacro( SplineOrder, unsigned int, VSplineOrder );
62 
78 
80  typedef typename Superclass::PixelType PixelType;
81  typedef typename Superclass::ImageType ImageType;
83  //typedef typename Superclass::CoefficientImageArray CoefficientImageArray;
84 
87  typedef typename Superclass::IndexType IndexType;
88  typedef typename Superclass::SizeType SizeType;
93  typedef typename GridOffsetType::OffsetValueType OffsetValueType;
94 
103 
113 
116 
118  TScalarType, NDimensions, VSplineOrder > RecursiveBSplineWeightFunctionType; //TODO: get rid of this and use the kernels directly.
119 
124 
129 
134  virtual OutputPointType TransformPoint( const InputPointType & point ) const;
135 
137  virtual void GetJacobian(
138  const InputPointType & ipp,
139  JacobianType & j,
140  NonZeroJacobianIndicesType & nonZeroJacobianIndices ) const;
141 
146  const InputPointType & ipp,
147  const MovingImageGradientType & movingImageGradient,
148  DerivativeType & imageJacobian,
149  NonZeroJacobianIndicesType & nonZeroJacobianIndices ) const;
150 
152  virtual void GetSpatialJacobian(
153  const InputPointType & ipp,
154  SpatialJacobianType & sj ) const;
155 
157  virtual void GetSpatialHessian(
158  const InputPointType & ipp,
159  SpatialHessianType & sh ) const;
160 
162  virtual void GetJacobianOfSpatialJacobian(
163  const InputPointType & ipp,
164  JacobianOfSpatialJacobianType & jsj,
165  NonZeroJacobianIndicesType & nonZeroJacobianIndices ) const;
166 
170  virtual void GetJacobianOfSpatialJacobian(
171  const InputPointType & ipp,
172  SpatialJacobianType & sj,
173  JacobianOfSpatialJacobianType & jsj,
174  NonZeroJacobianIndicesType & nonZeroJacobianIndices ) const;
175 
177  virtual void GetJacobianOfSpatialHessian(
178  const InputPointType & ipp,
179  JacobianOfSpatialHessianType & jsh,
180  NonZeroJacobianIndicesType & nonZeroJacobianIndices ) const;
181 
185  virtual void GetJacobianOfSpatialHessian(
186  const InputPointType & ipp,
187  SpatialHessianType & sh,
188  JacobianOfSpatialHessianType & jsh,
189  NonZeroJacobianIndicesType & nonZeroJacobianIndices ) const;
190 
191 protected:
192 
195 
198 
200 
202  virtual void ComputeNonZeroJacobianIndices(
203  NonZeroJacobianIndicesType & nonZeroJacobianIndices,
204  const RegionType & supportRegion ) const;
205 
206 private:
207 
208  RecursiveBSplineTransform( const Self & ); // purposely not implemented
209  void operator=( const Self & ); // purposely not implemented
210 
211 };
212 
213 } // end namespace itk
214 
215 #ifndef ITK_MANUAL_INSTANTIATION
216 #include "itkRecursiveBSplineTransform.hxx"
217 #endif
218 
219 #endif /* __itkRecursiveBSplineTransform_h */
virtual void GetSpatialJacobian(const InputPointType &ipp, SpatialJacobianType &sj) const
BSplineKernelFunction2< itkGetStaticConstMacro(SplineOrder) > KernelType
itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions)
Superclass::InternalMatrixType InternalMatrixType
virtual void GetJacobian(const InputPointType &ipp, JacobianType &j, NonZeroJacobianIndicesType &nonZeroJacobianIndices) const
Superclass::SpatialHessianType SpatialHessianType
Deformable transform using a B-spline representation.
Superclass::MovingImageGradientValueType MovingImageGradientValueType
virtual void GetJacobianOfSpatialJacobian(const InputPointType &ipp, JacobianOfSpatialJacobianType &jsj, NonZeroJacobianIndicesType &nonZeroJacobianIndices) const
BSplineDerivativeKernelFunction2< itkGetStaticConstMacro(SplineOrder) > DerivativeKernelType
BSplineSecondOrderDerivativeKernelFunction2< itkGetStaticConstMacro(SplineOrder) > SecondOrderDerivativeKernelType
Superclass::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
itk::RecursiveBSplineInterpolationWeightFunction< TScalarType, NDimensions, VSplineOrder > RecursiveBSplineWeightFunctionType
BSplineInterpolationSecondOrderDerivativeWeightFunction< ScalarType, itkGetStaticConstMacro(SpaceDimension), itkGetStaticConstMacro(SplineOrder) > SODerivativeWeightsFunctionType
DerivativeKernelType::Pointer m_DerivativeKernel
Superclass::MovingImageGradientType MovingImageGradientType
virtual void EvaluateJacobianWithImageGradientProduct(const InputPointType &ipp, const MovingImageGradientType &movingImageGradient, DerivativeType &imageJacobian, NonZeroJacobianIndicesType &nonZeroJacobianIndices) const
Superclass::GridOffsetType GridOffsetType
ImageRegion< itkGetStaticConstMacro(SpaceDimension) > RegionType
Superclass ::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType
BSplineInterpolationWeightFunction2< ScalarType, itkGetStaticConstMacro(SpaceDimension), itkGetStaticConstMacro(SplineOrder) > WeightsFunctionType
Superclass::DerivativeWeightsFunctionPointer DerivativeWeightsFunctionPointer
BSplineInterpolationDerivativeWeightFunction< ScalarType, itkGetStaticConstMacro(SpaceDimension), itkGetStaticConstMacro(SplineOrder) > DerivativeWeightsFunctionType
Superclass ::JacobianOfSpatialHessianType JacobianOfSpatialHessianType
SecondOrderDerivativeKernelType::Pointer m_SecondOrderDerivativeKernel
Superclass::MovingImageGradientValueType MovingImageGradientValueType
Superclass::ParametersType ParametersType
Superclass::JacobianOfSpatialHessianType JacobianOfSpatialHessianType
Superclass::WeightsFunctionPointer WeightsFunctionPointer
Image< JacobianPixelType, itkGetStaticConstMacro(SpaceDimension) > JacobianImageType
Superclass::DerivativeWeightsFunctionType DerivativeWeightsFunctionType
Returns the weights over the support region used for B-spline interpolation/reconstruction.
Superclass::ParametersValueType ParametersValueType
Superclass::SODerivativeWeightsFunctionPointer SODerivativeWeightsFunctionPointer
Superclass::InputVectorType InputVectorType
Superclass::SODerivativeWeightsFunctionType SODerivativeWeightsFunctionType
virtual OutputPointType TransformPoint(const InputPointType &point) const
virtual void ComputeNonZeroJacobianIndices(NonZeroJacobianIndicesType &nonZeroJacobianIndices, const RegionType &supportRegion) const
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::OutputCovariantVectorType OutputCovariantVectorType
A recursive implementation of the B-spline transform.
Superclass::InputPointType InputPointType
Superclass::SpatialJacobianType SpatialJacobianType
Superclass::DerivativeType DerivativeType
Superclass::OutputPointType OutputPointType
Superclass ::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
virtual void GetJacobianOfSpatialHessian(const InputPointType &ipp, JacobianOfSpatialHessianType &jsh, NonZeroJacobianIndicesType &nonZeroJacobianIndices) const
Superclass::ContinuousIndexType ContinuousIndexType
GridOffsetType::OffsetValueType OffsetValueType
Superclass::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType
ContinuousIndex< ScalarType, SpaceDimension > ContinuousIndexType
Superclass::JacobianImageType JacobianImageType
Superclass::NumberOfParametersType NumberOfParametersType
Superclass::WeightsFunctionType WeightsFunctionType
Superclass::JacobianPixelType JacobianPixelType
RecursiveBSplineWeightFunctionType::Pointer m_RecursiveBSplineWeightFunction
B-spline kernel used for density estimation and nonparameteric regression.
Superclass::InputVnlVectorType InputVnlVectorType
DerivativeWeightsFunctionType::Pointer DerivativeWeightsFunctionPointer
AdvancedBSplineDeformableTransform< TScalarType, NDimensions, VSplineOrder > Superclass
Derivative of a B-spline kernel used for density estimation and nonparametric regression.
SODerivativeWeightsFunctionType::Pointer SODerivativeWeightsFunctionPointer
virtual void GetSpatialHessian(const InputPointType &ipp, SpatialHessianType &sh) const
Superclass::OutputVnlVectorType OutputVnlVectorType
Derivative of a B-spline kernel used for density estimation and nonparametric regression.
Superclass::OutputVectorType OutputVectorType
void operator=(const Self &)
Superclass::ParameterIndexArrayType ParameterIndexArrayType


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.13 elastix logo