Skip to content

Commit

Permalink
fix issue in time surface generation where pixels without events woul…
Browse files Browse the repository at this point in the history
…d still result in activity
  • Loading branch information
biphasic committed Jul 10, 2024
1 parent 5468fbc commit fe4ecf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tonic/functional/to_timesurface.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def to_timesurface_numpy(
event_slices = slice_events_by_time(
events, time_window=dt, overlap=overlap, include_incomplete=include_incomplete
)
memory = np.zeros((sensor_size[::-1]), dtype=int)
memory = np.ones((sensor_size[::-1]), dtype=int) * -np.inf
all_surfaces = []
x_index = event_slices[0].dtype.names.index("x")
y_index = event_slices[0].dtype.names.index("y")
Expand Down

0 comments on commit fe4ecf4

Please sign in to comment.