Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
78a31063
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,发现更多精彩内容 >>
提交
78a31063
编写于
8月 16, 2017
作者:
A
Alexander Alekhin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
imgproc(test): add checks for remove() call
上级
999f41fb
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
17 addition
and
17 deletion
+17
-17
modules/imgcodecs/test/test_grfmt.cpp
modules/imgcodecs/test/test_grfmt.cpp
+1
-1
modules/imgcodecs/test/test_jpeg.cpp
modules/imgcodecs/test/test_jpeg.cpp
+6
-6
modules/imgcodecs/test/test_png.cpp
modules/imgcodecs/test/test_png.cpp
+1
-1
modules/imgcodecs/test/test_read_write.cpp
modules/imgcodecs/test/test_read_write.cpp
+2
-2
modules/imgcodecs/test/test_tiff.cpp
modules/imgcodecs/test/test_tiff.cpp
+4
-4
modules/imgcodecs/test/test_webp.cpp
modules/imgcodecs/test/test_webp.cpp
+3
-3
未找到文件。
modules/imgcodecs/test/test_grfmt.cpp
浏览文件 @
78a31063
...
...
@@ -175,7 +175,7 @@ TEST_P(Imgcodecs_ExtSize, write_imageseq)
EXPECT_LT
(
n
,
1.
);
EXPECT_PRED_FORMAT2
(
cvtest
::
MatComparator
(
0
,
0
),
img
,
img_gt
);
}
remove
(
filename
.
c_str
(
));
EXPECT_EQ
(
0
,
remove
(
filename
.
c_str
()
));
}
}
...
...
modules/imgcodecs/test/test_jpeg.cpp
浏览文件 @
78a31063
...
...
@@ -123,8 +123,8 @@ TEST(Imgcodecs_Jpeg, encode_decode_progressive_jpeg)
EXPECT_EQ
(
0
,
cvtest
::
norm
(
img_jpg_progressive
,
img_jpg_normal
,
NORM_INF
));
remove
(
output_progressive
.
c_str
(
));
remove
(
output_normal
.
c_str
(
));
EXPECT_EQ
(
0
,
remove
(
output_progressive
.
c_str
()
));
EXPECT_EQ
(
0
,
remove
(
output_normal
.
c_str
()
));
}
TEST
(
Imgcodecs_Jpeg
,
encode_decode_optimize_jpeg
)
...
...
@@ -148,8 +148,8 @@ TEST(Imgcodecs_Jpeg, encode_decode_optimize_jpeg)
EXPECT_EQ
(
0
,
cvtest
::
norm
(
img_jpg_optimized
,
img_jpg_normal
,
NORM_INF
));
remove
(
output_optimized
.
c_str
(
));
remove
(
output_normal
.
c_str
(
));
EXPECT_EQ
(
0
,
remove
(
output_optimized
.
c_str
()
));
EXPECT_EQ
(
0
,
remove
(
output_normal
.
c_str
()
));
}
TEST
(
Imgcodecs_Jpeg
,
encode_decode_rst_jpeg
)
...
...
@@ -173,8 +173,8 @@ TEST(Imgcodecs_Jpeg, encode_decode_rst_jpeg)
EXPECT_EQ
(
0
,
cvtest
::
norm
(
img_jpg_rst
,
img_jpg_normal
,
NORM_INF
));
remove
(
output_rst
.
c_str
(
));
remove
(
output_normal
.
c_str
(
));
EXPECT_EQ
(
0
,
remove
(
output_rst
.
c_str
()
));
EXPECT_EQ
(
0
,
remove
(
output_normal
.
c_str
()
));
}
#endif // HAVE_JPEG
modules/imgcodecs/test/test_png.cpp
浏览文件 @
78a31063
...
...
@@ -17,7 +17,7 @@ TEST(Imgcodecs_Png, write_big)
EXPECT_EQ
(
13043
,
img
.
cols
);
EXPECT_EQ
(
13917
,
img
.
rows
);
ASSERT_NO_THROW
(
imwrite
(
dst_file
,
img
));
remove
(
dst_file
.
c_str
(
));
EXPECT_EQ
(
0
,
remove
(
dst_file
.
c_str
()
));
}
TEST
(
Imgcodecs_Png
,
encode
)
...
...
modules/imgcodecs/test/test_read_write.cpp
浏览文件 @
78a31063
...
...
@@ -50,7 +50,7 @@ TEST(Imgcodecs_Image, read_write_bmp)
psnr
=
cvtest
::
PSNR
(
buf_loaded
,
image
);
EXPECT_GT
(
psnr
,
thresDbell
);
remove
(
dst_name
.
c_str
(
));
EXPECT_EQ
(
0
,
remove
(
dst_name
.
c_str
()
));
}
}
...
...
@@ -95,7 +95,7 @@ TEST_P(Imgcodecs_Image, read_write)
psnr
=
cvtest
::
PSNR
(
buf_loaded
,
image
);
EXPECT_GT
(
psnr
,
thresDbell
);
remove
(
full_name
.
c_str
(
));
EXPECT_EQ
(
0
,
remove
(
full_name
.
c_str
()
));
}
const
string
exts
[]
=
{
...
...
modules/imgcodecs/test/test_tiff.cpp
浏览文件 @
78a31063
...
...
@@ -41,8 +41,8 @@ TEST(Imgcodecs_Tiff, decode_tile16384x16384)
// not enough memory
}
remove
(
file3
.
c_str
(
));
remove
(
file4
.
c_str
(
));
EXPECT_EQ
(
0
,
remove
(
file3
.
c_str
()
));
EXPECT_EQ
(
0
,
remove
(
file4
.
c_str
()
));
}
TEST
(
Imgcodecs_Tiff
,
write_read_16bit_big_little_endian
)
...
...
@@ -88,7 +88,7 @@ TEST(Imgcodecs_Tiff, write_read_16bit_big_little_endian)
EXPECT_EQ
(
0xDEAD
,
img
.
at
<
ushort
>
(
0
,
0
));
EXPECT_EQ
(
0xBEEF
,
img
.
at
<
ushort
>
(
0
,
1
));
remove
(
filename
.
c_str
(
));
EXPECT_EQ
(
0
,
remove
(
filename
.
c_str
()
));
}
}
...
...
@@ -143,7 +143,7 @@ TEST(Imgcodecs_Tiff, decode_infinite_rowsperstrip)
EXPECT_NO_THROW
(
cv
::
imread
(
filename
,
IMREAD_UNCHANGED
));
remove
(
filename
.
c_str
(
));
EXPECT_EQ
(
0
,
remove
(
filename
.
c_str
()
));
}
//==================================================================================================
...
...
modules/imgcodecs/test/test_webp.cpp
浏览文件 @
78a31063
...
...
@@ -44,7 +44,7 @@ TEST(Imgcodecs_WebP, encode_decode_lossless_webp)
}
}
remove
(
output
.
c_str
(
));
EXPECT_EQ
(
0
,
remove
(
output
.
c_str
()
));
cv
::
Mat
decode
=
cv
::
imdecode
(
buf
,
IMREAD_COLOR
);
ASSERT_FALSE
(
decode
.
empty
());
...
...
@@ -71,7 +71,7 @@ TEST(Imgcodecs_WebP, encode_decode_lossy_webp)
EXPECT_NO_THROW
(
cv
::
imwrite
(
output
,
img
,
params
));
cv
::
Mat
img_webp
=
cv
::
imread
(
output
);
remove
(
output
.
c_str
(
));
EXPECT_EQ
(
0
,
remove
(
output
.
c_str
()
));
EXPECT_FALSE
(
img_webp
.
empty
());
EXPECT_EQ
(
3
,
img_webp
.
channels
());
EXPECT_EQ
(
512
,
img_webp
.
cols
);
...
...
@@ -96,7 +96,7 @@ TEST(Imgcodecs_WebP, encode_decode_with_alpha_webp)
EXPECT_NO_THROW
(
cv
::
imwrite
(
output
,
img
));
cv
::
Mat
img_webp
=
cv
::
imread
(
output
);
remove
(
output
.
c_str
(
));
EXPECT_EQ
(
0
,
remove
(
output
.
c_str
()
));
EXPECT_FALSE
(
img_webp
.
empty
());
EXPECT_EQ
(
4
,
img_webp
.
channels
());
EXPECT_EQ
(
512
,
img_webp
.
cols
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录