Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
c4ee36ca
Commit
c4ee36ca
authored
8 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Improve test ROI ORB
parent
132a20a3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/examples/Test_ORB.png
+0
-0
0 additions, 0 deletions
src/examples/Test_ORB.png
src/test/gtest_roi_ORB.cpp
+24
-16
24 additions, 16 deletions
src/test/gtest_roi_ORB.cpp
with
24 additions
and
16 deletions
src/examples/Test_ORB.png
+
0
−
0
View replaced file @
132a20a3
View file @
c4ee36ca
10.7 KiB
|
W:
|
H:
10.7 KiB
|
W:
|
H:
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
src/test/gtest_roi_ORB.cpp
+
24
−
16
View file @
c4ee36ca
...
@@ -36,20 +36,20 @@ TEST(RoiORB, LoadImageFromFile)
...
@@ -36,20 +36,20 @@ TEST(RoiORB, LoadImageFromFile)
}
}
// Test_ORB.png image file has the following interest points that should be detected:
// Test_ORB.png image file has the following interest points that should be detected:
// [ 65.6 , 100.6 ]
//
0
[ 65.6 , 100.6 ]
// [ 164 , 100.6 ]
//
1
[ 164 , 100.6 ]
// [ 266 , 100.6 ]
//
2
[ 266 , 100.6 ]
// [ 365.2 , 100.6 ]
//
3
[ 365.2 , 100.6 ]
// [ 467.04 , 101.32 ]
//
4
[ 467.04 , 101.32 ]
// [ 565.6 , 100.6 ]
//
5
[ 565.6 , 100.6 ]
// [ 71.6 , 237.8 ]
//
6
[ 71.6 , 237.8 ]
// [ 164.8 , 237.8 ]
//
7
[ 164.8 , 237.8 ]
// [ 251.36 , 239.24 ]
//
8
[ 251.36 , 239.24 ]
// [ 330.2 , 237.8 ]
//
9
[ 330.2 , 237.8 ]
// [ 349 , 270 ]
//
10
[ 349 , 270 ]
// [ 584 , 237.8 ]
//
11
[ 584 , 237.8 ]
// [ 467.2 , 455.4 ]
//
12
[ 467.2 , 455.4 ]
// [ 566 , 455.4 ]
//
13
[ 566 , 455.4 ]
std
::
vector
<
cv
::
Point2f
>
points_to_check
({
std
::
vector
<
cv
::
Point2f
>
points_to_check
({
cv
::
Point2f
(
65.6
,
100.6
),
cv
::
Point2f
(
65.6
,
100.6
),
cv
::
Point2f
(
164
,
100.6
),
cv
::
Point2f
(
164
,
100.6
),
...
@@ -227,8 +227,16 @@ TEST(RoiORB, RoiBounds)
...
@@ -227,8 +227,16 @@ TEST(RoiORB, RoiBounds)
if
(
debug
)
for
(
auto
p_pair
:
points_found
)
if
(
debug
)
for
(
auto
p_pair
:
points_found
)
WOLF_DEBUG
(
"kp "
,
p_pair
.
first
,
" at ("
,
p_pair
.
second
.
x
,
" , "
,
p_pair
.
second
.
y
,
" )"
);
WOLF_DEBUG
(
"kp "
,
p_pair
.
first
,
" at ("
,
p_pair
.
second
.
x
,
" , "
,
p_pair
.
second
.
y
,
" )"
);
// check that at least all keypoints in the list have been detected
// check that at least all keypoints in the list except #10 have been detected
ASSERT_GE
(
points_found
.
size
()
,
points_to_check
.
size
()
);
// (note: #10 is out of the ROI)
std
::
vector
<
int
>
v
({
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
11
,
12
,
13
});
for
(
int
n
:
v
)
{
WOLF_DEBUG
(
"Checking if we found point "
,
n
,
" ... "
,
(
points_found
.
count
(
n
)
?
"YES"
:
"NO"
));
ASSERT_TRUE
(
points_found
.
count
(
n
));
}
WOLF_DEBUG
(
"Checking if we found point "
,
10
,
" ... "
,
(
points_found
.
count
(
10
)
?
"YES"
:
"NO"
));
ASSERT_FALSE
(
points_found
.
count
(
10
));
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment