22 #ifndef EOS_LANDMARK_HPP_ 23 #define EOS_LANDMARK_HPP_ 36 template<
class LandmarkType>
62 std::copy_if(begin(landmarks), end(landmarks), std::back_inserter(filtered_landmarks),
63 [&](
const Landmark<T>& lm) {
return std::find(begin(filter), end(filter), lm.
name) != end(filter); }
65 return filtered_landmarks;
std::string name
Name of the landmark, often used as identifier.
Definition: Landmark.hpp:39
std::vector< Landmark< LandmarkType >> LandmarkCollection
A trivial collection of landmarks that belong together.
Definition: Landmark.hpp:46
LandmarkType coordinates
The position or coordinates of the landmark.
Definition: Landmark.hpp:40
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 wh...
Definition: Landmark.hpp:57
Representation of a landmark, consisting of a landmark name and coordinates of the given type...
Definition: Landmark.hpp:37
Namespace containing all of eos's 3D model fitting functionality.