check_merging | R Documentation |
This function takes in two R-lists containing information about current objects in the frame1 and their properties, such as center location and area. If the I am using an arbitrary crieterion for merging. If euclidean distance between centers of the two objects c_dist < or = to r=sqrt(area), then merging is considered. Here, if we assume square objects, then the r is length of a sides of the square. If all objects are dead in frame2 then no merging happened.
check_merging(dead_obj_id1, current_objects, frame1, frame2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.