Skip to content

Commit

Permalink
Remove moving correspondences with avg optic flow
Browse files Browse the repository at this point in the history
  • Loading branch information
soflc committed Oct 23, 2024
1 parent e678e17 commit ae7c3d8
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/pupil_labs/egocentric_video_mapper/gaze_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,20 +384,6 @@ def _step_through_video(self, i, video_type):
else:
opticflow = np.array([0, 0])

if self.correspondences is not None:
selected_kp = "keypoints0" if video_type == "neon" else "keypoints1"
prev_ts = (
self.neon_video.timestamps[self.corresponding_neon_ts_idx[i - 1]]
if video_type == "neon"
else self.alt_video.timestamps[self.corresponding_alt_ts_idx[i - 1]]
)
self.logger.debug(f"Moving {selected_kp} to {relative_ts}")
self.correspondences[selected_kp] = self._move_point_to_video_timestamp(
self.correspondences[selected_kp],
prev_ts,
relative_ts,
(self.neon_opticflow if video_type == "neon" else self.alt_opticflow),
)
return frame, opticflow

def _ts_between_video_frames(self, timestamp):
Expand Down

0 comments on commit ae7c3d8

Please sign in to comment.