Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
0cfef582
Commit
0cfef582
authored
Jan 19, 2018
by
Davis King
Browse files
Fixed the code ignoring the angle scan, oops.
parent
4d6bfc85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tools/imglab/src/flip_dataset.cpp
tools/imglab/src/flip_dataset.cpp
+4
-3
No files found.
tools/imglab/src/flip_dataset.cpp
View file @
0cfef582
...
...
@@ -19,8 +19,8 @@ std::vector<long> align_points(
const
std
::
vector
<
dpoint
>&
from
,
const
std
::
vector
<
dpoint
>&
to
,
double
min_angle
=
-
90
*
pi
/
180.0
,
double
max_angle
=
-
90
*
pi
/
180.0
,
long
num_angles
=
18
0
double
max_angle
=
90
*
pi
/
180.0
,
long
num_angles
=
18
1
)
/*!
ensures
...
...
@@ -43,11 +43,12 @@ std::vector<long> align_points(
for
(
auto
angle
:
linspace
(
min_angle
,
max_angle
,
num_angles
))
{
auto
rot
=
rotation_matrix
(
angle
);
for
(
long
r
=
0
;
r
<
dists
.
nr
();
++
r
)
{
for
(
long
c
=
0
;
c
<
dists
.
nc
();
++
c
)
{
dists
(
r
,
c
)
=
length_squared
(
from
[
r
]
-
to
[
c
]);
dists
(
r
,
c
)
=
length_squared
(
rot
*
from
[
r
]
-
to
[
c
]);
}
}
...
...
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