We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8570073 commit bcce259Copy full SHA for bcce259
modules/videoio/perf/perf_output.cpp
@@ -28,7 +28,7 @@ PERF_TEST_P(VideoWriter_Writing, WriteFrame,
28
{
29
const string filename = getDataPath(get<0>(GetParam()));
30
const bool isColor = get<1>(GetParam());
31
- Mat image = imread(filename, 1);
+ Mat image = imread(filename, isColor ? IMREAD_COLOR : IMREAD_GRAYSCALE );
32
#if defined(HAVE_MSMF) && !defined(HAVE_VFW) && !defined(HAVE_FFMPEG) // VFW has greater priority
33
const string outfile = cv::tempfile(".wmv");
34
const int fourcc = VideoWriter::fourcc('W', 'M', 'V', '3');
0 commit comments