1 #ifndef FACE_SWAP_BASEL_3DMM_H 2 #define FACE_SWAP_BASEL_3DMM_H 5 #include <opencv2/core.hpp> 19 static void save_ply(
const Mesh& mesh,
const std::string& ply_file);
41 Mesh sample(
const cv::Mat& shape_coefficients,
42 const cv::Mat& tex_coefficients);
49 Mesh sample(
const cv::Mat& shape_coefficients,
50 const cv::Mat& tex_coefficients,
const cv::Mat& expr_coefficients);
55 static Basel3DMM load(
const std::string& model_file);
58 cv::Mat shapeMU, shapePC, shapeEV;
59 cv::Mat texMU, texPC, texEV;
60 cv::Mat exprMU, exprPC, exprEV;
65 #endif // FACE_SWAP_BASEL_3DMM_H Represents a 3D renderable shape.
Definition: basel_3dmm.h:13
Definition: basel_3dmm.h:9
Represents Basel's 3D Morphable Model.
Definition: basel_3dmm.h:35
static void save_ply(const Mesh &mesh, const std::string &ply_file)
Save mesh to a ply file.