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
0f9bbf85
Commit
0f9bbf85
authored
Jul 29, 2012
by
Alexander Mordvintesv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spelling corrections, added aero images as a more impressive example for
ASIFT
parent
88a9f8f9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
asift.py
samples/python2/asift.py
+5
-5
t4_0deg.png
samples/python2/data/t4_0deg.png
+0
-0
t4_60deg.png
samples/python2/data/t4_60deg.png
+0
-0
find_obj.py
samples/python2/find_obj.py
+1
-0
No files found.
samples/python2/asift.py
View file @
0f9bbf85
...
...
@@ -3,8 +3,8 @@ Affine invariant feature-based image matching sample.
This sample is similar to find_obj.py, but uses the affine transformation
space sampling technique, called ASIFT [1]. While the original implementation
is based on SIFT, can try to use SURF or ORB detectors instead. Homography RANSAC
is used to reject outliers. Threaing is used for faster affine sampling.
is based on SIFT,
you
can try to use SURF or ORB detectors instead. Homography RANSAC
is used to reject outliers. Threa
d
ing is used for faster affine sampling.
[1] http://www.ipol.im/pub/algo/my_affine_sift/
...
...
@@ -101,11 +101,11 @@ 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'
,
'sift
-flann
'
)
try
:
fn1
,
fn2
=
args
except
:
fn1
=
'data/
t4_0deg.pn
g'
fn2
=
'data/
t4_60deg.pn
g'
fn1
=
'data/
aero1.jp
g'
fn2
=
'data/
aero3.jp
g'
img1
=
cv2
.
imread
(
fn1
,
0
)
img2
=
cv2
.
imread
(
fn2
,
0
)
...
...
samples/python2/data/t4_0deg.png
deleted
100644 → 0
View file @
88a9f8f9
125 KB
samples/python2/data/t4_60deg.png
deleted
100644 → 0
View file @
88a9f8f9
129 KB
samples/python2/find_obj.py
View file @
0f9bbf85
...
...
@@ -118,6 +118,7 @@ def explore_match(win, img1, img2, kp_pairs, status = None, H = None):
cv2
.
imshow
(
win
,
cur_vis
)
cv2
.
setMouseCallback
(
win
,
onmouse
)
return
vis
if
__name__
==
'__main__'
:
...
...
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