Trajectory reconstruction from non-overlapping surveillance cameras with relative depth ordering constraints