Hi, I am OpenCV beginner, and i want to stitch 2-images using opencv.
So i am finding typical algorithm(sift, surf). But, I knew that opencv support image stitching(below).
In this below(stitcher.stitch), what algorithm is used for image stitching?
I looked stitcher class, But i couldn't found in detail. Please tell me the concept of image stitching which opencv supported and also performances.
-------------------------------------------------
void main()
{
vector< Mat > vImg;
Mat rImg;
vImg.push_back( imread("./stitching_img/S1.jpg") );
vImg.push_back( imread("./stitching_img/S2.jpg") );
vImg.push_back( imread("./stitching_img/S3.jpg") );
vImg.push_back( imread("./stitching_img/S4.jpg") );
vImg.push_back( imread("./stitching_img/S5.jpg") );
vImg.push_back( imread("./stitching_img/S6.jpg") );
Stitcher stitcher = Stitcher::createDefault();
unsigned long AAtime=0, BBtime=0; //check processing time
AAtime = getTickCount(); //check processing time
Stitcher::Status status = stitcher.stitch(vImg, rImg);
BBtime = getTickCount(); //check processing time
printf("%.2lf sec \n", (BBtime - AAtime)/getTickFrequency() ); //check processing time
if (Stitcher::OK == status)
imshow("Stitching Result",rImg);
else
printf("Stitching fail.");
waitKey(0);
}
↧