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
cf7d0e24
Commit
cf7d0e24
authored
Mar 12, 2017
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unnecessary temporary variable
parent
99948f89
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
include/eos/fitting/linear_shape_fitting.hpp
include/eos/fitting/linear_shape_fitting.hpp
+3
-4
No files found.
include/eos/fitting/linear_shape_fitting.hpp
View file @
cf7d0e24
...
@@ -108,10 +108,9 @@ inline std::vector<float> fit_shape_to_landmarks_linear(const morphablemodel::Mo
...
@@ -108,10 +108,9 @@ inline std::vector<float> fit_shape_to_landmarks_linear(const morphablemodel::Mo
// The mean, with an added homogeneous coordinate (x_1, y_1, z_1, 1, x_2, ...)^t
// The mean, with an added homogeneous coordinate (x_1, y_1, z_1, 1, x_2, ...)^t
VectorXf
v_bar
=
VectorXf
::
Ones
(
4
*
num_landmarks
);
VectorXf
v_bar
=
VectorXf
::
Ones
(
4
*
num_landmarks
);
for
(
int
i
=
0
;
i
<
num_landmarks
;
++
i
)
{
for
(
int
i
=
0
;
i
<
num_landmarks
;
++
i
)
{
const
cv
::
Vec4f
model_mean
(
base_face
(
vertex_ids
[
i
]
*
3
),
base_face
(
vertex_ids
[
i
]
*
3
+
1
),
base_face
(
vertex_ids
[
i
]
*
3
+
2
),
1.0
f
);
v_bar
(
4
*
i
)
=
base_face
(
vertex_ids
[
i
]
*
3
);
v_bar
(
4
*
i
)
=
model_mean
[
0
];
v_bar
((
4
*
i
)
+
1
)
=
base_face
(
vertex_ids
[
i
]
*
3
+
1
);
v_bar
((
4
*
i
)
+
1
)
=
model_mean
[
1
];
v_bar
((
4
*
i
)
+
2
)
=
base_face
(
vertex_ids
[
i
]
*
3
+
2
);
v_bar
((
4
*
i
)
+
2
)
=
model_mean
[
2
];
//v_bar((4 * i) + 3) = 1; // already 1, stays (homogeneous coordinate)
//v_bar((4 * i) + 3) = 1; // already 1, stays (homogeneous coordinate)
}
}
...
...
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