--
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/e1804ef5-cf6a-4f6c-9eab-8a6210dc6835%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Joan,Good to see things are working again. I believe you will find this old post very useful:Basically I believe the last answer describes what you are looking for, a script that memorizes the previous position and uses it to keep track of the correct points. It should be possible to adapt the memorization criteria so that you adjust for fast movements.Hope this helps!
On 22 May 2018 at 21:45, Joan Esteve Agraz <joan.est...@gmail.com> wrote:
Hey everyone,I see that Bonsai is growing fast, cool!I want to ask something related to a previous old question:https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/bonsai-users/03LAQjhG24I/fWAeMlOwBQAJ;context-place=searchin/bonsai-users/zebrafish$20headingI'm just focusing on tracking (in a reliable and stable way) the nose of a mouse in this open arena. The field is pretty small, and the conditions are pretty nice.Therefore, I can get a nice tracking, however, the coordinate that I'm interested in (nose) sometimes do the thing so-called 'faceass' (the ExpressionTransform node after the BinaryRegionExtremes one), so it 'jumps' from one side of the animal to the other in a frame.So the main question that I'd like to know is:- Is there any python transform that can avoid the jumping in the coordinates that happens in one frame-based. Don't know really how to tell Python that X and Y coordinates should not change more than 'n' number of pixels in 1 frame change. It could also keep a memory of the previous coordinates to find the closer one.- Or any other idea how to keep the nose coordinates stable, I would really appreciate it.Attached is the Bonsai file, this link leads to the video: https://drive.google.com/file/d/1uZzaCnwSIIGj5Ga92Y-TdPJFJ6A0gdlW/view?usp=sharingBest,Joan
--
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.
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/4928e64d-963d-4fde-9ba8-312caf6c3832%40googlegroups.com.