.def("get_triangle_list",&morphablemodel::PcaModel::get_triangle_list,"Returns a list of triangles on how to assemble the vertices into a mesh.")
.def("get_mean",&morphablemodel::PcaModel::get_mean,"Returns the mean of the model.")
.def("get_mean_at_point",&morphablemodel::PcaModel::get_mean_at_point,"Return the value of the mean at a given vertex index.",py::arg("vertex_index"))
.def("draw_sample",(cv::Mat(morphablemodel::PcaModel::*)(std::vector<float>)const)&morphablemodel::PcaModel::draw_sample,"Returns a sample from the model with the given PCA coefficients. The given coefficients should follow a standard normal distribution, i.e. not be scaled with their eigenvalues/variances.",py::arg("coefficients"))
.def("draw_sample",(Eigen::VectorXf(morphablemodel::PcaModel::*)(std::vector<float>)const)&morphablemodel::PcaModel::draw_sample,"Returns a sample from the model with the given PCA coefficients. The given coefficients should follow a standard normal distribution, i.e. not be scaled with their eigenvalues/variances.",py::arg("coefficients"))
;
py::class_<morphablemodel::MorphableModel>(morphablemodel_module,"MorphableModel","A class representing a 3D Morphable Model, consisting of a shape- and colour (albedo) PCA model, as well as texture (uv) coordinates.")
...
...
@@ -111,21 +111,20 @@ PYBIND11_PLUGIN(eos) {
morphablemodel_module.def("load_blendshapes",&morphablemodel::load_blendshapes,"Load a file with blendshapes from a cereal::BinaryInputArchive (.bin) from the harddisk.",py::arg("filename"));
},"Draws a sample with given shape, blendshape and colour coeffs, and returns a mesh.",py::arg("morphable_model"),py::arg("blendshapes"),py::arg("shape_coefficients"),py::arg("blendshape_coefficients"),py::arg("color_coefficients"));