File: gapi_render_perf_tests_ocv.cpp

package info (click to toggle)
opencv 4.10.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 282,092 kB
  • sloc: cpp: 1,178,079; xml: 682,621; python: 49,092; lisp: 31,150; java: 25,469; ansic: 11,039; javascript: 6,085; sh: 1,214; cs: 601; perl: 494; objc: 210; makefile: 173
file content (95 lines) | stat: -rw-r--r-- 4,531 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// 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.
//
// Copyright (C) 2020 Intel Corporation


#include "../perf_precomp.hpp"
#include "../common/gapi_render_perf_tests.hpp"

#define RENDER_OCV cv::gapi::render::ocv::kernels()

namespace opencv_test
{

#ifdef HAVE_FREETYPE
INSTANTIATE_TEST_CASE_P(RenderTestFTexts, RenderTestFTexts,
                        Combine(Values(L"\xe4\xbd\xa0\xe5\xa5\xbd"),
                                Values(szVGA, sz720p, sz1080p),
                                Values(cv::Point(50, 50)),
                                Values(60),
                                Values(cv::Scalar(200, 100, 25)),
                                Values(cv::compile_args(RENDER_OCV))));
#endif // HAVE_FREETYPE

INSTANTIATE_TEST_CASE_P(RenderTestTexts, RenderTestTexts,
                        Combine(Values(std::string("Some text")),
                                Values(szVGA, sz720p, sz1080p),
                                Values(cv::Point(200, 200)),
                                Values(FONT_HERSHEY_SIMPLEX),
                                Values(cv::Scalar(0, 255, 0)),
                                Values(2),
                                Values(LINE_8),
                                Values(false),
                                Values(cv::compile_args(RENDER_OCV))));

INSTANTIATE_TEST_CASE_P(RenderTestRects, RenderTestRects,
                        Combine(Values(szVGA, sz720p, sz1080p),
                                Values(cv::Rect(100, 100, 200, 200)),
                                Values(cv::Scalar(100, 50, 150)),
                                Values(2),
                                Values(LINE_8),
                                Values(0),
                                Values(cv::compile_args(RENDER_OCV))));

INSTANTIATE_TEST_CASE_P(RenderTestCircles, RenderTestCircles,
                        Combine(Values(szVGA, sz720p, sz1080p),
                                Values(cv::Point(100, 100)),
                                Values(10),
                                Values(cv::Scalar(100, 50, 150)),
                                Values(2),
                                Values(LINE_8),
                                Values(0),
                                Values(cv::compile_args(RENDER_OCV))));

INSTANTIATE_TEST_CASE_P(RenderTestLines, RenderTestLines,
                        Combine(Values(szVGA, sz720p, sz1080p),
                                Values(cv::Point(100, 100)),
                                Values(cv::Point(200, 200)),
                                Values(cv::Scalar(100, 50, 150)),
                                Values(2),
                                Values(LINE_8),
                                Values(0),
                                Values(cv::compile_args(RENDER_OCV))));

INSTANTIATE_TEST_CASE_P(RenderTestMosaics, RenderTestMosaics,
                        Combine(Values(szVGA, sz720p, sz1080p),
                                Values(cv::Rect(100, 100, 200, 200)),
                                Values(25),
                                Values(0),
                                Values(cv::compile_args(RENDER_OCV))));

INSTANTIATE_TEST_CASE_P(RenderTestImages, RenderTestImages,
                        Combine(Values(szVGA, sz720p, sz1080p),
                                Values(cv::Rect(50, 50, 100, 100)),
                                Values(cv::Scalar(100, 150, 60)),
                                Values(1.0),
                                Values(cv::compile_args(RENDER_OCV))));

INSTANTIATE_TEST_CASE_P(RenderTestPolylines, RenderTestPolylines,
                        Combine(Values(szVGA, sz720p, sz1080p),
                                Values(std::vector<cv::Point>{{100, 100}, {200, 200}, {150, 300}, {400, 150}}),
                                Values(cv::Scalar(100, 150, 60)),
                                Values(2),
                                Values(LINE_8),
                                Values(0),
                                Values(cv::compile_args(RENDER_OCV))));

INSTANTIATE_TEST_CASE_P(RenderTestPolyItems, RenderTestPolyItems,
                        Combine(Values(szVGA, sz720p, sz1080p),
                                Values(50),
                                Values(50),
                                Values(50),
                                Values(cv::compile_args(RENDER_OCV))));
}