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 shape

  • shape2 (polydata_type) – the second shape

  • sigma – the bandwidth of the Gaussian kernel

Return type:

Float32[Tensor, '']