22 #ifndef BLENDSHAPE_HPP_ 23 #define BLENDSHAPE_HPP_ 25 #include "eos/morphablemodel/io/mat_cerealisation.hpp" 26 #include "cereal/types/string.hpp" 27 #include "cereal/archives/binary.hpp" 29 #include "opencv2/core/core.hpp" 35 namespace morphablemodel {
49 friend class cereal::access;
55 template<
class Archive>
58 archive(name, deformation);
72 std::vector<Blendshape> blendshapes;
74 std::ifstream file(filename, std::ios::binary);
76 throw std::runtime_error(
"Error opening given file: " + filename);
78 cereal::BinaryInputArchive input_archive(file);
79 input_archive(blendshapes);
std::vector< Blendshape > load_blendshapes(std::string filename)
Definition: Blendshape.hpp:70
cv::Mat deformation
A 3m x 1 col-vector (xyzxyz...)', where m is the number of model-vertices. Has the same format as Pca...
Definition: Blendshape.hpp:47
void serialize(Archive &archive)
Definition: Blendshape.hpp:56
Namespace containing all of eos's 3D model fitting functionality.
A class representing a 3D blendshape.
Definition: Blendshape.hpp:44
std::string name
Name of the blendshape.
Definition: Blendshape.hpp:46