Robust video stitching using adaptive pixel transfer