Commit 3c7a99e6 authored by Patrik Huber's avatar Patrik Huber

Minor fixes to apps, not worth mentioning

parent d9c68cbb
......@@ -20,7 +20,6 @@
#include "eos/core/LandmarkMapper.hpp"
#include "eos/fitting/affine_camera_estimation.hpp"
#include "eos/fitting/linear_shape_fitting.hpp"
#include "eos/morphablemodel/io/cvssp.hpp"
#include "eos/render/utils.hpp"
#include "eos/core/Landmark.hpp"
......@@ -190,7 +189,7 @@ int main(int argc, char *argv[])
}
// Estimate the shape coefficients by fitting the shape to the landmarks:
float lambda = 5.0f; ///< the regularisation parameter
float lambda = 5.0f; // the regularisation parameter
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:
......
......@@ -74,12 +74,14 @@ int main(int argc, char *argv[])
}
// Load the .scm Morphable Model and save it as cereal model:
morphablemodel::MorphableModel morphable_model = morphablemodel::loadScmModel(scmmodelfile, isomapfile);
morphablemodel::MorphableModel morphable_model = morphablemodel::load_scm_model(scmmodelfile, isomapfile);
morphablemodel::save_model(morphable_model, outputfile.string());
// 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::save_model(shape_only_model, outputfile.string());
cout << "Saved converted model as " << outputfile.string() << "." << endl;
return EXIT_SUCCESS;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment