Skip to main content

StateEstimation

StateEstimation

Namespaces

Name
StateEstimation::CostFunctions
Common cost functions for assignment.
StateEstimation::LineFeatureUtils
Utility functions for line feature extraction.

Classes

Name
struct StateEstimation::AssignmentResult
Result of an assignment operation.
struct StateEstimation::AssignmentConstraints
Constraints for assignment operations.
class StateEstimation::AssignmentProblem
Abstract interface for solving assignment problems.
class StateEstimation::HungarianAssignment
Hungarian algorithm implementation for assignment.
class StateEstimation::HungarianAssigner
An implementation of IAssigner that uses the Hungarian algorithm.
class StateEstimation::IAssigner
Abstract interface for a data association (assignment) algorithm.
struct StateEstimation::Hypothesis
Represents a single hypothesis path during N-scan lookahead. Tracks the sequence of assignments, the filter state, and accumulated cost.
struct StateEstimation::ChainHypotheses
Manages multiple hypothesis branches for a single chain during N-scan.
struct StateEstimation::FilterState
Represents the state (mean and covariance) of a tracked object.
struct StateEstimation::Measurement
Represents a measurement (an extracted feature vector).
struct StateEstimation::Prediction
Represents a predicted state for a tracked group.
struct StateEstimation::Observation
Represents an unassigned observation.
struct StateEstimation::Assignment
The result of the assignment process.
struct StateEstimation::FlattenedItem
A single flattened data item with associated metadata for tracking.
class StateEstimation::ElementsDataAdapter
Simple adapter that wraps elements() output for StateEstimation compatibility.
class StateEstimation::CompositeFeatureExtractor
Feature extractor that chains multiple extractors together.
struct StateEstimation::FeatureMetadata
Metadata describing a feature’s characteristics.
struct StateEstimation::FeatureDescriptor
Metadata for a feature within a feature vector.
class StateEstimation::FeatureVector
Container for multiple features with metadata.
class StateEstimation::FeatureExtractor
Abstract interface for extracting features from data objects.
class StateEstimation::IFeatureExtractor
Interface for extracting feature vectors from raw data types.
class StateEstimation::LineBasePointExtractor
Feature extractor that extracts the base point (first point) of a line.
class StateEstimation::LineCentroidExtractor
Feature extractor that computes line centroids on-demand.
struct StateEstimation::Config
Configuration for line feature extraction.
class StateEstimation::LineFeatureExtractor
Feature extractor for Line2D objects.
class StateEstimation::LineLengthExtractor
Feature extractor that computes line length.
class StateEstimation::IFilter
Abstract interface for a state estimation filter.
struct StateEstimation::KalmanDiagnostics
class StateEstimation::KalmanFilterT
Fixed-size Kalman filter for tests and high-assurance contexts.
class StateEstimation::KalmanMatrixBuilder
Utility class for building Kalman filter matrices for composite features.
struct StateEstimation::FlattenedMaskItem
A single flattened mask data item with associated metadata for tracking.
class StateEstimation::FlattenedMaskAdapter
Adapter that flattens time-mask structure into individual time-mask pairs.
struct StateEstimation::PointHash
Hash function for Point2D to use in unordered_set.
struct StateEstimation::PointEqual
Equality function for Point2D.
struct StateEstimation::Particle
A weighted particle representing a discrete state (pixel location + velocity).
class StateEstimation::MaskPointTracker
A discrete particle filter for tracking a single point through mask data.
struct StateEstimation::MultiPointState
State for tracking multiple correlated points.
struct StateEstimation::MultiPointParticle
Particle for multi-point tracking.
class StateEstimation::CorrelatedMaskPointTracker
A discrete particle filter for tracking multiple correlated points.
struct StateEstimation::ArcSpec
Arc specification for a directed graph edge used in min-cost flow.
struct StateEstimation::TrackerDiagnostics
class StateEstimation::MinCostFlowTracker
A tracker that uses a global min-cost flow optimization to solve data association.
class StateEstimation::OutlierDetection
struct StateEstimation::OutlierInfo
Outlier information for a specific observation.
struct StateEstimation::OutlierDetectionResults
Results from outlier detection analysis.
class StateEstimation::StateEstimator
State estimator for smoothing and outlier detection on grouped data.
struct StateEstimation::IntervalHistory
Internal per-group tracking buffers for a single interval between anchors.
class StateEstimation::Tracker
The new tracker implementing iterative RTS smoothing without dynamic measurement noise.
struct StateEstimation::AnchorPositions
Locate anchors with both meta-node and member indices.
struct StateEstimation::ArcChain
struct StateEstimation::GroundTruthSegment
Structure to hold ground truth anchor pairs for a group. Each pair represents consecutive ground truth labels for a group.
struct StateEstimation::MultiFeatureKalmanConfig
Configuration for a multi-feature Kalman filter.
struct StateEstimation::FeaturePrediction
Prediction result from multi-feature Kalman filter.
class StateEstimation::MultiFeatureKalmanFilter
Multi-feature Kalman filter for tracking arbitrary feature sets.
class StateEstimation::GroupTracker
Group tracker that manages multiple groups with multi-feature Kalman filters.
struct StateEstimation::TrackingSessionConfig
Configuration for a tracking session.
struct StateEstimation::TrackingUpdateResult
Result of a tracking update.
class StateEstimation::TrackingSession
Manages a complete tracking session with multiple groups and features.
class StateEstimation::DataTrackingBridge
Helper class to bridge between the new StateEstimation framework and existing LineData tracking.
struct StateEstimation::NodeInfo
struct StateEstimation::MetaNode
Represents a greedy-linked sequence (meta-node) of cheap assignments across consecutive frames.

