|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
Configuration for running body and/or locator calibration. More...
#include <marker_tracker.h>
Public Attributes | |
| size_t | calibFrames = 100 |
| Number of frames used in calibration. It will be a uniform sample from the input. | |
| size_t | majorIter = 3 |
| Number of iterations to run the main calibration loop. | |
| bool | globalScaleOnly = false |
| True to only solve for a global body scale without changing individual bone length. | |
| bool | locatorsOnly = false |
| True to calibrate only the locators and not the body. | |
| size_t | greedySampling = 0 |
| Sample uniformly or do a greedy importance sampling. | |
| bool | enforceFloorInFirstFrame = false |
| Force all floor locators to y=0 on frame 0 with high weight. | |
| bool | adaptiveFloorContact = false |
| Enable adaptive floor contact detection during calibration. | |
| std::string | firstFramePoseConstraintSet |
| Name of a pose constraint set to use for the first frame. | |
| bool | calibShape = false |
| Calibrate the character's shape. | |
| float | targetHeightCm = 0.0f |
| Target height in cm for the character, if set to 0, no height constraint is applied. | |
| float | meshConstraintWeight = 1.0f |
| Multiplier for the mesh surface constraint weight on skinned locators during shape calibration. | |
| float | projectionWeight = 0.0f |
| Base weight for 2D keypoint projection constraints. Set to 0 to disable. | |
| float | floorContactPercentile = 1.0f / 3.0f |
| Percentile threshold for adaptive floor contact detection (0-1). | |
| Public Attributes inherited from momentum::BaseConfig | |
| float | minVisPercent = 0.f |
| Minimum percentage of visible markers in a frame to consider for tracking. | |
| float | lossAlpha = 2.0 |
| Parameter to control what loss function to use. | |
| size_t | maxIter = 30 |
| Max number of solver iterations to run. | |
| float | regularization = 0.05f |
| Regularization parameter (lambda) for Levenberg-Marquardt solver. | |
| bool | debug = false |
| True to print and save debug information. | |
Configuration for running body and/or locator calibration.
Definition at line 58 of file marker_tracker.h.
| bool momentum::CalibrationConfig::adaptiveFloorContact = false |
Enable adaptive floor contact detection during calibration.
When true, the solver detects per-locator contact frames using floorContactPercentile and applies soft equality floor constraints on those frames.
Definition at line 76 of file marker_tracker.h.
Referenced by momentum::calibrateLocators(), and momentum::calibrateModel().
| size_t momentum::CalibrationConfig::calibFrames = 100 |
Number of frames used in calibration. It will be a uniform sample from the input.
Definition at line 60 of file marker_tracker.h.
Referenced by momentum::calibrateLocators(), and momentum::calibrateModel().
| bool momentum::CalibrationConfig::calibShape = false |
Calibrate the character's shape.
Definition at line 80 of file marker_tracker.h.
Referenced by momentum::buildCalibBodySets(), and momentum::calibrateModel().
| bool momentum::CalibrationConfig::enforceFloorInFirstFrame = false |
Force all floor locators to y=0 on frame 0 with high weight.
Mutually exclusive with adaptiveFloorContact.
Definition at line 72 of file marker_tracker.h.
Referenced by momentum::calibrateLocators(), and momentum::calibrateModel().
| std::string momentum::CalibrationConfig::firstFramePoseConstraintSet |
Name of a pose constraint set to use for the first frame.
Definition at line 78 of file marker_tracker.h.
Referenced by momentum::calibrateLocators(), and momentum::calibrateModel().
| float momentum::CalibrationConfig::floorContactPercentile = 1.0f / 3.0f |
Percentile threshold for adaptive floor contact detection (0-1).
For each floor locator, frames at or below this percentile of Y heights receive a soft equality floor constraint. Higher values = more frames constrained.
Definition at line 91 of file marker_tracker.h.
Referenced by momentum::calibrateModel().
| bool momentum::CalibrationConfig::globalScaleOnly = false |
True to only solve for a global body scale without changing individual bone length.
Definition at line 65 of file marker_tracker.h.
Referenced by momentum::buildCalibBodySets(), momentum::calibrateMarkers(), and momentum::processMarkers().
| size_t momentum::CalibrationConfig::greedySampling = 0 |
Sample uniformly or do a greedy importance sampling.
Definition at line 69 of file marker_tracker.h.
Referenced by momentum::calibrateLocators(), and momentum::calibrateModel().
| bool momentum::CalibrationConfig::locatorsOnly = false |
True to calibrate only the locators and not the body.
Definition at line 67 of file marker_tracker.h.
Referenced by momentum::calibrateMarkers(), and momentum::processMarkers().
| size_t momentum::CalibrationConfig::majorIter = 3 |
Number of iterations to run the main calibration loop.
It could be larger if calibrating for locators only.
Definition at line 63 of file marker_tracker.h.
Referenced by momentum::calibrateLocators(), and momentum::calibrateModel().
| float momentum::CalibrationConfig::meshConstraintWeight = 1.0f |
Multiplier for the mesh surface constraint weight on skinned locators during shape calibration.
Higher values pull markers more tightly to the mesh surface. Default 1.0.
Definition at line 85 of file marker_tracker.h.
Referenced by momentum::calibrateLocators(), and momentum::calibrateModel().
| float momentum::CalibrationConfig::projectionWeight = 0.0f |
Base weight for 2D keypoint projection constraints. Set to 0 to disable.
Definition at line 87 of file marker_tracker.h.
Referenced by momentum::calibrateModel(), and momentum::logKeypointReprojectionDiagnostic().
| float momentum::CalibrationConfig::targetHeightCm = 0.0f |
Target height in cm for the character, if set to 0, no height constraint is applied.
Definition at line 82 of file marker_tracker.h.
Referenced by momentum::calibrateModel().