--- /dev/null
+#ifndef __OPENCV_PERF_PRECOMP_HPP__
+#define __OPENCV_PERF_PRECOMP_HPP__
+
+#include "opencv2/ts/ts.hpp"
+
+#include "opencv2/stitching/stitcher.hpp"
+
+#if GTEST_CREATE_SHARED_LIBRARY
+#error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
+#endif
+
+#endif
--- /dev/null
+#include "perf_precomp.hpp"\r
+\r
+#include "opencv2/highgui/highgui.hpp"\r
+\r
+using namespace std;\r
+using namespace cv;\r
+using namespace perf;\r
+\r
+\r
+/*\r
+// Stitcher::Status Stitcher::stitch(InputArray imgs, OutputArray pano)\r
+*/\r
+PERF_TEST( stitch3, a123 )\r
+{\r
+ Mat pano;\r
+ \r
+ vector<Mat> imgs;\r
+ imgs.push_back( imread( getDataPath("stitching/a1.jpg") ) );\r
+ imgs.push_back( imread( getDataPath("stitching/a2.jpg") ) );\r
+ imgs.push_back( imread( getDataPath("stitching/a3.jpg") ) );\r
+\r
+ Stitcher stitcher = Stitcher::createDefault();\r
+ Stitcher::Status status;\r
+\r
+ declare.time(30 * 20);\r
+\r
+ TEST_CYCLE(20) { status = stitcher.stitch(imgs, pano); }\r
+}\r
+\r
+PERF_TEST( stitch2, b12 )\r
+{\r
+ Mat pano;\r
+ \r
+ vector<Mat> imgs;\r
+ imgs.push_back( imread( getDataPath("stitching/b1.jpg") ) );\r
+ imgs.push_back( imread( getDataPath("stitching/b2.jpg") ) );\r
+\r
+ Stitcher stitcher = Stitcher::createDefault();\r
+ Stitcher::Status status;\r
+\r
+ declare.time(30 * 20);\r
+\r
+ TEST_CYCLE(20) { status = stitcher.stitch(imgs, pano); }\r
+}\r