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
c8b97271
Commit
c8b97271
authored
Sep 23, 2013
by
Alexander Smorkalov
Committed by
OpenCV Buildbot
Sep 23, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1430 from nzjrs:add-brisk-to-demos
parents
b5f3709a
4b19fda1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
asift.py
samples/python2/asift.py
+3
-3
find_obj.py
samples/python2/find_obj.py
+6
-3
No files found.
samples/python2/asift.py
View file @
c8b97271
...
...
@@ -11,10 +11,10 @@ is used to reject outliers. Threading is used for faster affine sampling.
[1] http://www.ipol.im/pub/algo/my_affine_sift/
USAGE
asift.py [--feature=<sift|surf|orb>[-flann]] [ <image1> <image2> ]
asift.py [--feature=<sift|surf|orb
|brisk
>[-flann]] [ <image1> <image2> ]
--feature - Feature to use. Can be sift, surf
of orb. Append '-flann' to feature name
to use Flann-based matcher instead bruteforce.
--feature - Feature to use. Can be sift, surf
, orb or brisk. Append '-flann'
to feature name
to use Flann-based matcher instead bruteforce.
Press left mouse button on a feature point to see its mathcing point.
'''
...
...
samples/python2/find_obj.py
View file @
c8b97271
...
...
@@ -4,10 +4,10 @@
Feature-based image matching sample.
USAGE
find_obj.py [--feature=<sift|surf|orb>[-flann]] [ <image1> <image2> ]
find_obj.py [--feature=<sift|surf|orb
|brisk
>[-flann]] [ <image1> <image2> ]
--feature - Feature to use. Can be sift, surf
of orb. Append '-flann' to feature name
to use Flann-based matcher instead bruteforce.
--feature - Feature to use. Can be sift, surf
, orb or brisk. Append '-flann'
to feature name
to use Flann-based matcher instead bruteforce.
Press left mouse button on a feature point to see its matching point.
'''
...
...
@@ -31,6 +31,9 @@ def init_feature(name):
elif
chunks
[
0
]
==
'orb'
:
detector
=
cv2
.
ORB
(
400
)
norm
=
cv2
.
NORM_HAMMING
elif
chunks
[
0
]
==
'brisk'
:
detector
=
cv2
.
BRISK
()
norm
=
cv2
.
NORM_HAMMING
else
:
return
None
,
None
if
'flann'
in
chunks
:
...
...
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