Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
11626fe3
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,发现更多精彩内容 >>
提交
11626fe3
编写于
7月 14, 2017
作者:
A
Alexander Alekhin
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #8975 from sovrasov:fs_additional_errors
上级
63e89bc3
6dd9e18b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
7 deletion
+10
-7
modules/core/include/opencv2/core/cvstd.inl.hpp
modules/core/include/opencv2/core/cvstd.inl.hpp
+1
-3
modules/core/include/opencv2/core/persistence.hpp
modules/core/include/opencv2/core/persistence.hpp
+1
-0
modules/core/src/persistence.cpp
modules/core/src/persistence.cpp
+8
-4
未找到文件。
modules/core/include/opencv2/core/cvstd.inl.hpp
浏览文件 @
11626fe3
...
...
@@ -153,9 +153,7 @@ FileNode::operator std::string() const
template
<
>
inline
void
operator
>>
(
const
FileNode
&
n
,
std
::
string
&
value
)
{
String
val
;
read
(
n
,
val
,
val
);
value
=
val
;
read
(
n
,
value
,
std
::
string
());
}
template
<
>
inline
...
...
modules/core/include/opencv2/core/persistence.hpp
浏览文件 @
11626fe3
...
...
@@ -712,6 +712,7 @@ CV_EXPORTS void read(const FileNode& node, int& value, int default_value);
CV_EXPORTS
void
read
(
const
FileNode
&
node
,
float
&
value
,
float
default_value
);
CV_EXPORTS
void
read
(
const
FileNode
&
node
,
double
&
value
,
double
default_value
);
CV_EXPORTS
void
read
(
const
FileNode
&
node
,
String
&
value
,
const
String
&
default_value
);
CV_EXPORTS
void
read
(
const
FileNode
&
node
,
std
::
string
&
value
,
const
std
::
string
&
default_value
);
CV_EXPORTS
void
read
(
const
FileNode
&
node
,
Mat
&
mat
,
const
Mat
&
default_mat
=
Mat
()
);
CV_EXPORTS
void
read
(
const
FileNode
&
node
,
SparseMat
&
mat
,
const
SparseMat
&
default_mat
=
SparseMat
()
);
CV_EXPORTS
void
read
(
const
FileNode
&
node
,
std
::
vector
<
KeyPoint
>&
keypoints
);
...
...
modules/core/src/persistence.cpp
浏览文件 @
11626fe3
...
...
@@ -7374,22 +7374,21 @@ size_t FileNode::size() const
void
read
(
const
FileNode
&
node
,
int
&
value
,
int
default_value
)
{
value
=
!
node
.
node
?
default_value
:
CV_NODE_IS_INT
(
node
.
node
->
tag
)
?
node
.
node
->
data
.
i
:
CV_NODE_IS_REAL
(
node
.
node
->
tag
)
?
cvRound
(
node
.
node
->
data
.
f
)
:
0x7fffffff
;
CV_NODE_IS_INT
(
node
.
node
->
tag
)
?
node
.
node
->
data
.
i
:
std
::
numeric_limits
<
int
>::
max
();
}
void
read
(
const
FileNode
&
node
,
float
&
value
,
float
default_value
)
{
value
=
!
node
.
node
?
default_value
:
CV_NODE_IS_INT
(
node
.
node
->
tag
)
?
(
float
)
node
.
node
->
data
.
i
:
CV_NODE_IS_REAL
(
node
.
node
->
tag
)
?
(
float
)
node
.
node
->
data
.
f
:
1e30
f
;
CV_NODE_IS_REAL
(
node
.
node
->
tag
)
?
saturate_cast
<
float
>
(
node
.
node
->
data
.
f
)
:
std
::
numeric_limits
<
float
>::
max
()
;
}
void
read
(
const
FileNode
&
node
,
double
&
value
,
double
default_value
)
{
value
=
!
node
.
node
?
default_value
:
CV_NODE_IS_INT
(
node
.
node
->
tag
)
?
(
double
)
node
.
node
->
data
.
i
:
CV_NODE_IS_REAL
(
node
.
node
->
tag
)
?
node
.
node
->
data
.
f
:
1e300
;
CV_NODE_IS_REAL
(
node
.
node
->
tag
)
?
node
.
node
->
data
.
f
:
std
::
numeric_limits
<
double
>::
max
()
;
}
void
read
(
const
FileNode
&
node
,
String
&
value
,
const
String
&
default_value
)
...
...
@@ -7397,6 +7396,11 @@ void read(const FileNode& node, String& value, const String& default_value)
value
=
!
node
.
node
?
default_value
:
CV_NODE_IS_STRING
(
node
.
node
->
tag
)
?
String
(
node
.
node
->
data
.
str
.
ptr
)
:
String
();
}
void
read
(
const
FileNode
&
node
,
std
::
string
&
value
,
const
std
::
string
&
default_value
)
{
value
=
!
node
.
node
?
default_value
:
CV_NODE_IS_STRING
(
node
.
node
->
tag
)
?
std
::
string
(
node
.
node
->
data
.
str
.
ptr
)
:
default_value
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录