Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
bbedebb5
O
Opencv
项目概览
Greenplum
/
Opencv
11 个月 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bbedebb5
编写于
2月 06, 2019
作者:
R
Rostislav Vasilikhin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
perf tests for cvtColor for 16U and 32f added
上级
b19bb95d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
120 addition
and
0 deletion
+120
-0
modules/imgproc/perf/perf_cvt_color.cpp
modules/imgproc/perf/perf_cvt_color.cpp
+120
-0
未找到文件。
modules/imgproc/perf/perf_cvt_color.cpp
浏览文件 @
bbedebb5
...
...
@@ -100,6 +100,72 @@ CV_ENUM(CvtMode,
COLOR_YUV2BGR
,
COLOR_YUV2RGB
,
CX_YUV2BGRA
,
CX_YUV2RGBA
)
CV_ENUM
(
CvtMode16U
,
COLOR_BGR2BGRA
,
COLOR_BGR2GRAY
,
COLOR_BGR2RGB
,
COLOR_BGR2RGBA
,
COLOR_BGR2XYZ
,
COLOR_BGR2YCrCb
,
COLOR_BGR2YUV
,
COLOR_BGRA2BGR
,
COLOR_BGRA2GRAY
,
COLOR_BGRA2RGBA
,
CX_BGRA2XYZ
,
CX_BGRA2YCrCb
,
CX_BGRA2YUV
,
COLOR_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...
@@ -274,6 +340,60 @@ PERF_TEST_P(Size_CvtMode, cvtColor8u,
#endif
}
typedef
tuple
<
Size
,
CvtMode16U
>
Size_CvtMode16U_t
;
typedef
perf
::
TestBaseWithParam
<
Size_CvtMode16U_t
>
Size_CvtMode16U
;
PERF_TEST_P
(
Size_CvtMode16U
,
cvtColor_16u
,
testing
::
Combine
(
testing
::
Values
(
::
perf
::
szODD
,
::
perf
::
szVGA
,
::
perf
::
sz1080p
),
CvtMode16U
::
all
()
)
)
{
Size
sz
=
get
<
0
>
(
GetParam
());
int
_mode
=
get
<
1
>
(
GetParam
()),
mode
=
_mode
;
ChPair
ch
=
getConversionInfo
(
mode
);
mode
%=
COLOR_COLORCVT_MAX
;
Mat
src
(
sz
,
CV_16UC
(
ch
.
scn
));
Mat
dst
(
sz
,
CV_16UC
(
ch
.
scn
));
declare
.
time
(
100
);
declare
.
in
(
src
,
WARMUP_RNG
).
out
(
dst
);
int
runs
=
sz
.
width
<=
320
?
100
:
5
;
TEST_CYCLE_MULTIRUN
(
runs
)
cvtColor
(
src
,
dst
,
mode
,
ch
.
dcn
);
SANITY_CHECK
(
dst
,
1
);
}
typedef
tuple
<
Size
,
CvtMode32F
>
Size_CvtMode32F_t
;
typedef
perf
::
TestBaseWithParam
<
Size_CvtMode32F_t
>
Size_CvtMode32F
;
PERF_TEST_P
(
Size_CvtMode32F
,
cvtColor_32f
,
testing
::
Combine
(
testing
::
Values
(
::
perf
::
szODD
,
::
perf
::
szVGA
,
::
perf
::
sz1080p
),
CvtMode32F
::
all
()
)
)
{
Size
sz
=
get
<
0
>
(
GetParam
());
int
_mode
=
get
<
1
>
(
GetParam
()),
mode
=
_mode
;
ChPair
ch
=
getConversionInfo
(
mode
);
mode
%=
COLOR_COLORCVT_MAX
;
Mat
src
(
sz
,
CV_32FC
(
ch
.
scn
));
Mat
dst
(
sz
,
CV_32FC
(
ch
.
scn
));
declare
.
time
(
100
);
declare
.
in
(
src
,
WARMUP_RNG
).
out
(
dst
);
int
runs
=
sz
.
width
<=
320
?
100
:
5
;
TEST_CYCLE_MULTIRUN
(
runs
)
cvtColor
(
src
,
dst
,
mode
,
ch
.
dcn
);
SANITY_CHECK
(
dst
,
1
);
}
typedef
tuple
<
Size
,
CvtModeBayer
>
Size_CvtMode_Bayer_t
;
typedef
perf
::
TestBaseWithParam
<
Size_CvtMode_Bayer_t
>
Size_CvtMode_Bayer
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录