TOMHTPruneTracks:

--------------------------------------------------------------------------
   Track-oriented MHT - track pruning algorithm.

   Keep the following tracks
     * Tracks with the "N" highest scores
     * Tracks in the "M best" hypotheses
     * Tracks that have:
         1. track ID, and
         2. the first "P" measurements
       found in "M best" hypotheses

--------------------------------------------------------------------------
   Form:
   [tracksP,keep,prune,d] = TOMHTPruneTracks( tracks, soln, scan0, opts )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   tracks    (.)     Data structure array of tracks
   soln      (.)     Solution from TOMHTAssignment
   scan0     (1,1)   Starting scan index. This is the depth in the
                     track-tree at which point # scans to match is added.
   opts      (.)     Options
                         .nHighScoresToKeep  
                         .nFirstMeasMatch  

   -------
   Outputs
   -------
   tracksP   (.)     Data structure array of tracks after pruning.
   keep      (1,:)   Index list of original tracks we kept
   prune     (1,:)   Index list of original tracks we pruned
   d         (.)     Data structure to record how "keep" indices were
                     found:
                       .bestTrackScores  
                       .bestHypFullTracks
                       .bestHypPartialTracks

--------------------------------------------------------------------------

Children:

MHT: Utilities/MHTTrkToB