Types

Name
enum class FeatureTemporalType { STATIC, KINEMATIC_2D, KINEMATIC_3D, SCALAR_DYNAMIC, CUSTOM}
Describes the temporal behavior of a feature.
enum class FeatureType { POSITION, ORIENTATION, SCALE, INTENSITY, SHAPE, CUSTOM}
Describes the type and properties of a feature.
enum class ContractPolicy { Throw, LogAndContinue, Abort}
enum class TrackerContractPolicy { Throw, LogAndContinue, Abort}
Contract policy for how MinCostFlowTracker handles invariant violations.
typedef std::function< double(FeatureVector const &object, FeatureVector const &target)> CostFunction
Cost function for computing assignment costs between feature vectors.
using std::function< double(std::vector< double > const &)> HypothesisScoringFunction
Scoring function for combining costs across multiple frames. Allows easy switching between simple sum, log-likelihood, or discounted costs.
using std::map< std::string, std::any > FeatureCache
Stores memoized feature calculations for a single data object.
using std::map< GroupId, std::vector< FilterState > > SmoothedResults
Smoothed results for each group over frames.
typedef std::function< void(int)> ProgressCallback
Progress callback as percent complete [0,100].
template <typename DataType >
using std::vector< std::tuple< DataType const *, EntityId, TimeFrameIndex > >
FrameBucket
using KalmanFilterT< Eigen::Dynamic, Eigen::Dynamic > KalmanFilter
Dynamic-size Kalman filter alias using the templated implementation.
using std::map< GroupId, std::vector< FilterState > > SmoothedGroupResults
Smoothed results for each group over frames.
using std::map< TimeFrameIndex, std::map< GroupId, EntityId > > GroundTruthMap
using std::function< void(int percentage, std::string const &status)> TrackingProgressCallback
Callback function type for tracking progress.
using std::vector< NodeInfo > Path

Functions

