FaceGen 3 SDKs Reference
Loading...
Searching...
No Matches
Fg3PhotofitUtil.hpp
1//
2// Copyright (c) Singular Inversions Inc. 2019
3//
4// Authors: Andrew Beatty
5// Created: 19.12.21
6//
7
8#ifndef FG3PHOTOFITUTIL_HPP
9#define FG3PHOTOFITUTIL_HPP
10
11#include "FgAnthropometry.hpp"
12#include "FgPhotoFit.h"
13#include "FgSerial.hpp"
14#include "FgImage.hpp"
15#include "bootPoints.hpp"
16
17namespace Fg {
18
19Fg3InitPoints getSetLandmarks(String8 const & photoFile,ImgRgba8 const & photo);
20void copyPoints(const Fg3InitPoints & src,FgppUserDataS & dst);
21// Sets user data EXCEPT if image data pointer changes, client must update:
22FgppUserDataS cFgppUserData(ImgRgba8 const & photo,Fg3InitPoints const & landmarks);
23// the expected image landmarks for each view along with the associated PF3 fit mesh surface point label,
24// which can correspond to multiple points defining a piece-wise linear matching curve.
25FaceLmAtts const & getV3LmAtts(FaceView view);
26ViewLmPoss parseLmsV3(Vec2Fs const & pacs); // IRCS also works
27inline FaceLms getV3Lms(FaceView view) {return mapMember(getV3LmAtts(view),&FaceLmAtt::type); }
28
29}
30
31#endif
Arguments for the Photofit.
Definition FgPhotoFit.h:56