Download modules/core/perf/perf_inRange.cpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 708 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/modules/core/perf/perf_inRange.cpp
- Command line
-
hf download hf://tgollogly/test/modules/core/perf/perf_inRange.cpp
-
curl -L -o perf_inRange.cpp https://huggingface.co/tgollogly/test/resolve/main/modules/core/perf/perf_inRange.cpp
708 Bytes
| namespace opencv_test | |
| { | |
| using namespace perf; | |
| PERF_TEST_P(Size_MatType, inRange, TYPICAL_MATS_INRANGE) | |
| { | |
| Size size = get<0>(GetParam()); | |
| int type = get<1>(GetParam()); | |
| Mat src1(size, type); | |
| Mat src2(size, type); | |
| Mat src3(size, type); | |
| Mat dst(size, type); | |
| declare.in(src1, src2, src3, WARMUP_RNG).out(dst); | |
| TEST_CYCLE() inRange( src1, src2, src3, dst ); | |
| SANITY_CHECK(dst); | |
| } | |
| } // namespace | |