Name
std::optional< Hypothesis > select_best_hypothesis(std::vector< Hypothesis > const & hypotheses, bool reached_n_depth)
Select best hypothesis after N-scan or early termination. Returns nullopt if multiple paths remain below threshold after N frames (ambiguity persists).
double score_hypothesis_simple_sum(std::vector< double > const & frame_costs)
Default scoring function as a simple sum of Mahalanobis distances. Can be replaced with log-likelihood or discounted sum.
CostFunction createMahalanobisCostFunction(Eigen::MatrixXd const & H, Eigen::MatrixXd const & R)
Factory function to create a Mahalanobis distance-based cost function.
CostFunction createDynamicsAwareCostFunction(Eigen::MatrixXd const & H, Eigen::MatrixXd const & R, KalmanMatrixBuilder::StateIndexMap const & index_map, double dt, double beta =1.0, double gamma =0.25, double lambda_gap =0.0)
Factory function to create a dynamics-aware transition cost with velocity and implied-acceleration penalties.
template <typename RaggedTS >
auto
makeDataAdapter(RaggedTS const & ts)
Helper function to create an ElementsDataAdapter from a RaggedTimeSeries.
template <typename Item >
auto const &
getData(Item const & item)
Helper to extract data from a [DataItem] (supports both tuple and accessor).
template <typename Item >
EntityId
getEntityId(Item const & item)
Helper to extract EntityId from a [DataItem] (supports both tuple and accessor).
template <typename Item >
TimeFrameIndex
getTimeFrameIndex(Item const & item)
Helper to extract TimeFrameIndex from a [DataItem] (supports both tuple and accessor).
template <typename DataType >
DataType const *
findEntity(FrameBucket< DataType > const & bucket, EntityId id)
template <typename Source ,typename DataType >
std::map< TimeFrameIndex, FrameBucket< DataType > >
buildFrameLookup(Source && data_source, TimeFrameIndex start_frame, TimeFrameIndex end_frame)
template <typename Range >
auto
flattenMaskData(Range && range)
Helper function to create a flattened adapter for MaskData ranges.
float pointDistance(Point2D< uint32_t > const & a, Point2D< uint32_t > const & b)
Compute Euclidean distance between two points.
Point2D< uint32_t > findNearestMaskPixel(Point2D< uint32_t > const & target_point, Mask2D const & mask)
Find the closest pixel in a mask to a given point.
std::optional< std::vector< int > > solveMinCostSingleUnitPath(int num_nodes, int source_node, int sink_node, std::vector< ArcSpec > const & arcs)
Solve a single-unit min-cost flow path problem.
std::optional< std::tuple< int, std::size_t, int, std::size_t > > findAnchorPositionsInMetaNodes(std::vector< MetaNode > const & meta_nodes, TimeFrameIndex start_frame, EntityId start_entity, TimeFrameIndex end_frame, EntityId end_entity)
Locate positions of start and end anchors within a collection of meta-nodes.
std::optional< AnchorPositions > findAnchorPositions(std::vector< MetaNode > const & meta_nodes, TimeFrameIndex start_frame, EntityId start_entity, TimeFrameIndex end_frame, EntityId end_entity)
Returns AnchorPositions (meta-node and member indices) for the two anchors.
std::pair< int, int > findAnchorMetaNodeIndices(std::vector< MetaNode > const & meta_nodes, TimeFrameIndex start_frame, EntityId start_entity, TimeFrameIndex end_frame, EntityId end_entity)
Convenience that returns only the meta-node indices that contain the two anchors. Returns {-1,-1} if either anchor is not found.
std::vector< GroundTruthSegment > extractGroundTruthSegments(GroundTruthMap const & ground_truth)
Convert ground truth map into segments for each group.
std::pair< int, int > findAnchorMetaNodes(std::vector< MetaNode > const & meta_nodes, GroundTruthSegment const & segment)
Find meta-nodes that contain the specified ground truth anchors.
std::optional< AnchorPositions > findAnchorPositions(std::vector< MetaNode > const & meta_nodes, GroundTruthSegment const & segment)
std::vector< MetaNode > sliceMetaNodesToSegment(std::vector< MetaNode > const & meta_nodes, GroundTruthSegment const & segment)
Create a trimmed copy of meta-nodes restricted to a ground-truth segment.
Path buildFallbackPathFromTrimmed(std::vector< MetaNode > const & meta_nodes_trimmed, int start_meta_index, int end_meta_index)
Build a simple fallback path by concatenating members of start and end meta-nodes.
std::vector< MetaNode > resolveOverlappingAnchorNodes(std::vector< MetaNode > const & meta_nodes_trimmed, int start_meta_index, int end_meta_index)
If the start anchor node and end anchor node overlap in time, split them into non-overlapping prefix/suffix nodes and two explicit overlap nodes.

Attributes

Name
double kSymmetrizeHalf

Types Documentation

enum FeatureTemporalType

Enumerator Value Description
STATIC Feature is time-invariant or slowly varying. Examples: line length, color, object class State mapping: measurement [x] → state [x] No velocity tracking.
KINEMATIC_2D 2D kinematic feature with position and velocity Examples: centroid position, base point position State mapping: measurement [x, y] → state [x, y, vx, vy]
KINEMATIC_3D 3D kinematic feature with position and velocity Examples: 3D point tracking State mapping: measurement [x, y, z] → state [x, y, z, vx, vy, vz]
SCALAR_DYNAMIC Scalar feature with first derivative. Examples: angle, length (if time-varying), curvature State mapping: measurement [x] → state [x, dx/dt]
CUSTOM Custom state space mapping. For features requiring specialized state representations. User must provide custom state transition matrices.

