Skip to content

Commit

Permalink
Add new measurement definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBoja committed Nov 5, 2024
1 parent a5fa867 commit 22324d1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions measurement_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,31 @@ class SMPLMeasurementDefinitions():
(SMPL_LANDMARK_INDICES["LEFT_SHOULDER"],
SMPL_LANDMARK_INDICES["RIGHT_SHOULDER"]
),
"arm length (shoulder to elbow)":
(
# SMPL_LANDMARK_INDICES["LEFT_SHOULDER"],
# SMPL_LANDMARK_INDICES["LEFT_ELBOW"]
SMPL_LANDMARK_INDICES["Rt. Acromion"],
SMPL_LANDMARK_INDICES["Rt. Humeral Lateral Epicn"]
),
"crotch height":
(SMPL_LANDMARK_INDICES["CROTCH"],
SMPL_LANDMARK_INDICES["HEELS"]
),
"Hip circumference max height":
(SMPL_LANDMARK_INDICES["PUBIC_BONE"],
SMPL_LANDMARK_INDICES["HEELS"]
),
# FIXME: implement geodesic distance for this measurement
"arm length (spine to wrist)":
(
# SMPL_LANDMARK_INDICES["SHOULDER_TOP"],
# SMPL_LANDMARK_INDICES["LEFT_WRIST"]
SMPL_LANDMARK_INDICES["Cervicale"],
SMPL_LANDMARK_INDICES["Rt. Acromion"],
SMPL_LANDMARK_INDICES["Rt. Humeral Lateral Epicn"],
SMPL_LANDMARK_INDICES["Rt. Ulnar Styloid"]
),
}

# defined with landmarks and joints
Expand Down

0 comments on commit 22324d1

Please sign in to comment.