Skip to main content

StateEstimation::CorrelatedMaskPointTracker

StateEstimation::CorrelatedMaskPointTracker

A discrete particle filter for tracking multiple correlated points. More…

#include <MaskParticleFilter.hpp>

Public Functions

Name
CorrelatedMaskPointTracker(size_t num_particles =1000, float transition_radius =10.0f, float correlation_strength =0.7f)
Construct a new CorrelatedMaskPointTracker.
std::vector< MultiPointState > track(std::vector< Point2D< uint32_t > > const & start_points, std::vector< Point2D< uint32_t > > const & end_points, std::vector< Mask2D > const & masks)
Track multiple points through mask sequences.

Detailed Description

class StateEstimation::CorrelatedMaskPointTracker;

A discrete particle filter for tracking multiple correlated points.

This filter tracks multiple points that are expected to maintain consistent relative spacing (e.g., points along the same whisker/line). It uses correlation constraints to improve tracking accuracy.

Public Functions Documentation

function CorrelatedMaskPointTracker

inline explicit CorrelatedMaskPointTracker(
    size_t num_particles =1000,
    float transition_radius =10.0f,
    float correlation_strength =0.7f
)

Construct a new CorrelatedMaskPointTracker.

Parameters:

  • num_particles Number of particles to use
  • transition_radius Maximum distance each point can move in one time step
  • correlation_strength Strength of correlation constraint [0, 1] 0 = independent tracking, 1 = rigid constraint

function track

std::vector< MultiPointState > track(
    std::vector< Point2D< uint32_t > > const & start_points,
    std::vector< Point2D< uint32_t > > const & end_points,
    std::vector< Mask2D > const & masks
)

Track multiple points through mask sequences.

Parameters:

  • start_points Ground truth starting points
  • end_points Ground truth ending points
  • masks Vector of masks for each time frame

Return: Vector of multi-point states (one per frame)


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