Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
eos
Commits
5bacf5c2
Commit
5bacf5c2
authored
Apr 10, 2017
by
Richard Torenvliet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused / duplicate declaration
parent
735a5a32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
utils/accuracy-evaluation.cpp
utils/accuracy-evaluation.cpp
+8
-9
No files found.
utils/accuracy-evaluation.cpp
View file @
5bacf5c2
...
...
@@ -128,13 +128,13 @@ void evaluate_accuracy(
// The vertex_idx should be around the value of the original coordinates after we have
// projected it with the affine_from_ortho that is obtained earlier.
Mat
vertex_screen_coords
=
affine_from_ortho
*
Mat
(
cv
::
Vec4f
(
mesh
.
vertices
[
vertex_idx
].
x
,
mesh
.
vertices
[
vertex_idx
].
y
,
mesh
.
vertices
[
vertex_idx
].
z
,
mesh
.
vertices
[
vertex_idx
].
w
)
);
Mat
(
cv
::
Vec4f
(
mesh
.
vertices
[
vertex_idx
].
x
,
mesh
.
vertices
[
vertex_idx
].
y
,
mesh
.
vertices
[
vertex_idx
].
z
,
mesh
.
vertices
[
vertex_idx
].
w
)
);
// using euclidean distance here, but should look at other ways too.
float
dist
=
euclidean_distance
(
landmarks
[
i
].
coordinates
,
vertex_screen_coords
);
...
...
@@ -381,14 +381,13 @@ int main(int argc, char *argv[]) {
int
n_iter
=
0
;
// load all annotation files into lists of landmarks
vector
<
core
::
LandmarkCollection
<
cv
::
Vec2f
>>
landmark_sublist
;
while
(
!
(
key_frames
.
empty
()))
{
if
(
n_iter
==
10
)
{
break
;
}
// load all annotation files into lists of landmarks
vector
<
core
::
LandmarkCollection
<
cv
::
Vec2f
>>
landmark_sublist
(
landmark_list
.
begin
()
+
n_iter
,
landmark_list
.
end
());
std
::
tie
(
meshs
,
rendering_paramss
)
=
fitting
::
fit_shape_and_pose_multi
(
...
...
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