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
53780749
Commit
53780749
authored
Dec 02, 2016
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fiddled with a few namespace qualifiers
parent
dc84b9ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/eos/fitting/fitting.hpp
include/eos/fitting/fitting.hpp
+3
-3
No files found.
include/eos/fitting/fitting.hpp
View file @
53780749
...
...
@@ -294,7 +294,7 @@ inline std::pair<render::Mesh, fitting::RenderingParameters> fit_shape_and_pose(
fitting
::
RenderingParameters
rendering_params
(
current_pose
,
image_width
,
image_height
);
Mat
affine_from_ortho
=
fitting
::
get_3x4_affine_camera_matrix
(
rendering_params
,
image_width
,
image_height
);
blendshape_coefficients
=
eos
::
fitting
::
fit_blendshapes_to_landmarks_nnls
(
blendshapes
,
current_pca_shape
,
affine_from_ortho
,
image_points
,
vertex_indices
);
blendshape_coefficients
=
fitting
::
fit_blendshapes_to_landmarks_nnls
(
blendshapes
,
current_pca_shape
,
affine_from_ortho
,
image_points
,
vertex_indices
);
// Mesh with same PCA coeffs as before, but new expression fit (this is relevant if no initial blendshape coeffs have been given):
current_combined_shape
=
current_pca_shape
+
morphablemodel
::
to_matrix
(
blendshapes
)
*
Mat
(
blendshape_coefficients
);
...
...
@@ -316,8 +316,8 @@ inline std::pair<render::Mesh, fitting::RenderingParameters> fit_shape_and_pose(
// For each 2D contour landmark, get the corresponding 3D vertex point and vertex id:
std
::
tie
(
image_points_contour
,
std
::
ignore
,
vertex_indices_contour
)
=
fitting
::
get_contour_correspondences
(
landmarks
,
contour_landmarks
,
model_contour
,
yaw_angle
,
current_mesh
,
rendering_params
.
get_modelview
(),
rendering_params
.
get_projection
(),
fitting
::
get_opencv_viewport
(
image_width
,
image_height
));
// Add the contour correspondences to the set of landmarks that we use for the fitting:
vertex_indices
=
concat
(
vertex_indices
,
vertex_indices_contour
);
image_points
=
concat
(
image_points
,
image_points_contour
);
vertex_indices
=
fitting
::
concat
(
vertex_indices
,
vertex_indices_contour
);
image_points
=
fitting
::
concat
(
image_points
,
image_points_contour
);
// Fit the occluding (away-facing) contour using the detected contour LMs:
vector
<
Eigen
::
Vector2f
>
occluding_contour_landmarks
;
...
...
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