Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenCV
opencv_contrib
提交
b8eca416
O
opencv_contrib
项目概览
OpenCV
/
opencv_contrib
9 个月 前同步成功
通知
751
Star
8664
Fork
5663
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
opencv_contrib
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b8eca416
编写于
9月 28, 2020
作者:
A
Alexander Alekhin
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2687 from alalek:fix_build_msvs2019
上级
00a3c610
5bef5c5c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
2 deletion
+7
-2
modules/xfeatures2d/src/stardetector.cpp
modules/xfeatures2d/src/stardetector.cpp
+7
-2
未找到文件。
modules/xfeatures2d/src/stardetector.cpp
浏览文件 @
b8eca416
...
...
@@ -227,7 +227,12 @@ StarDetectorComputeResponses( const Mat& img, Mat& responses, Mat& sizes,
for
(
int
i
=
0
;
i
<
npatterns
;
i
++
)
{
int
innerArea
=
f
[
pairs
[
i
][
1
]].
area
;
#if 0 // workaround MSVS2019 bug: error C2109: subscript requires array or pointer type
int outerArea = f[pairs[i][0]].area - innerArea;
#else
int
outerArea
=
f
[
pairs
[
i
][
0
]].
area
;
outerArea
-=
innerArea
;
#endif
invSizes
[
i
][
0
]
=
1.
f
/
outerArea
;
invSizes
[
i
][
1
]
=
1.
f
/
innerArea
;
}
...
...
@@ -283,7 +288,7 @@ StarDetectorComputeResponses( const Mat& img, Mat& responses, Mat& sizes,
for
(
int
i
=
0
;
i
<=
maxIdx
;
i
++
)
{
const
iiMatType
**
p
=
(
const
iiMatType
**
)
&
f
[
i
].
p
[
0
]
;
const
iiMatType
**
p
=
(
const
iiMatType
**
)
f
[
i
].
p
;
__m128i
r0
=
_mm_sub_epi32
(
_mm_loadu_si128
((
const
__m128i
*
)(
p
[
0
]
+
ofs
)),
_mm_loadu_si128
((
const
__m128i
*
)(
p
[
1
]
+
ofs
)));
__m128i
r1
=
_mm_sub_epi32
(
_mm_loadu_si128
((
const
__m128i
*
)(
p
[
3
]
+
ofs
)),
...
...
@@ -325,7 +330,7 @@ StarDetectorComputeResponses( const Mat& img, Mat& responses, Mat& sizes,
for
(
int
i
=
0
;
i
<=
maxIdx
;
i
++
)
{
const
iiMatType
**
p
=
(
const
iiMatType
**
)
&
f
[
i
].
p
[
0
]
;
const
iiMatType
**
p
=
(
const
iiMatType
**
)
f
[
i
].
p
;
vals
[
i
]
=
(
int
)(
p
[
0
][
ofs
]
-
p
[
1
][
ofs
]
-
p
[
2
][
ofs
]
+
p
[
3
][
ofs
]
+
p
[
4
][
ofs
]
-
p
[
5
][
ofs
]
-
p
[
6
][
ofs
]
+
p
[
7
][
ofs
]);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录