marker-based inside-out tracking algorithm