nicetoolbox.evaluation.metrics.joints.bone_length.BoneLengthMetric

class nicetoolbox.evaluation.metrics.joints.bone_length.BoneLengthMetric(metrics_config: BaseMetricConfig, config_handler: ConfigHandler)[source]

Bases: BaseMetric

Compute L2 bone lengths per frame from joint positions.

Single-input metric (no ground truth). Uses human_pose.bone_dict to map semantic joint names to bone endpoint pairs.

Parameters:
  • metrics_config – Metric-specific configuration.

  • config_handler – Shared config handler with project and evaluation configs.

Methods

compute

Execute the metric end-to-end: load data, compute, return results.

Attributes

metric_config

bones

metric_name

config_handler

compute() MetricResult[source]

Execute the metric end-to-end: load data, compute, return results.

Returns:

MetricResult containing summary tables, per-frame arrays, and plots.