62 std::span<const float> prev_gray,
63 std::span<const float> curr_gray,
64 uint32_t w, uint32_t
h,
65 std::span<const glm::vec2> prev_points,
66 uint32_t window_radius = 7,
67 uint32_t max_iterations = 20,
68 float eigen_threshold = 1e-4F,
69 float error_threshold = 0.3F);
93 std::span<const float> prev_gray,
94 std::span<const float> curr_gray,
95 std::span<const float> grad_dx,
96 std::span<const float> grad_dy,
97 uint32_t w, uint32_t
h,
98 std::span<const glm::vec2> prev_points,
99 uint32_t window_radius = 7,
100 uint32_t max_iterations = 20,
101 float eigen_threshold = 1e-4F,
102 float error_threshold = 0.3F);
std::vector< TrackResult > track_keypoints(std::span< const float > prev_gray, std::span< const float > curr_gray, uint32_t w, uint32_t h, std::span< const glm::vec2 > prev_points, uint32_t window_radius, uint32_t max_iterations, float eigen_threshold, float error_threshold)
Track keypoints from prev_gray to curr_gray via Lucas-Kanade.
float error
Residual photometric error after convergence.
bool tracked
False if tracking failed or diverged.
glm::vec2 position
Tracked position in normalised [0, 1] coordinates.
Result for a single tracked point.