Fast and robust planar registration by early consesus with applications to document stitching