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
3c7a99e6
Commit
3c7a99e6
authored
Jul 21, 2015
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes to apps, not worth mentioning
parent
d9c68cbb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
examples/fit-model.cpp
examples/fit-model.cpp
+1
-2
examples/scm-to-cereal.cpp
examples/scm-to-cereal.cpp
+3
-1
No files found.
examples/fit-model.cpp
View file @
3c7a99e6
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
#include "eos/core/LandmarkMapper.hpp"
#include "eos/core/LandmarkMapper.hpp"
#include "eos/fitting/affine_camera_estimation.hpp"
#include "eos/fitting/affine_camera_estimation.hpp"
#include "eos/fitting/linear_shape_fitting.hpp"
#include "eos/fitting/linear_shape_fitting.hpp"
#include "eos/morphablemodel/io/cvssp.hpp"
#include "eos/render/utils.hpp"
#include "eos/render/utils.hpp"
#include "eos/core/Landmark.hpp"
#include "eos/core/Landmark.hpp"
...
@@ -190,7 +189,7 @@ int main(int argc, char *argv[])
...
@@ -190,7 +189,7 @@ int main(int argc, char *argv[])
}
}
// Estimate the shape coefficients by fitting the shape to the landmarks:
// Estimate the shape coefficients by fitting the shape to the landmarks:
float
lambda
=
5.0
f
;
//
/<
the regularisation parameter
float
lambda
=
5.0
f
;
// the regularisation parameter
vector
<
float
>
fitted_coeffs
=
fitting
::
fit_shape_to_landmarks_linear
(
morphable_model
,
affine_cam
,
image_points
,
vertex_indices
,
lambda
);
vector
<
float
>
fitted_coeffs
=
fitting
::
fit_shape_to_landmarks_linear
(
morphable_model
,
affine_cam
,
image_points
,
vertex_indices
,
lambda
);
// Obtain the full mesh and draw it using the estimated camera:
// Obtain the full mesh and draw it using the estimated camera:
...
...
examples/scm-to-cereal.cpp
View file @
3c7a99e6
...
@@ -74,12 +74,14 @@ int main(int argc, char *argv[])
...
@@ -74,12 +74,14 @@ int main(int argc, char *argv[])
}
}
// Load the .scm Morphable Model and save it as cereal model:
// Load the .scm Morphable Model and save it as cereal model:
morphablemodel
::
MorphableModel
morphable_model
=
morphablemodel
::
load
ScmM
odel
(
scmmodelfile
,
isomapfile
);
morphablemodel
::
MorphableModel
morphable_model
=
morphablemodel
::
load
_scm_m
odel
(
scmmodelfile
,
isomapfile
);
morphablemodel
::
save_model
(
morphable_model
,
outputfile
.
string
());
morphablemodel
::
save_model
(
morphable_model
,
outputfile
.
string
());
// Save only the shape model - to generate the public sfm_shape_3448.bin
// Save only the shape model - to generate the public sfm_shape_3448.bin
//morphablemodel::MorphableModel shape_only_model(morphable_model.get_shape_model(), morphablemodel::PcaModel(), morphable_model.gtc());
//morphablemodel::MorphableModel shape_only_model(morphable_model.get_shape_model(), morphablemodel::PcaModel(), morphable_model.gtc());
//morphablemodel::save_model(shape_only_model, outputfile.string());
//morphablemodel::save_model(shape_only_model, outputfile.string());
cout
<<
"Saved converted model as "
<<
outputfile
.
string
()
<<
"."
<<
endl
;
return
EXIT_SUCCESS
;
return
EXIT_SUCCESS
;
}
}
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