Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
0c8e6e0e
O
Opencv
项目概览
Greenplum
/
Opencv
10 个月 前同步成功
通知
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
0c8e6e0e
编写于
6月 09, 2023
作者:
A
Alexander Smorkalov
提交者:
GitHub
6月 09, 2023
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #23740 from Peekabooc:4.x
fixing typo in stitching parameter names
上级
60b806f9
983925c6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
8 deletion
+8
-8
modules/stitching/include/opencv2/stitching/detail/motion_estimators.hpp
...ng/include/opencv2/stitching/detail/motion_estimators.hpp
+2
-2
modules/stitching/src/motion_estimators.cpp
modules/stitching/src/motion_estimators.cpp
+6
-6
未找到文件。
modules/stitching/include/opencv2/stitching/detail/motion_estimators.hpp
浏览文件 @
0c8e6e0e
...
...
@@ -353,8 +353,8 @@ void CV_EXPORTS_W waveCorrect(CV_IN_OUT std::vector<Mat> &rmats, WaveCorrectKind
// Auxiliary functions
// Returns matches graph representation in DOT language
String
CV_EXPORTS_W
matchesGraphAsString
(
std
::
vector
<
String
>
&
path
e
s
,
std
::
vector
<
MatchesInfo
>
&
pairwise_matches
,
float
conf_threshold
);
String
CV_EXPORTS_W
matchesGraphAsString
(
std
::
vector
<
String
>
&
paths
,
std
::
vector
<
MatchesInfo
>
&
pairwise_matches
,
float
conf_threshold
);
CV_EXPORTS_W
std
::
vector
<
int
>
leaveBiggestComponent
(
std
::
vector
<
ImageFeatures
>
&
features
,
...
...
modules/stitching/src/motion_estimators.cpp
浏览文件 @
0c8e6e0e
...
...
@@ -1018,13 +1018,13 @@ void waveCorrect(std::vector<Mat> &rmats, WaveCorrectKind kind)
//////////////////////////////////////////////////////////////////////////////
String
matchesGraphAsString
(
std
::
vector
<
String
>
&
path
e
s
,
std
::
vector
<
MatchesInfo
>
&
pairwise_matches
,
float
conf_threshold
)
String
matchesGraphAsString
(
std
::
vector
<
String
>
&
paths
,
std
::
vector
<
MatchesInfo
>
&
pairwise_matches
,
float
conf_threshold
)
{
std
::
stringstream
str
;
str
<<
"graph matches_graph{
\n
"
;
const
int
num_images
=
static_cast
<
int
>
(
path
e
s
.
size
());
const
int
num_images
=
static_cast
<
int
>
(
paths
.
size
());
std
::
set
<
std
::
pair
<
int
,
int
>
>
span_tree_edges
;
DisjointSets
comps
(
num_images
);
...
...
@@ -1050,12 +1050,12 @@ String matchesGraphAsString(std::vector<String> &pathes, std::vector<MatchesInfo
std
::
pair
<
int
,
int
>
edge
=
*
itr
;
if
(
span_tree_edges
.
find
(
edge
)
!=
span_tree_edges
.
end
())
{
String
name_src
=
path
e
s
[
edge
.
first
];
String
name_src
=
paths
[
edge
.
first
];
size_t
prefix_len
=
name_src
.
find_last_of
(
"/
\\
"
);
if
(
prefix_len
!=
String
::
npos
)
prefix_len
++
;
else
prefix_len
=
0
;
name_src
=
name_src
.
substr
(
prefix_len
,
name_src
.
size
()
-
prefix_len
);
String
name_dst
=
path
e
s
[
edge
.
second
];
String
name_dst
=
paths
[
edge
.
second
];
prefix_len
=
name_dst
.
find_last_of
(
"/
\\
"
);
if
(
prefix_len
!=
String
::
npos
)
prefix_len
++
;
else
prefix_len
=
0
;
name_dst
=
name_dst
.
substr
(
prefix_len
,
name_dst
.
size
()
-
prefix_len
);
...
...
@@ -1072,7 +1072,7 @@ String matchesGraphAsString(std::vector<String> &pathes, std::vector<MatchesInfo
{
if
(
comps
.
size
[
comps
.
findSetByElem
((
int
)
i
)]
==
1
)
{
String
name
=
path
e
s
[
i
];
String
name
=
paths
[
i
];
size_t
prefix_len
=
name
.
find_last_of
(
"/
\\
"
);
if
(
prefix_len
!=
String
::
npos
)
prefix_len
++
;
else
prefix_len
=
0
;
name
=
name
.
substr
(
prefix_len
,
name
.
size
()
-
prefix_len
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录