22 #ifndef COEFFICIENTS_HPP_ 23 #define COEFFICIENTS_HPP_ 25 #include "cereal/cereal.hpp" 26 #include "cereal/archives/json.hpp" 32 namespace morphablemodel {
43 std::ofstream file(filename);
45 throw std::runtime_error(
"Error opening file for writing: " + filename);
47 cereal::JSONOutputArchive output_archive(file);
48 output_archive(cereal::make_nvp(
"shape_coefficients", coefficients));
Namespace containing all of eos's 3D model fitting functionality.
void save_coefficients(std::vector< float > coefficients, std::string filename)
Definition: coefficients.hpp:41