Corrected sanity checks in several perf tests

Also fixed a typo in performance testing framework and removed hardcoded
temporary file name from highgui perf test
This commit is contained in:
Andrey Kamaev
2012-12-12 01:00:47 +04:00
parent 60ad505a63
commit 6e244c83cd
4 changed files with 30 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ PERF_TEST_P(VideoWriter_Writing, WriteFrame,
string filename = getDataPath(get<0>(GetParam()));
bool isColor = get<1>(GetParam());
VideoWriter writer("perf_writer.avi", CV_FOURCC('X', 'V', 'I', 'D'), 25, cv::Size(640, 480), isColor);
VideoWriter writer(cv::tempfile(".avi"), CV_FOURCC('X', 'V', 'I', 'D'), 25, cv::Size(640, 480), isColor);
TEST_CYCLE() { Mat image = imread(filename, 1); writer << image; }