Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
momentum::GapFillConfig Struct Reference

Configuration for marker gap filling and blend-off. More...

#include <marker_gap_fill.h>

Public Attributes

bool enabled = false
 Master switch.
size_t maxGapFrames = 30
 Maximum gap length (in frames) to interpolate using cubic Hermite.
size_t maxGapFramesStationary = 90
 Extended maximum gap length (in frames) for near-stationary markers.
double maxGapDisplacement = 5.0
 Displacement threshold (cm) above which the standard maxGapFrames applies.
size_t minVisibleFrames = 60
 Minimum number of visible frames for a segment to be considered reliable.
size_t blendOffFrames = 10
 Number of frames over which to blend off permanently dropped markers.
size_t velocityWindowFrames = 5
 Number of visible frames to use for velocity estimation when extrapolating permanent dropouts.

Detailed Description

Configuration for marker gap filling and blend-off.

Definition at line 17 of file marker_gap_fill.h.

Member Data Documentation

◆ blendOffFrames

size_t momentum::GapFillConfig::blendOffFrames = 10

Number of frames over which to blend off permanently dropped markers.

Uses a cosine ramp from confidence 1.0 to 0.0. Set to 0 to disable blend-off.

Definition at line 49 of file marker_gap_fill.h.

Referenced by momentum::preprocessMarkerGaps().

◆ enabled

bool momentum::GapFillConfig::enabled = false

Master switch.

When false, preprocessMarkerGaps() is a no-op. Default is false (off); callers that want gap filling must opt in.

Definition at line 20 of file marker_gap_fill.h.

Referenced by momentum::preprocessMarkerGaps().

◆ maxGapDisplacement

double momentum::GapFillConfig::maxGapDisplacement = 5.0

Displacement threshold (cm) above which the standard maxGapFrames applies.

Below this, the effective max gap is linearly interpolated toward maxGapFramesStationary. Default 5.0 cm.

Definition at line 39 of file marker_gap_fill.h.

◆ maxGapFrames

size_t momentum::GapFillConfig::maxGapFrames = 30

Maximum gap length (in frames) to interpolate using cubic Hermite.

Gaps longer than this are treated as permanent dropouts. Set to 0 to disable gap interpolation. Default 30 (~500ms at 60Hz).

Definition at line 26 of file marker_gap_fill.h.

◆ maxGapFramesStationary

size_t momentum::GapFillConfig::maxGapFramesStationary = 90

Extended maximum gap length (in frames) for near-stationary markers.

When a marker's displacement across a gap is below maxGapDisplacement, gaps up to this length are interpolated. Linearly blends to maxGapFrames as displacement approaches maxGapDisplacement. Set equal to maxGapFrames to disable. Default 90 (~1.5s at 60Hz).

Definition at line 34 of file marker_gap_fill.h.

◆ minVisibleFrames

size_t momentum::GapFillConfig::minVisibleFrames = 60

Minimum number of visible frames for a segment to be considered reliable.

If a marker is visible for fewer than this many frames between two occluded regions, those visible frames are marked occluded, merging the surrounding gaps. Set to 0 to disable. Default 60 (~1s at 60Hz).

Definition at line 45 of file marker_gap_fill.h.

Referenced by momentum::preprocessMarkerGaps().

◆ velocityWindowFrames

size_t momentum::GapFillConfig::velocityWindowFrames = 5

Number of visible frames to use for velocity estimation when extrapolating permanent dropouts.

Definition at line 53 of file marker_gap_fill.h.


The documentation for this struct was generated from the following file: