Download modules/imgproc/perf/perf_morph.cpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/imgproc/perf/perf_morph.cpp
- Command line
-
hf download hf://tgollogly/test/modules/imgproc/perf/perf_morph.cpp
-
curl -L -o perf_morph.cpp https://huggingface.co/tgollogly/test/resolve/main/modules/imgproc/perf/perf_morph.cpp
1.05 kB
| // This file is part of OpenCV project. | |
| // It is subject to the license terms in the LICENSE file found in the top-level directory | |
| // of this distribution and at http://opencv.org/license.html. | |
| namespace opencv_test { | |
| PERF_TEST_P(Size_MatType, erode, TYPICAL_MATS_MORPH) | |
| { | |
| Size sz = get<0>(GetParam()); | |
| int type = get<1>(GetParam()); | |
| Mat src(sz, type); | |
| Mat dst(sz, type); | |
| declare.in(src, WARMUP_RNG).out(dst); | |
| int runs = (sz.width <= 320) ? 15 : 1; | |
| TEST_CYCLE_MULTIRUN(runs) erode(src, dst, noArray()); | |
| SANITY_CHECK(dst); | |
| } | |
| PERF_TEST_P(Size_MatType, dilate, TYPICAL_MATS_MORPH) | |
| { | |
| Size sz = get<0>(GetParam()); | |
| int type = get<1>(GetParam()); | |
| Mat src(sz, type); | |
| Mat dst(sz, type); | |
| declare.in(src, WARMUP_RNG).out(dst); | |
| TEST_CYCLE() dilate(src, dst, noArray()); | |
| SANITY_CHECK(dst); | |
| } | |
| } // namespace | |