private void trackUsingKlt ( List < CombinedTrack < TD > > tracks ) { for ( int i = 0 ; i < tracks . size ( ) ; ) { CombinedTrack < TD > track = tracks . get ( i ) ; if ( ! trackerKlt . performTracking ( track . track ) ) { // handle the dropped track tracks . remove ( i ) ; tracksDormant . add ( track ) ; } else { track . set ( track . track . x , track . track . y ) ; i ++ ; } } }
Tracks features in the list using KLT and update their state