Describes the temporal behavior of a feature.

This enum classifies how features evolve over time and determines how the state space is constructed for Kalman filtering.

enum FeatureType

Enumerator Value Description
POSITION
ORIENTATION
SCALE
INTENSITY
SHAPE
CUSTOM

Describes the type and properties of a feature.

enum ContractPolicy

Enumerator Value Description
Throw
LogAndContinue
Abort

enum TrackerContractPolicy

Enumerator Value Description
Throw
LogAndContinue
Abort

Contract policy for how MinCostFlowTracker handles invariant violations.

typedef CostFunction

typedef std::function< double(FilterState const &, Eigen::VectorXd const &, int)> StateEstimation::CostFunction =  std::function<double(FeatureVector const & object, FeatureVector const & target)>;

Cost function for computing assignment costs between feature vectors.

Parameters:

  • predicted_state The predicted state from the filter
  • observation The observation feature vector
  • num_gap_frames Number of frames in the gap (for gap-dependent costs)

Return: Cost value (non-negative)

Cost function signature computes cost between predicted state and observation.

using HypothesisScoringFunction

using StateEstimation::HypothesisScoringFunction =  std::function<double(std::vector<double> const &)>;

Scoring function for combining costs across multiple frames. Allows easy switching between simple sum, log-likelihood, or discounted costs.

using FeatureCache

using StateEstimation::FeatureCache =  std::map<std::string, std::any>;

Stores memoized feature calculations for a single data object.

using SmoothedResults

using StateEstimation::SmoothedResults =  std::map<GroupId, std::vector<FilterState>>;

Smoothed results for each group over frames.

typedef ProgressCallback

typedef std::function< void(int)> StateEstimation::ProgressCallback =  std::function<void(int)>;

Progress callback as percent complete [0,100].

Progress callback where percent complete [0,100].

using FrameBucket

template <typename DataType >
using StateEstimation::FrameBucket =  std::vector<std::tuple<DataType const *, EntityId, TimeFrameIndex>>;

using KalmanFilter

using StateEstimation::KalmanFilter =  KalmanFilterT<Eigen::Dynamic, Eigen::Dynamic>;

Dynamic-size Kalman filter alias using the templated implementation.

This maintains the existing type name while consolidating code into a single templated implementation that also supports fixed-size variants in tests.

using SmoothedGroupResults

using StateEstimation::SmoothedGroupResults =  std::map<GroupId, std::vector<FilterState>>;

Smoothed results for each group over frames.

using GroundTruthMap

using StateEstimation::GroundTruthMap =  std::map<TimeFrameIndex, std::map<GroupId, EntityId>>;

using TrackingProgressCallback

using StateEstimation::TrackingProgressCallback =  std::function<void(int percentage, std::string const & status)>;

Callback function type for tracking progress.

using Path

using StateEstimation::Path =  std::vector<NodeInfo>;

Functions Documentation

function select_best_hypothesis

std::optional< Hypothesis > select_best_hypothesis(
    std::vector< Hypothesis > const & hypotheses,
    bool reached_n_depth
)

Select best hypothesis after N-scan or early termination. Returns nullopt if multiple paths remain below threshold after N frames (ambiguity persists).

Parameters:

  • hypotheses All hypotheses for a chain
  • reached_n_depth True if we’ve scanned N frames

Return: Best hypothesis, or nullopt if ambiguity persists

function score_hypothesis_simple_sum

double score_hypothesis_simple_sum(
    std::vector< double > const & frame_costs
)

Default scoring function as a simple sum of Mahalanobis distances. Can be replaced with log-likelihood or discounted sum.

function createMahalanobisCostFunction

CostFunction createMahalanobisCostFunction(
    Eigen::MatrixXd const & H,
    Eigen::MatrixXd const & R
)

Factory function to create a Mahalanobis distance-based cost function.

Parameters:

Return: CostFunction that computes Mahalanobis distance

This is the default cost function that computes the Mahalanobis distance between the predicted measurement (H * predicted_state) and the actual observation.

function createDynamicsAwareCostFunction

CostFunction createDynamicsAwareCostFunction(
    Eigen::MatrixXd const & H,
    Eigen::MatrixXd const & R,
    KalmanMatrixBuilder::StateIndexMap const & index_map,
    double dt,
    double beta =1.0,
    double gamma =0.25,
    double lambda_gap =0.0
)

