Skip to content

Commit

Permalink
Fix name error when building with OpenCV 4
Browse files Browse the repository at this point in the history
  • Loading branch information
prittt committed Nov 29, 2019
1 parent d5cf4fc commit 6574b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yacclab_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ bool YacclabTests::SaveBroadOutputResults(std::map<std::string, cv::Mat1d>& resu
// Calculate the max of the columns to find unused steps
cv::Mat1d results_reduced(1, results.at(algo_name).cols);
#if OPENCV_VERSION_MAJOR >= 4
cv::reduce(results.at(algo_name), results_reduced, 0, REDUCE_MAX);
cv::reduce(results.at(algo_name), results_reduced, 0, cv::REDUCE_MAX);
#else
cv::reduce(results.at(algo_name), results_reduced, 0, CV_REDUCE_MAX);
cv::reduce(results.at(algo_name), results_reduced, 0, CV_REDUCE_MAX);
Expand Down

0 comments on commit 6574b20

Please sign in to comment.