38 momentum::Character& character,
40 std::span<
const std::vector<momentum::Marker>> markerData,
42 size_t firstFrame = 0,
44 std::span<const GloveFrameData> leftGloveData = {},
45 std::span<const GloveFrameData> rightGloveData = {},
46 const std::optional<GloveConfig>& gloveConfig = std::nullopt,
47 std::span<const CameraKeypointData> cameraKeypointData = {},
48 std::vector<size_t>* selectedFrameIndices =
nullptr,
49 Eigen::MatrixXf* selectedFrameMotion =
nullptr);
70 momentum::Character& character,
72 const std::vector<std::vector<momentum::Marker>>& markerData,
75 bool calibrate =
true,
76 size_t firstFrame = 0,
78 std::span<const GloveFrameData> leftGloveData = {},
79 std::span<const GloveFrameData> rightGloveData = {},
80 const std::optional<GloveConfig>& gloveConfig = std::nullopt,
81 std::span<const CameraKeypointData> cameraKeypointData = {});
86 const std::string& inputMarkerFile,
87 const std::string& outputFile,
92 size_t firstFrame = 0,
93 size_t maxFrames = 0);
void processMarkerFile(const std::string &inputMarkerFile, const std::string &outputFile, const TrackingConfig &trackingConfig, const CalibrationConfig &calibrationConfig, const ModelOptions &modelOptions, bool calibrate, size_t firstFrame, size_t maxFrames)
Runs marker tracking on an input marker file (e.g.
void calibrateMarkers(momentum::Character &character, momentum::ModelParameters &identity, std::span< const std::vector< momentum::Marker > > markerData, const CalibrationConfig &calibrationConfig, size_t firstFrame, size_t maxFrames, std::span< const GloveFrameData > leftGloveData, std::span< const GloveFrameData > rightGloveData, const std::optional< GloveConfig > &gloveConfig, std::span< const CameraKeypointData > cameraKeypointData, std::vector< size_t > *selectedFrameIndices, Eigen::MatrixXf *selectedFrameMotion)
Calibrates a character model using marker data without running full tracking.
Eigen::MatrixXf processMarkers(momentum::Character &character, momentum::ModelParameters &identity, const std::vector< std::vector< momentum::Marker > > &markerData, const TrackingConfig &trackingConfig, const CalibrationConfig &calibrationConfig, bool calibrate, size_t firstFrame, size_t maxFrames, std::span< const GloveFrameData > leftGloveData, std::span< const GloveFrameData > rightGloveData, const std::optional< GloveConfig > &gloveConfig, std::span< const CameraKeypointData > cameraKeypointData)
Processes marker data for a character model.
ModelParametersT< float > ModelParameters
Configuration for running body and/or locator calibration.
Configuration for pose tracking given a calibrated body and locators.