Factory function to create a dynamics-aware transition cost with velocity and implied-acceleration penalties.

c = 0.5 r^T S^{-1} r + 0.5 log det S

  • beta * 0.5 (v_impl - v_pred)^T Sigma_v^{-1} (v_impl - v_pred)
  • gamma * 0.5 ||a_impl||^2 (simple L2 penalty) where r = z_to - H x_pred, S = H P_pred H^T + R, v_impl = (z_pos - x_pred_pos) / (k * dt), and a_impl = 2 * (z_pos - x_pred_pos) / ((k * dt)^2).

function makeDataAdapter

template <typename RaggedTS >
auto makeDataAdapter(
    RaggedTS const & ts
)

Helper function to create an ElementsDataAdapter from a RaggedTimeSeries.

Parameters:

Template Parameters:

Return: An ElementsDataAdapter for the data type

function getData

template <typename Item >
inline auto const & getData(
    Item const & item
)

Helper to extract data from a [DataItem] (supports both tuple and accessor).

function getEntityId

template <typename Item >
inline EntityId getEntityId(
    Item const & item
)

Helper to extract EntityId from a [DataItem] (supports both tuple and accessor).

function getTimeFrameIndex

template <typename Item >
inline TimeFrameIndex getTimeFrameIndex(
    Item const & item
)

Helper to extract TimeFrameIndex from a [DataItem] (supports both tuple and accessor).

function findEntity

template <typename DataType >
inline DataType const * findEntity(
    FrameBucket< DataType > const & bucket,
    EntityId id
)

function buildFrameLookup

template <typename Source ,
typename DataType >
inline std::map< TimeFrameIndex, FrameBucket< DataType > > buildFrameLookup(
    Source && data_source,
    TimeFrameIndex start_frame,
    TimeFrameIndex end_frame
)

function flattenMaskData

template <typename Range >
auto flattenMaskData(
    Range && range
)

Helper function to create a flattened adapter for MaskData ranges.

Parameters:

  • range The input range from getAllAsRange()

Template Parameters:

  • Range The range type (auto-deduced)

Return: A FlattenedMaskAdapter that yields FlattenedMaskItem objects

This factory function deduces template parameters automatically and creates a FlattenedMaskAdapter suitable for use with MaskData’s getAllAsRange().

Example:

auto mask_range = mask_data->getAllAsRange();
auto data_source = flattenMaskData(mask_range);

MaskParticleFilter tracker(...);
tracker.track(data_source, ...);

function pointDistance

inline float pointDistance(
    Point2D< uint32_t > const & a,
    Point2D< uint32_t > const & b
)

Compute Euclidean distance between two points.

function findNearestMaskPixel

inline Point2D< uint32_t > findNearestMaskPixel(
    Point2D< uint32_t > const & target_point,
    Mask2D const & mask
)

Find the closest pixel in a mask to a given point.

Parameters:

  • target_point The point to find the nearest mask pixel to
  • mask The mask containing candidate pixels

Return: The closest pixel in the mask, or the target point if mask is empty

function solveMinCostSingleUnitPath

std::optional< std::vector< int > > solveMinCostSingleUnitPath(
    int num_nodes,
    int source_node,
    int sink_node,
    std::vector< ArcSpec > const & arcs
)

Solve a single-unit min-cost flow path problem.

Precondition:

  • Node indices in arcs, source_node, and sink_node are in [0, num_nodes).
  • Exactly one unit of supply at source_node and -1 at sink_node is implied.

Postcondition: On success, returns the sequence of nodes (excluding none) encountered when following positive-flow arcs from source to sink. If no feasible solution exists, returns std::nullopt.

function findAnchorPositionsInMetaNodes

inline std::optional< std::tuple< int, std::size_t, int, std::size_t > > findAnchorPositionsInMetaNodes(
    std::vector< MetaNode > const & meta_nodes,
    TimeFrameIndex start_frame,
    EntityId start_entity,
    TimeFrameIndex end_frame,
    EntityId end_entity
)

Locate positions of start and end anchors within a collection of meta-nodes.

Return: std::optional of tuple (start_meta_index, start_member_index, end_meta_index, end_member_index)

Searches for the first occurrences of (start_frame,start_entity) and (end_frame,end_entity) inside meta_nodes and returns both the meta-node index and the member index for each anchor when found.

function findAnchorPositions

