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
b0cc4956
Commit
b0cc4956
authored
8 years ago
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6822 from saedrna:master
parents
a2921fde
e646f9d2
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
AKAZEFeatures.cpp
modules/features2d/src/kaze/AKAZEFeatures.cpp
+6
-6
No files found.
modules/features2d/src/kaze/AKAZEFeatures.cpp
View file @
b0cc4956
...
...
@@ -342,14 +342,14 @@ void AKAZEFeatures::Find_Scale_Space_Extrema(std::vector<KeyPoint>& kpts)
if
(
is_out
==
false
)
{
if
(
is_repeated
==
false
)
{
point
.
pt
.
x
*=
ratio
;
point
.
pt
.
y
*=
ratio
;
point
.
pt
.
x
=
(
float
)(
point
.
pt
.
x
*
ratio
+
.5
*
(
ratio
-
1.0
))
;
point
.
pt
.
y
=
(
float
)(
point
.
pt
.
y
*
ratio
+
.5
*
(
ratio
-
1.0
))
;
kpts_aux
.
push_back
(
point
);
npoints
++
;
}
else
{
point
.
pt
.
x
*=
ratio
;
point
.
pt
.
y
*=
ratio
;
point
.
pt
.
x
=
(
float
)(
point
.
pt
.
x
*
ratio
+
.5
*
(
ratio
-
1.0
))
;
point
.
pt
.
y
=
(
float
)(
point
.
pt
.
y
*
ratio
+
.5
*
(
ratio
-
1.0
))
;
kpts_aux
[
id_repeated
]
=
point
;
}
}
// if is_out
...
...
@@ -439,8 +439,8 @@ void AKAZEFeatures::Do_Subpixel_Refinement(std::vector<KeyPoint>& kpts)
kpts
[
i
].
pt
.
x
=
x
+
dst
(
0
);
kpts
[
i
].
pt
.
y
=
y
+
dst
(
1
);
int
power
=
fastpow
(
2
,
evolution_
[
kpts
[
i
].
class_id
].
octave
);
kpts
[
i
].
pt
.
x
*=
power
;
kpts
[
i
].
pt
.
y
*=
power
;
kpts
[
i
].
pt
.
x
=
(
float
)(
kpts
[
i
].
pt
.
x
*
power
+
.5
*
(
power
-
1
))
;
kpts
[
i
].
pt
.
y
=
(
float
)(
kpts
[
i
].
pt
.
y
*
power
+
.5
*
(
power
-
1
))
;
kpts
[
i
].
angle
=
0.0
;
// In OpenCV the size of a keypoint its the diameter
...
...
This diff is collapsed.
Click to expand it.
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