eos  0.7.1
Classes | Typedefs | Functions
eos::core Namespace Reference

Essential functions and classes to work with 3D face models and landmarks. More...

Classes

struct  Landmark
 Representation of a landmark, consisting of a landmark name and coordinates of the given type. Usually, the type would be cv::Vec2f. More...
 
class  LandmarkMapper
 Represents a mapping from one kind of landmarks to a different format (e.g. model vertices). More...
 

Typedefs

template<class LandmarkType >
using LandmarkCollection = std::vector< Landmark< LandmarkType >>
 A trivial collection of landmarks that belong together.
 

Functions

template<class T >
LandmarkCollection< T > filter (const LandmarkCollection< T > &landmarks, const std::vector< std::string > &filter)
 Filters the given LandmarkCollection and returns a new LandmarkCollection containing all landmarks whose name matches the one given by filter. More...
 

Detailed Description

Essential functions and classes to work with 3D face models and landmarks.

Function Documentation

template<class T >
LandmarkCollection<T> eos::core::filter ( const LandmarkCollection< T > &  landmarks,
const std::vector< std::string > &  filter 
)

Filters the given LandmarkCollection and returns a new LandmarkCollection containing all landmarks whose name matches the one given by filter.

Parameters
[in]landmarksThe input LandmarkCollection to be filtered.
[in]filterA landmark name (identifier) by which the given LandmarkCollection is filtered.
Returns
A new, filtered LandmarkCollection.