Introduction - If you have any usage issues, please Google them yourself
This program can run in ubuntu in OpenCV2.4.4, have not tried other platforms, but it should be pretty much the same. Where the code is C++ style, with a surf algorithm to find the feature points, feature points matching algorithm with flann, a simple weighted average of stitching patterns and matching patterns