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
d579f080
Commit
d579f080
authored
Feb 03, 2016
by
Vladislav Sovrasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mouse control in asift and find_obj samples
parent
3a51cae2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
asift.py
samples/python/asift.py
+1
-1
find_obj.py
samples/python/find_obj.py
+2
-2
No files found.
samples/python/asift.py
View file @
d579f080
...
...
@@ -112,7 +112,7 @@ if __name__ == '__main__':
import
sys
,
getopt
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
''
,
[
'feature='
])
opts
=
dict
(
opts
)
feature_name
=
opts
.
get
(
'--feature'
,
'
sift
-flann'
)
feature_name
=
opts
.
get
(
'--feature'
,
'
brisk
-flann'
)
try
:
fn1
,
fn2
=
args
except
:
...
...
samples/python/find_obj.py
View file @
d579f080
...
...
@@ -119,7 +119,7 @@ def explore_match(win, img1, img2, kp_pairs, status = None, H = None):
if
flags
&
cv2
.
EVENT_FLAG_LBUTTON
:
cur_vis
=
vis0
.
copy
()
r
=
8
m
=
(
anorm
(
p1
-
(
x
,
y
))
<
r
)
|
(
anorm
(
p2
-
(
x
,
y
))
<
r
)
m
=
(
anorm
(
np
.
array
(
p1
)
-
(
x
,
y
))
<
r
)
|
(
anorm
(
np
.
array
(
p2
)
-
(
x
,
y
))
<
r
)
idxs
=
np
.
where
(
m
)[
0
]
kp1s
,
kp2s
=
[],
[]
for
i
in
idxs
:
...
...
@@ -143,7 +143,7 @@ if __name__ == '__main__':
import
sys
,
getopt
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
''
,
[
'feature='
])
opts
=
dict
(
opts
)
feature_name
=
opts
.
get
(
'--feature'
,
'
sift
'
)
feature_name
=
opts
.
get
(
'--feature'
,
'
brisk
'
)
try
:
fn1
,
fn2
=
args
except
:
...
...
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