Skip to content

Commit

Permalink
Manual tracking: Outline for how to fix/eliminate divisions for norma…
Browse files Browse the repository at this point in the history
…l tracks
  • Loading branch information
davhel committed Aug 31, 2016
1 parent df7d346 commit 0b64e41
Showing 1 changed file with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,24 @@ private void linkNodes(Node next, Node previous){


//propagate division
if(previous.hasObservedDivision())
next.setDivision(previous.getDivision());
if(previous.hasObservedDivision()){
if(!previous.hasNext()){
//this was a cell dividing in the next frame
//we are basically canceling the division event

//1. reset division
//2. cancel division form frame
//3. propagate cancellation of division

} else {
// TODO this should be rewritten
// nobody guaratees that the tracks are still the
// same, most likely this previous should actually
// be stripped from having the division
// but also the reverse should be guaranteed.
next.setDivision(previous.getDivision());
}
}

if(previous.hasNext()){
Node oldNext = previous.getNext();
Expand Down

0 comments on commit 0b64e41

Please sign in to comment.