New Bonsai User - Timestamp interval

754 views
Skip to first unread message

Vlad Morozan

unread,
Sep 11, 2017, 12:39:02 PM9/11/17
to Bonsai Users
Hello,
I am trying to measure the time interval in which a mouse moves as following:
for example, the video has 600 seconds, and the mouse in question moves during seconds 45 till 60 , from 80 to 90 etc and i want to use bonsai to export the intervals as following
No movement: 00-45 , 60-80
Movement: 45-60 , 80-90

I tried using timestamp in my pipeline(using an algorithm that measures velocity), but didn't work as expected.

Can you help me in finding a solution?

Gonçalo Lopes

unread,
Sep 12, 2017, 10:59:39 AM9/12/17
to Vlad Morozan, Bonsai Users
Hi Vlad and welcome to the forums!

The Timestamp node is usually not very useful for measuring time in offline videos, since it uses the current system clock to timestamp incoming data.

For offline videos I tend to prefer simply counting the number of frames, unless there was some other timestamp data associated with each frame (is this the case?).

I don't know how exactly your pipeline is wired up, but assuming that you don't have any other recorded timestamps available, you might be better off using the Count or Accumulate nodes to count the number of frames associated with one condition vs the other.

Hope this helps.

--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/bonsai-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/f56b189a-0e24-4398-8bad-d7ae194576f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages