A line segment based approach for 3d motion estimation and tracking of multiple objects