Download modules/core/perf/perf_abs.cpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 622 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/modules/core/perf/perf_abs.cpp
- Command line
-
hf download hf://tgollogly/test/modules/core/perf/perf_abs.cpp
-
curl -L -o perf_abs.cpp https://huggingface.co/tgollogly/test/resolve/main/modules/core/perf/perf_abs.cpp
622 Bytes
| namespace opencv_test | |
| { | |
| using namespace perf; | |
| PERF_TEST_P(Size_MatType, abs, TYPICAL_MATS_ABS) | |
| { | |
| Size sz = get<0>(GetParam()); | |
| int type = get<1>(GetParam()); | |
| cv::Mat a = Mat(sz, type); | |
| cv::Mat c = Mat(sz, type); | |
| declare.in(a, WARMUP_RNG).out(c); | |
| TEST_CYCLE() c = cv::abs(a); | |
| SANITY_CHECK(c); | |
| } | |
| } // namespace | |