|
Algorithm 1 Multi-State Online Matching Algorithm. |
| Inputs:
|
|
|
| Outputs:
|
|
|
| 1: Initial: , , ,
|
| 2: for
to
do
|
| 3: = NMS() |
| 4: for
do
|
| 5: , where max(PTSN()),
|
| 6: if PTSN(, )
then
|
| 7: add to and remove from
|
| 8: predict from and add to
|
| 9: else
|
| 10: move to
|
| 11: end if
|
| 12: end for
|
| 13: for
do
|
| 14: = where max(PTSN()),
|
| 15: if PTSN()
then
|
| 16: add to ; remove from and move to
|
| 17: predict from and add to
|
| 18: else
|
| 19: if
then
|
| 20: move to
|
| 21: end if
|
| 22: end if
|
| 23: for
do
|
| 24: start a new tracklet with and insert it into
|
| 25: end for
|
| 26: end for
|
| 27: end for
|
| 28: for
do
|
| 29: if
then
|
| 30: add to
|
| 31: end if
|
| 32: end for
|