skshapes.loss.varifold.varifold_scalar
- skshapes.loss.varifold.varifold_scalar(shape1, shape2, radial_kernel, sigma, zonal_kernel)
Compute the varifold loss between two shapes.
The formula implemented here is based on the paper “Elastic shape analysis of surfaces with second-order Sobolev metrics: a comprehensive numerical framework” (https://arxiv.org/abs/2204.04238), equation (4.4).
- Parameters:
shape1 (
polydata_type
) – the first shapeshape2 (
polydata_type
) – the second shapesigma – the bandwidth of the Gaussian kernel
- Return type:
Float32[Tensor, '']