eos 1.4.0
|
Definition of the vertex indices that define the right and left model contour. More...
#include <contour_correspondence.hpp>
Public Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive) |
Static Public Member Functions | |
static ModelContour | load (std::string filename) |
Public Attributes | |
std::vector< int > | right_contour |
std::vector< int > | left_contour |
Friends | |
class | cereal::access |
Definition of the vertex indices that define the right and left model contour.
This class holds definitions for the contour (outline) on the right and left side of the reference 3D face model. These can be found in the file share/model_contours.json. The Surrey model's boundaries are conveniently approximately located near the actual 2D image contour, for the front-facing contour.
Note: We should extend that to the 1724 model to get a few more points, this should improve the contour fitting.
|
inlinestatic |
Helper method to load a ModelContour from a json file from the hard drive.
Note: Eventually, it might be included in the MorphableModel class. Also, for consistency, we should probably switch to toml for this file.
[in] | filename | Filename to a model. |
std::runtime_error | When the file given in filename fails to be opened (most likely because the file doesn't exist). |
|
inline |
Serialises this class using cereal.
[in] | archive | The archive to serialise to (or to serialise from). |