The above two images were given as input to the Stitcher Algorithm present in openCV. Below is the output we get.
Code:
{
vector< Mat > vImg;
Mat rImg;
vImg.push_back( imread(argv[1]) );
vImg.push_back( imread(argv[2]) );
Stitcher stitcher = Stitcher::createDefault(false);
stitcher.stitch(vImg, rImg);
imshow("Stitching Result", rImg);
waitKey(0);
return 0;
}