Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
5ce896d9
O
Opencv
项目概览
Greenplum
/
Opencv
大约 1 年 前同步成功
通知
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,发现更多精彩内容 >>
提交
5ce896d9
编写于
8月 02, 2012
作者:
V
Vladislav Vinogradov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added perf tests for new gpu::cvtColor functions
上级
b0461db4
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
194 addition
and
72 deletion
+194
-72
modules/gpu/perf/perf_imgproc.cpp
modules/gpu/perf/perf_imgproc.cpp
+14
-1
modules/gpu/perf/perf_utility.cpp
modules/gpu/perf/perf_utility.cpp
+83
-35
modules/gpu/perf_cpu/perf_imgproc.cpp
modules/gpu/perf_cpu/perf_imgproc.cpp
+14
-1
modules/gpu/perf_cpu/perf_utility.cpp
modules/gpu/perf_cpu/perf_utility.cpp
+83
-35
未找到文件。
modules/gpu/perf/perf_imgproc.cpp
浏览文件 @
5ce896d9
...
...
@@ -1172,7 +1172,20 @@ INSTANTIATE_TEST_CASE_P(ImgProc, CvtColor, testing::Combine(
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_BGR2HSV
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_HSV2BGR
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_BGR2HLS
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_HLS2BGR
))));
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_HLS2BGR
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_BGR2Lab
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_RGB2Lab
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_BGR2Luv
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_RGB2Luv
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_Lab2BGR
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_Lab2RGB
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_Luv2BGR
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_Luv2RGB
),
CvtColorInfo
(
1
,
3
,
cv
::
COLOR_BayerBG2BGR
),
CvtColorInfo
(
1
,
3
,
cv
::
COLOR_BayerGB2BGR
),
CvtColorInfo
(
1
,
3
,
cv
::
COLOR_BayerRG2BGR
),
CvtColorInfo
(
1
,
3
,
cv
::
COLOR_BayerGR2BGR
),
CvtColorInfo
(
4
,
4
,
cv
::
COLOR_RGBA2mRGBA
))));
//////////////////////////////////////////////////////////////////////
// SwapChannels
...
...
modules/gpu/perf/perf_utility.cpp
浏览文件 @
5ce896d9
...
...
@@ -65,19 +65,19 @@ void PrintTo(const CvtColorInfo& info, ostream* os)
"BGR2HSV"
,
"RGB2HSV"
,
0
,
0
,
""
,
""
,
0
,
0
,
"BGR2Lab"
,
"RGB2Lab"
,
0
,
0
,
0
,
0
,
"BayerBG2BGR"
,
"BayerGB2BGR"
,
"BayerRG2BGR"
,
"BayerGR2BGR"
,
0
,
0
,
"BGR2Luv"
,
"RGB2Luv"
,
"BGR2HLS"
,
"RGB2HLS"
,
...
...
@@ -85,18 +85,18 @@ void PrintTo(const CvtColorInfo& info, ostream* os)
"HSV2BGR"
,
"HSV2RGB"
,
0
,
0
,
0
,
0
,
"Lab2BGR"
,
"Lab2RGB"
,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
"YUV2BGR_YVYU"
,
"YUV2RGBA_YUY2"
,
"YUV2BGRA_YUY2"
,
"YUV2RGBA_YVYU"
,
"YUV2BGRA_YVYU"
,
"YUV2GRAY_UYVY"
,
"YUV2GRAY_YUY2"
,
// alpha premultiplication
"RGBA2mRGBA"
,
"mRGBA2RGBA"
,
"COLORCVT_MAX"
};
*
os
<<
str
[
info
.
code
];
...
...
modules/gpu/perf_cpu/perf_imgproc.cpp
浏览文件 @
5ce896d9
...
...
@@ -712,6 +712,19 @@ INSTANTIATE_TEST_CASE_P(ImgProc, CvtColor, testing::Combine(
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_BGR2HSV
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_HSV2BGR
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_BGR2HLS
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_HLS2BGR
))));
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_HLS2BGR
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_BGR2Lab
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_RGB2Lab
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_BGR2Luv
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_RGB2Luv
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_Lab2BGR
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_Lab2RGB
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_Luv2BGR
),
CvtColorInfo
(
3
,
3
,
cv
::
COLOR_Luv2RGB
),
CvtColorInfo
(
1
,
3
,
cv
::
COLOR_BayerBG2BGR
),
CvtColorInfo
(
1
,
3
,
cv
::
COLOR_BayerGB2BGR
),
CvtColorInfo
(
1
,
3
,
cv
::
COLOR_BayerRG2BGR
),
CvtColorInfo
(
1
,
3
,
cv
::
COLOR_BayerGR2BGR
),
CvtColorInfo
(
4
,
4
,
cv
::
COLOR_RGBA2mRGBA
))));
#endif
modules/gpu/perf_cpu/perf_utility.cpp
浏览文件 @
5ce896d9
...
...
@@ -65,19 +65,19 @@ void PrintTo(const CvtColorInfo& info, ostream* os)
"BGR2HSV"
,
"RGB2HSV"
,
0
,
0
,
""
,
""
,
0
,
0
,
"BGR2Lab"
,
"RGB2Lab"
,
0
,
0
,
0
,
0
,
"BayerBG2BGR"
,
"BayerGB2BGR"
,
"BayerRG2BGR"
,
"BayerGR2BGR"
,
0
,
0
,
"BGR2Luv"
,
"RGB2Luv"
,
"BGR2HLS"
,
"RGB2HLS"
,
...
...
@@ -85,18 +85,18 @@ void PrintTo(const CvtColorInfo& info, ostream* os)
"HSV2BGR"
,
"HSV2RGB"
,
0
,
0
,
0
,
0
,
"Lab2BGR"
,
"Lab2RGB"
,
"Luv2BGR"
,
"Luv2RGB"
,
"HLS2BGR"
,
"HLS2RGB"
,
0
,
0
,
0
,
0
,
"BayerBG2BGR_VNG"
,
"BayerGB2BGR_VNG"
,
"BayerRG2BGR_VNG"
,
"BayerGR2BGR_VNG"
,
"BGR2HSV_FULL"
,
"RGB2HSV_FULL"
,
...
...
@@ -108,30 +108,78 @@ void PrintTo(const CvtColorInfo& info, ostream* os)
"HLS2BGR_FULL"
,
"HLS2RGB_FULL"
,
0
,
0
,
0
,
0
,
"LBGR2Lab"
,
"LRGB2Lab"
,
"LBGR2Luv"
,
"LRGB2Luv"
,
0
,
0
,
0
,
0
,
"Lab2LBGR"
,
"Lab2LRGB"
,
"Luv2LBGR"
,
"Luv2LRGB"
,
"BGR2YUV"
,
"RGB2YUV"
,
"YUV2BGR"
,
"YUV2RGB"
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
"BayerBG2GRAY"
,
"BayerGB2GRAY"
,
"BayerRG2GRAY"
,
"BayerGR2GRAY"
,
//YUV 4:2:0 formats family
"YUV2RGB_NV12"
,
"YUV2BGR_NV12"
,
"YUV2RGB_NV21"
,
"YUV2BGR_NV21"
,
"YUV2RGBA_NV12"
,
"YUV2BGRA_NV12"
,
"YUV2RGBA_NV21"
,
"YUV2BGRA_NV21"
,
"YUV2RGB_YV12"
,
"YUV2BGR_YV12"
,
"YUV2RGB_IYUV"
,
"YUV2BGR_IYUV"
,
"YUV2RGBA_YV12"
,
"YUV2BGRA_YV12"
,
"YUV2RGBA_IYUV"
,
"YUV2BGRA_IYUV"
,
"YUV2GRAY_420"
,
//YUV 4:2:2 formats family
"YUV2RGB_UYVY"
,
"YUV2BGR_UYVY"
,
"YUV2RGB_VYUY"
,
"YUV2BGR_VYUY"
,
"YUV2RGBA_UYVY"
,
"YUV2BGRA_UYVY"
,
"YUV2RGBA_VYUY"
,
"YUV2BGRA_VYUY"
,
"YUV2RGB_YUY2"
,
"YUV2BGR_YUY2"
,
"YUV2RGB_YVYU"
,
"YUV2BGR_YVYU"
,
"YUV2RGBA_YUY2"
,
"YUV2BGRA_YUY2"
,
"YUV2RGBA_YVYU"
,
"YUV2BGRA_YVYU"
,
"YUV2GRAY_UYVY"
,
"YUV2GRAY_YUY2"
,
// alpha premultiplication
"RGBA2mRGBA"
,
"mRGBA2RGBA"
,
"COLORCVT_MAX"
};
*
os
<<
str
[
info
.
code
];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录