eos
0.7.1
|
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 |
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?
|
inlinestatic |
Helper method to load contour landmarks from a text file with landmark mappings, like ibug2did.txt.
[in] | filename | Filename to a landmark-mapping file. |
std::runtime_error | When the file given in filename fails to be opened (most likely because the file doesn't exist). |