mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.2 KiB
56 lines
1.2 KiB
#include "perf_precomp.hpp" |
|
|
|
#include "opencv2/highgui/highgui.hpp" |
|
|
|
using namespace std; |
|
using namespace cv; |
|
using namespace perf; |
|
|
|
|
|
/* |
|
// Stitcher::Status Stitcher::stitch(InputArray imgs, OutputArray pano) |
|
*/ |
|
PERF_TEST( stitch3, a123 ) |
|
{ |
|
Mat pano; |
|
|
|
vector<Mat> imgs; |
|
imgs.push_back( imread( getDataPath("stitching/a1.jpg") ) ); |
|
imgs.push_back( imread( getDataPath("stitching/a2.jpg") ) ); |
|
imgs.push_back( imread( getDataPath("stitching/a3.jpg") ) ); |
|
|
|
Stitcher::Status status; |
|
|
|
declare.time(30 * 20); |
|
|
|
while(next()) |
|
{ |
|
Stitcher stitcher = Stitcher::createDefault(); |
|
|
|
startTimer(); |
|
status = stitcher.stitch(imgs, pano); |
|
stopTimer(); |
|
} |
|
} |
|
|
|
PERF_TEST( stitch2, b12 ) |
|
{ |
|
Mat pano; |
|
|
|
vector<Mat> imgs; |
|
imgs.push_back( imread( getDataPath("stitching/b1.jpg") ) ); |
|
imgs.push_back( imread( getDataPath("stitching/b2.jpg") ) ); |
|
|
|
Stitcher::Status status; |
|
|
|
declare.time(30 * 20); |
|
|
|
while(next()) |
|
{ |
|
Stitcher stitcher = Stitcher::createDefault(); |
|
|
|
startTimer(); |
|
status = stitcher.stitch(imgs, pano); |
|
stopTimer(); |
|
} |
|
}
|
|
|