eos 1.4.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
eos::fitting::ModelContour Struct Reference

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
 

Detailed Description

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.

Member Function Documentation

◆ load()

static ModelContour eos::fitting::ModelContour::load ( std::string  filename)
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.

Parameters
[in]filenameFilename to a model.
Returns
The loaded ModelContour.
Exceptions
std::runtime_errorWhen the file given in filename fails to be opened (most likely because the file doesn't exist).

◆ serialize()

template<class Archive >
void eos::fitting::ModelContour::serialize ( Archive &  archive)
inline

Serialises this class using cereal.

Parameters
[in]archiveThe archive to serialise to (or to serialise from).

The documentation for this struct was generated from the following file: