Good afternoon.
I'm using Bosai to track a rat in the
Morris water maze, but I have a trouble.
I don´t know how can I make that Bonsai tells me the distance traveled by the rat, in numbers.
--
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/519882f9-42bd-44a0-bfbf-6f07fd78927a%40googlegroups.com.
Hi abi and welcome to the forums.I am attaching two versions to do this with a simple tracking workflow which you may be able to adapt to your case.This depends on how exactly you are defining "distance" in this case. Do you mean the length of the displacement vector from an initial position (subtract the current position from the first position)?
Or do you mean the cumulative sum of all the displacements for every frame (subtract the current position from the previous position and add up all the lengths)?In both examples, the ExpressionTransform node is simply used to compute the length of the vector.Hope this helps.
On 21 April 2017 at 21:44, <a...@webmail.unt.edu.ar> wrote:
El viernes, 21 de abril de 2017, 17:37:13 (UTC-3), a...@webmail.unt.edu.ar escribió:Good afternoon.
I'm using Bosai to track a rat in the Morris water maze, but I have a trouble.
I don´t know how can I make that Bonsai tells me the distance traveled by the rat, in numbers.I´m using the next workflow.file capture> crop > Convert Color> Hsv Threshold> Find Contours> Binary region analysis> Largest Binary region> Source Centroid> Source Y
Which function allows me to know the distance?Can anybody help me?Thank you
--
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...@googlegroups.com.
Visit this group at https://groups.google.com/group/bonsai-users.
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/09b749eb-f523-44a8-8a4c-f8efe452ea4d%40googlegroups.com.
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/90ca8319-54f2-4ba9-8cfc-6bd0f87d71e7%40googlegroups.com.
Hi all,We are doing optogenetic experiments and using centroid data from Bonsai to calculate distance traveled during true and false trials.I used the distance formula on the centroid data from Bonsai and calculated the mean distance for each of my experiments, which I then plotted in the bar graph on the right in the second slide of the powerpoint. As you can see from the plotted centroid trajectories on the first slide, these average distances do not appear to match up with the centroid trajectories. When I instead use the distance formula on only the first and last points for each trial of each experiment and then plot the mean distances for each experiment, it yields the bar graph on the left side of the second slide. Clearly, this bar graph seems to better represent the overall movement of the mouse. This discrepancy only seems to arise when the mouse does not move much in a trial and just stays in one corner.Yet, I also wonder if the bar graph on the right could actually be true, despite the mouse not appearing to move much in the true experiments 1 and 3. I looked at two random adjacent points from a trial where the mouse barely moved, and the distance formula on the two points confirmed what the MATLAB script had calculated for those two points.Has anyone else ever experienced this or know if what is happening is real or artificial? If so, any suggestions on what to do would be highly appreciated. Please find PPT and .mat files in the attachement.
--
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...@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/840b6fcd-8b55-47ab-9fff-0178f743dd63%40googlegroups.com.
Hi Zirong,I'm not sure I understand the question. Do you mean total distance travelled is 10x different, or individual centroid coordinates are 10x different? Can you attach the Bonsai workflows you are using so we can have a better idea of how the data is being logged?
On Wed, 12 Jun 2019 at 16:54, Zirong Gu <ziro...@gmail.com> wrote:
Hi all,We are doing optogenetic experiments and using centroid data from Bonsai to calculate distance traveled during true and false trials.I used the distance formula on the centroid data from Bonsai and calculated the mean distance for each of my experiments, which I then plotted in the bar graph on the right in the second slide of the powerpoint. As you can see from the plotted centroid trajectories on the first slide, these average distances do not appear to match up with the centroid trajectories. When I instead use the distance formula on only the first and last points for each trial of each experiment and then plot the mean distances for each experiment, it yields the bar graph on the left side of the second slide. Clearly, this bar graph seems to better represent the overall movement of the mouse. This discrepancy only seems to arise when the mouse does not move much in a trial and just stays in one corner.Yet, I also wonder if the bar graph on the right could actually be true, despite the mouse not appearing to move much in the true experiments 1 and 3. I looked at two random adjacent points from a trial where the mouse barely moved, and the distance formula on the two points confirmed what the MATLAB script had calculated for those two points.Has anyone else ever experienced this or know if what is happening is real or artificial? If so, any suggestions on what to do would be highly appreciated. Please find PPT and .mat files in the attachement.Best,Zirong--
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...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@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/85ec4412-c1e8-490a-8410-a126e6db54ba%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@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/71673f27-e214-4f20-a97c-8175362ea935%40googlegroups.com.