|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
Configuration for pose tracking given a calibrated body and locators. More...
#include <marker_tracker.h>
Public Attributes | |
| float | smoothing = 0 |
| The weight for the smoothness error function. | |
| float | collisionErrorWeight = 0.0 |
| The weight for the collision error function. | |
| float | markerWeight = 1.0f |
| Multiplier for the marker position constraint weight. | |
| Eigen::VectorXf | smoothingWeights {} |
| Smoothing weights per model parameter. | |
| std::optional< ParameterSet > | activeParams |
| Optional mask to restrict which parameters are optimized during tracking. | |
| float | meshConstraintWeight = 1.0f |
| Multiplier for the mesh surface constraint weight on skinned locators. | |
| float | projectionWeight = 0.0f |
| Base weight for 2D keypoint projection constraints. Default 0 (disabled). | |
| GapFillConfig | gapFillConfig |
| Configuration for pre-processing marker gaps before constraint creation. | |
| 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 pose tracking given a calibrated body and locators.
Definition at line 95 of file marker_tracker.h.
| std::optional<ParameterSet> momentum::TrackingConfig::activeParams |
Optional mask to restrict which parameters are optimized during tracking.
When set, this is ANDed with the internally-computed pose parameters (which already exclude identity/locator parameters). Use the character's ParameterTransform to construct a meaningful set, e.g. to exclude finger DOFs from the solve.
Definition at line 110 of file marker_tracker.h.
Referenced by momentum::trackPosesForFrames(), and momentum::trackSequence().
| float momentum::TrackingConfig::collisionErrorWeight = 0.0 |
The weight for the collision error function.
Definition at line 99 of file marker_tracker.h.
Referenced by momentum::trackPosesForFrames(), and momentum::trackSequence().
| GapFillConfig momentum::TrackingConfig::gapFillConfig |
Configuration for pre-processing marker gaps before constraint creation.
Fills temporary gaps via cubic Hermite interpolation and blends off permanent dropouts via linear velocity extrapolation with cosine weight ramp.
Definition at line 119 of file marker_tracker.h.
Referenced by momentum::trackPosesForFrames().
| float momentum::TrackingConfig::markerWeight = 1.0f |
Multiplier for the marker position constraint weight.
Set to 0 to disable marker constraints (useful for debugging other error terms like glove constraints in isolation).
Definition at line 102 of file marker_tracker.h.
Referenced by momentum::trackPosesForFrames().
| float momentum::TrackingConfig::meshConstraintWeight = 1.0f |
Multiplier for the mesh surface constraint weight on skinned locators.
Higher values pull skinned locators closer to the mesh surface during the solve. Default 1.0.
Definition at line 113 of file marker_tracker.h.
Referenced by momentum::calibrateLocators(), and momentum::calibrateModel().
| float momentum::TrackingConfig::projectionWeight = 0.0f |
Base weight for 2D keypoint projection constraints. Default 0 (disabled).
Definition at line 115 of file marker_tracker.h.
Referenced by momentum::calibrateModel().
| float momentum::TrackingConfig::smoothing = 0 |
The weight for the smoothness error function.
Definition at line 97 of file marker_tracker.h.
Referenced by momentum::solveRigidInitialization(), momentum::trackPosesForFrames(), and momentum::trackSequence().
| Eigen::VectorXf momentum::TrackingConfig::smoothingWeights {} |
Smoothing weights per model parameter.
The size of this vector should be equal to number of model parameters and this overrides the value specific in smoothing
Definition at line 105 of file marker_tracker.h.