Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
027da35c
Commit
027da35c
authored
Jan 31, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10738 from tomoaki0705:fixBuildVisualStudio
parents
2c1161a6
5f4b48da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fast.cpp
modules/features2d/src/fast.cpp
+4
-4
No files found.
modules/features2d/src/fast.cpp
View file @
027da35c
...
...
@@ -445,12 +445,12 @@ static inline int hal_FAST(cv::Mat& src, std::vector<KeyPoint>& keypoints, int t
cv
::
KeyPoint
kpt
(
0
,
0
,
7.
f
,
-
1
,
0
);
u
int32_t
uthreshold
=
(
uint32_t
)
threshold
;
u
nsigned
uthreshold
=
(
unsigned
)
threshold
;
int
ofs
=
3
;
int
stride
=
(
int
)
suppressedScores
.
step
;
const
u
int8_t
*
pscore
=
suppressedScores
.
data
;
const
u
nsigned
char
*
pscore
=
suppressedScores
.
data
;
keypoints
.
clear
();
...
...
@@ -459,11 +459,11 @@ static inline int hal_FAST(cv::Mat& src, std::vector<KeyPoint>& keypoints, int t
kpt
.
pt
.
y
=
(
float
)(
y
);
for
(
int
x
=
ofs
;
x
+
ofs
<
suppressedScores
.
cols
;
++
x
)
{
u
int32_t
score
=
pscore
[
y
*
stride
+
x
];
u
nsigned
score
=
pscore
[
y
*
stride
+
x
];
if
(
score
>
uthreshold
)
{
kpt
.
pt
.
x
=
(
float
)(
x
);
kpt
.
response
=
(
nonmax_suppression
!=
0
)
?
(
float
)((
int
32_t
)
score
-
1
)
:
0.
f
;
kpt
.
response
=
(
nonmax_suppression
!=
0
)
?
(
float
)((
int
)
score
-
1
)
:
0.
f
;
keypoints
.
push_back
(
kpt
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment