skshapes.applications.vertices_landmark_setter.LandmarkSetter
- class skshapes.applications.vertices_landmark_setter.LandmarkSetter(shapes)
Bases:
object
Landmark setter for a PolyData or a list of PolyData.
Select landmarks on a single shape or corresponding landmarks on a set of shapes. Landmarks are vertices of the shape(s).
If a list is provided, the first shape is considered as the reference shape and the landmarks are selected on this shape. Then, the same landmarks must be selected on the other shapes.
- Parameters:
shapes (
list
[polydata_type
] |polydata_type
) – The shape or list of shapes on which the landmarks are selected.
Examples
import skshapes as sks from pyvista import examples shape1 = sks.PolyData(examples.download_human()) shape2 = sks.PolyData(examples.download_doorman()) app = sks.LandmarkSetter([shape1, shape2]) app.start() # Landmarks are now stored in the shapes shape1.landmark_indices # The indices of the landmarks on shape1 shape2.landmark_points # The coordinates of the landmarks on shape2
See [here](../../../generated/gallery/applications/plot_landmark_setter/) for the full example.
- __init__(shapes)
Methods
__init__
(shapes)start
()Start the landmark setter.
- start()
Start the landmark setter.