Deformation Grid¶
- class DeformationModules.SilentLandmark.DeformationGrid(aabb, resolution, label=None)[source]¶
Helper class to manipulate deformation grids as deformation modules. Built on top of silent module
- __call__(points, k=0)¶
Computes the k’th derivative of the module generated vector field at positions given by points.
- Parameters
points (torch.Tensor) – A \(N \times d\) dimensioned tensor representing the points at which the generated vector field will be computed
k (int, default=0) – The order of the derivative at which the generated vector field will be computed
- Returns
A tensor representing the values of the k’th derivative of the generated vector field at positions given by points. For \(k=0\), the output tensor is of shape \(N \times d\). For \(k=1\), the output tensor is of shape \(N \times d \times d\), and so on for subsequent orders.
- Return type
- property aabb¶
- adjoint(manifold)¶
- classmethod build(dim, nb_pts, manifold, gd=None, tan=None, cotan=None, label=None, **kwargs)¶
- compute_geodesic_control(man)¶
Computes the geodesic control of the deformation module on the specified manifold.
- Parameters
manifold (Manifolds.BaseManifold) – Manifold on which we will compute the geodesic controls
- property controls¶
- copy()¶
Returns a copy of the deformation module.
- cost()¶
Computes the cost of the deformation given by the module.
- Returns
The cost as a scalar tensor.
- Return type
- property device¶
- property dim¶
- field_generator()¶
Gives the vector field generated by the deformation module.
- Returns
The vector field generated by the module
- Return type
StructuredField.BaseStructuredField
- fill_controls(controls)¶
- fill_controls_zero()¶
- property label¶
Identifier for the module.
- property manifold¶
- property resolution¶
- to_(*args, **kwargs)¶