Introduction - If you have any usage issues, please Google them yourself
Images A and B, A and at least 1/3 of the overlap B, find a picture in A block, looking for an image block b in B, using the cosine distance, find a, b similarity, the use of the cycle to b B-mobile, find the greatest similarity image block b. By b where the point coordinates, to determine the offset of B relative to A s. Offset by the A and B on the same coordinate system to achieve stitching.