inline std::optional< AnchorPositions > findAnchorPositions(
    std::vector< MetaNode > const & meta_nodes,
    TimeFrameIndex start_frame,
    EntityId start_entity,
    TimeFrameIndex end_frame,
    EntityId end_entity
)

Returns AnchorPositions (meta-node and member indices) for the two anchors.

function findAnchorMetaNodeIndices

inline std::pair< int, int > findAnchorMetaNodeIndices(
    std::vector< MetaNode > const & meta_nodes,
    TimeFrameIndex start_frame,
    EntityId start_entity,
    TimeFrameIndex end_frame,
    EntityId end_entity
)

Convenience that returns only the meta-node indices that contain the two anchors. Returns {-1,-1} if either anchor is not found.

function extractGroundTruthSegments

inline std::vector< GroundTruthSegment > extractGroundTruthSegments(
    GroundTruthMap const & ground_truth
)

Convert ground truth map into segments for each group.

Parameters:

  • ground_truth Map of frame -> (group_id -> entity_id)

Return: Vector of ground truth segments, ordered by group and frame

Groups ground truth labels by GroupId and creates consecutive pairs. For example, if group 1 has labels at frames 1, 1000, 5000, this creates:

  • Segment 1: (1, entity1) -> (1000, entity1000)
  • Segment 2: (1000, entity1000) -> (5000, entity5000)

function findAnchorMetaNodes

inline std::pair< int, int > findAnchorMetaNodes(
    std::vector< MetaNode > const & meta_nodes,
    GroundTruthSegment const & segment
)

Find meta-nodes that contain the specified ground truth anchors.

Parameters:

  • meta_nodes Vector of meta-nodes to search
  • segment Ground truth segment containing start/end anchors

Return: Pair of (start_meta_index, end_meta_index) or (-1, -1) if not found

Searches through meta-nodes to find those that contain the start and end entities at the specified frames for a ground truth segment.

function findAnchorPositions

inline std::optional< AnchorPositions > findAnchorPositions(
    std::vector< MetaNode > const & meta_nodes,
    GroundTruthSegment const & segment
)

function sliceMetaNodesToSegment

inline std::vector< MetaNode > sliceMetaNodesToSegment(
    std::vector< MetaNode > const & meta_nodes,
    GroundTruthSegment const & segment
)

Create a trimmed copy of meta-nodes restricted to a ground-truth segment.

Parameters:

  • meta_nodes All meta-nodes across the full range
  • segment Ground truth segment specifying [start_frame, end_frame] and entities

Return: Trimmed meta-nodes for the segment. Empty if anchors are not found.

Keeps only meta-nodes that lie strictly within (start_frame, end_frame) and the two boundary meta-nodes that contain the anchors. Boundary meta-nodes are spliced so that their start/end align exactly with the anchor frames. Any other meta-node that crosses a boundary without containing the corresponding anchor is discarded.

function buildFallbackPathFromTrimmed

inline Path buildFallbackPathFromTrimmed(
    std::vector< MetaNode > const & meta_nodes_trimmed,
    int start_meta_index,
    int end_meta_index
)

Build a simple fallback path by concatenating members of start and end meta-nodes.

Assumes the input meta-nodes are already trimmed to the segment using sliceMetaNodesToSegment. If start and end refer to the same meta-node, returns its members. Otherwise, concatenates all members from the start meta-node followed by all members from the end meta-node.

function resolveOverlappingAnchorNodes

inline std::vector< MetaNode > resolveOverlappingAnchorNodes(
    std::vector< MetaNode > const & meta_nodes_trimmed,
    int start_meta_index,
    int end_meta_index
)

If the start anchor node and end anchor node overlap in time, split them into non-overlapping prefix/suffix nodes and two explicit overlap nodes.

Input is expected to be the trimmed/pruned meta-nodes for the segment produced by sliceMetaNodesToSegment(). This function inspects the meta-node at start_meta_index and end_meta_index; if their ranges overlap, returns a new vector where these two nodes are replaced by up to four nodes:

  • start_prefix: [start.start_frame .. overlap_start-1]
  • start_overlap: [overlap_start .. overlap_end] (from start node)
  • end_overlap: [overlap_start .. overlap_end] (from end node)
  • end_suffix: [overlap_end+1 .. end.end_frame] Nodes with empty ranges are omitted. All other nodes are copied unchanged.

Attributes Documentation

variable kSymmetrizeHalf

double kSymmetrizeHalf = 0.5;

Updated on 2026-11-13 at 20:25:41 +0000