Text this: Image stitching algorithm based on two-stage optimal seam line search