Skip to main content

SkeletonTemplate Objects

class SkeletonTemplate(SkeletonTemplateORM)

required_vertices

@property
def required_vertices() -> Set[str]
Get the set of required vertex names for the skeleton. Returns:
  • Set[str] - A set containing the names of the required vertices.

create_instance

def create_instance(
        provided_coordinates: List[SkeletonCoordinate]) -> SkeletonCoordinates
Create an instance of SkeletonCoordinates with the provided coordinates. Arguments:
  • provided_coordinates List[SkeletonCoordinate] - A list of SkeletonCoordinate objects to align.
Returns:
  • SkeletonCoordinates - An instance of SkeletonCoordinates with aligned coordinates.
Raises:
  • ValueError - If the provided vertices do not match the required vertices.