Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
XRD
darfix
Commits
6734a2bf
Commit
6734a2bf
authored
Mar 02, 2020
by
Julia Garriga Ferrer
Browse files
[core][tests] Adds test for sift in components matching
parent
24faf95d
Pipeline
#22236
failed with stage
in 2 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
darfix/core/test/test_components_matching.py
View file @
6734a2bf
...
...
@@ -63,8 +63,11 @@ class TestComponentsMatching(unittest.TestCase):
self
.
assertNotEqual
(
ed
,
0
)
def
test_match_components
(
self
):
def
test_sift_match
(
self
):
final_matches
,
matches
=
self
.
componentsMatching
.
match_components
(
method
=
Method
.
sift_feature_matching
)
self
.
assertEqual
(
final_matches
[
0
],
1
)
def
test_orb_match
(
self
):
final_matches
,
matches
=
self
.
componentsMatching
.
match_components
(
method
=
Method
.
orb_feature_matching
)
self
.
assertEqual
(
final_matches
[
0
],
1
)
...
...
@@ -79,3 +82,8 @@ class TestComponentsMatching(unittest.TestCase):
final_matches
,
matches
=
self
.
componentsMatching
.
match_components
(
method
=
Method
.
euclidean_distance
)
stack
=
self
.
componentsMatching
.
draw_matches
(
final_matches
,
matches
)
self
.
assertEqual
(
stack
[
2
].
shape
,
(
512
,
1024
))
def
test_draw_matches2
(
self
):
final_matches
,
matches
=
self
.
componentsMatching
.
match_components
(
method
=
Method
.
sift_feature_matching
)
stack
=
self
.
componentsMatching
.
draw_matches
(
final_matches
,
matches
)
self
.
assertEqual
(
stack
[
2
].
shape
,
(
512
,
1024
))
Write
Preview
Supports
Markdown
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