skshapes.morphing.validation.validate_polydata_morphing_model

skshapes.morphing.validation.validate_polydata_morphing_model(model, shape)

Test a model with a PolyData shape.

This function does basic tests on a model with a PolyData shape. In order to be used in a task such as Registration, the model must fulfill some requirements.

It checks that the parameter tensor can be initialized automatically from the model and that the morph induces a transformation that is differentiable with respect to the parameter.

Parameters:
Return type:

None

Examples

import skshapes as sks shape_3d = sks.Sphere() shape_2d = sks.Circle() model = sks.RigidMotion() sks.validate_model_polydata(model, shape_3d) sks.validate_model_polydata(model, shape_2d)