Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
5b16b190
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,发现更多精彩内容 >>
提交
5b16b190
编写于
2月 16, 2021
作者:
A
Alexander Alekhin
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #19543 from alalek:hotfix_19439
上级
f0445295
0885a79c
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
8 addition
and
8 deletion
+8
-8
modules/imgcodecs/CMakeLists.txt
modules/imgcodecs/CMakeLists.txt
+4
-0
modules/imgcodecs/test/test_png.cpp
modules/imgcodecs/test/test_png.cpp
+4
-8
未找到文件。
modules/imgcodecs/CMakeLists.txt
浏览文件 @
5b16b190
...
...
@@ -149,4 +149,8 @@ ocv_add_accuracy_tests()
if
(
TARGET opencv_test_imgcodecs AND HAVE_JASPER AND
"$ENV{OPENCV_IO_ENABLE_JASPER}"
)
ocv_target_compile_definitions
(
opencv_test_imgcodecs PRIVATE OPENCV_IMGCODECS_ENABLE_JASPER_TESTS=1
)
endif
()
if
(
TARGET opencv_test_imgcodecs AND HAVE_PNG AND
NOT
(
PNG_VERSION VERSION_LESS
"1.6.31"
))
# details: https://github.com/glennrp/libpng/commit/68cb0aaee3de6371b81a4613476d9b33e43e95b1
ocv_target_compile_definitions
(
opencv_test_imgcodecs PRIVATE OPENCV_IMGCODECS_PNG_WITH_EXIF=1
)
endif
()
ocv_add_perf_tests
()
modules/imgcodecs/test/test_png.cpp
浏览文件 @
5b16b190
...
...
@@ -7,12 +7,6 @@ namespace opencv_test { namespace {
#ifdef HAVE_PNG
#ifdef HAVE_LIBPNG_PNG_H
#include <libpng/png.h>
#else
#include <png.h>
#endif
TEST
(
Imgcodecs_Png
,
write_big
)
{
const
string
root
=
cvtest
::
TS
::
ptr
()
->
get_data_path
();
...
...
@@ -99,7 +93,6 @@ TEST(Imgcodecs_Png, read_color_palette_with_alpha)
EXPECT_EQ
(
img
.
at
<
Vec3b
>
(
0
,
1
),
Vec3b
(
0
,
0
,
255
));
}
#ifdef PNG_eXIf_SUPPORTED
/**
* Test for check whether reading exif orientation tag was processed successfully or not
* The test info is the set of 8 images named testExifRotate_{1 to 8}.png
...
...
@@ -144,7 +137,11 @@ TEST(Imgcodecs_Png, read_color_palette_with_alpha)
typedef
testing
::
TestWithParam
<
string
>
Imgcodecs_PNG_Exif
;
// Solution to issue 16579: PNG read doesn't support Exif orientation data
#ifdef OPENCV_IMGCODECS_PNG_WITH_EXIF
TEST_P
(
Imgcodecs_PNG_Exif
,
exif_orientation
)
#else
TEST_P
(
Imgcodecs_PNG_Exif
,
DISABLED_exif_orientation
)
#endif
{
const
string
root
=
cvtest
::
TS
::
ptr
()
->
get_data_path
();
const
string
filename
=
root
+
GetParam
();
...
...
@@ -188,7 +185,6 @@ const string exif_files[] =
INSTANTIATE_TEST_CASE_P
(
ExifFiles
,
Imgcodecs_PNG_Exif
,
testing
::
ValuesIn
(
exif_files
));
#endif // PNG_eXIf_SUPPORTED
#endif // HAVE_PNG
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录