eos  0.7.1
Static Public Member Functions | Public Attributes | List of all members
eos::fitting::ContourLandmarks Struct Reference

Defines which 2D landmarks comprise the right and left face contour. More...

#include <contour_correspondence.hpp>

Static Public Member Functions

static ContourLandmarks load (std::string filename)
 

Public Attributes

std::vector< std::string > right_contour
 
std::vector< std::string > left_contour
 

Detailed Description

Defines which 2D landmarks comprise the right and left face contour.

This class holds 2D image contour landmark information. More specifically, it defines which 2D landmark IDs correspond to the right contour and which to the left. These definitions are loaded from a file, for example from the "contour_landmarks" part of share/ibug2did.txt.

Note: Better names could be ContourDefinition or ImageContourLandmarks, to disambiguate 3D and 2D landmarks?

Member Function Documentation

static ContourLandmarks eos::fitting::ContourLandmarks::load ( std::string  filename)
inlinestatic

Helper method to load contour landmarks from a text file with landmark mappings, like ibug2did.txt.

Parameters
[in]filenameFilename to a landmark-mapping file.
Returns
A ContourLandmarks instance with loaded 2D contour landmarks.
Exceptions
std::runtime_errorWhen the file given in filename fails to be opened (most likely because the file doesn't exist).

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