5#include <fsdk/Types/Vector2.h>
22 template <
size_t numOfLandmarks>
26 static constexpr uint64_t landmarkCount = numOfLandmarks;
39 *
this = std::move(mv);
42 Landmarks& operator=(
const Landmarks& cp) {
43 std::copy(std::begin(cp.landmarks), std::end(cp.landmarks), std::begin(
landmarks));
48 Landmarks& operator=(Landmarks&& mv) {
49 std::move(std::begin(mv.landmarks), std::end(mv.landmarks), std::begin(
landmarks));
54 constexpr size_t size() const noexcept {
55 return numOfLandmarks;
58 bool isValid() const noexcept {
60 return l.x == 0.f && l.y == 0.f;
#define FSDK_API
Dummy.
Definition Def.h:27
SDK namespace.
Definition IAGSEstimator.h:8
Landmarks5 FSDK_API convert(const Landmarks68 &landmarks)
convert landmarks68 into landmarks5
Vector2< float > Landmark
Landmark floating point coordinates type.
Definition Landmarks.h:13
Enumerates detected landmarks. Only valid for template with 5 landmarks.
Definition Landmarks.h:74
@ LandmarkNose
Nose tip. Same as FL_NOSE_TIP.
Definition Landmarks.h:78
@ LandmarkMouthRightCorner
Mouth right corner. Same as FL_MOUTH_RIGHT_CORENR.
Definition Landmarks.h:80
@ LandmarkMouthLeftCorner
Mouth left corner. Same as FL_MOUTH_LEFT_CORNER.
Definition Landmarks.h:79
@ LandmarkRightEye
Right eye center.
Definition Landmarks.h:77
@ LandmarkLeftEye
Left eye center.
Definition Landmarks.h:76
@ LandmarkCount
Not a landmark; counts number of detected landmarks.
Definition Landmarks.h:81
Face landmarks template structure.
Definition Landmarks.h:23
Landmark landmarks[numOfLandmarks]
Detected landmarks.
Definition Landmarks.h:29
Generic 2D vector.
Definition Vector2.h:10