diff --git a/modules/ts/src/ts_perf.cpp b/modules/ts/src/ts_perf.cpp index ef8f0af9a0..c9e872b4c5 100644 --- a/modules/ts/src/ts_perf.cpp +++ b/modules/ts/src/ts_perf.cpp @@ -783,7 +783,7 @@ void TestBase::Init(const std::vector & availableImpls, ; cv::CommandLineParser args(argc, argv, command_line_keys); - if (args.has("help")) + if (args.get("help")) { args.printMessage(); return; @@ -791,7 +791,7 @@ void TestBase::Init(const std::vector & availableImpls, ::testing::AddGlobalTestEnvironment(new PerfEnvironment); - param_impl = args.has("perf_run_cpu") ? "plain" : args.get("perf_impl"); + param_impl = args.get("perf_run_cpu") ? "plain" : args.get("perf_impl"); std::string perf_strategy = args.get("perf_strategy"); if (perf_strategy == "default") { @@ -816,24 +816,24 @@ void TestBase::Init(const std::vector & availableImpls, param_seed = args.get("perf_seed"); param_time_limit = std::max(0., args.get("perf_time_limit")); param_force_samples = args.get("perf_force_samples"); - param_write_sanity = args.has("perf_write_sanity"); - param_verify_sanity = args.has("perf_verify_sanity"); + param_write_sanity = args.get("perf_write_sanity"); + param_verify_sanity = args.get("perf_verify_sanity"); #ifndef WINRT - test_ipp_check = !args.has("perf_ipp_check") ? getenv("OPENCV_IPP_CHECK") != NULL : true; + test_ipp_check = !args.get("perf_ipp_check") ? getenv("OPENCV_IPP_CHECK") != NULL : true; #else test_ipp_check = false; #endif param_threads = args.get("perf_threads"); #ifdef CV_COLLECT_IMPL_DATA - param_collect_impl = args.has("perf_collect_impl"); + param_collect_impl = args.get("perf_collect_impl"); #endif #ifdef ANDROID param_affinity_mask = args.get("perf_affinity_mask"); log_power_checkpoints = args.has("perf_log_power_checkpoints"); #endif - bool param_list_impls = args.has("perf_list_impls"); + bool param_list_impls = args.get("perf_list_impls"); if (param_list_impls) { @@ -861,7 +861,7 @@ void TestBase::Init(const std::vector & availableImpls, #ifdef HAVE_CUDA - bool printOnly = args.has("perf_cuda_info_only"); + bool printOnly = args.get("perf_cuda_info_only"); if (printOnly) exit(0);