# Help design a node for a tree

**URL:** <https://discourse.julialang.org/t/help-design-a-node-for-a-tree/67444>\
**Category:** Data\
**Tags:** tree\
**Created:** [August 31, 2021, 6:43pm UTC](https://discourse.julialang.org/t/help-design-a-node-for-a-tree/67444 "2021-08-31T18:43:35Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [September 1, 2021, 2:37pm UTC](https://discourse.julialang.org/t/help-design-a-node-for-a-tree/67444/22 "2021-09-01T14:37:23Z")

</div>

Right, let me first thank you all for all this awesome input.

After testing and playing around I think I agree with everybody’s advice:  
I’ll improve on the detection of the objects, thus reducing the number of possible leads, as well as, be able to prune unlikely ones. This way I hope to use something a lot simpler to store the tracks (like a binary tree, e.g. `LeftChildRightSiblingTrees.jl`).

Specifically, I detect an object (read animal) in the next frame depending on the location of the object in the previous frame, so a sense of proximity is already in use. I plan to add a Kalman filter to the mix since the trajectory of the animal doesn’t normally change much in terms of direction and speed. I hope to stay clear from morphological operations and segmentation, feature detection, and neural networks for as long as I can. Right now, I seem to get really far by subtracting the background and the fact the animals are much darker than everything else.

[Previous page](https://discourse.julialang.org/t/help-design-a-node-for-a-tree/67444.md?page=1)
