visageSDK
FaceModelNoVel.h
1 //
3 // (c) Visage Technologies AB 2002 - 2023 All rights reserved.
4 //
5 // This file is part of visage|SDK(tm).
6 // Unauthorized copying of this file, via any medium is strictly prohibited.
7 //
8 // No warranty, explicit or implicit, provided.
9 //
10 // This is proprietary software. No part of this software may be used or
11 // reproduced in any form or by any means otherwise than in accordance with
12 // any written license granted by Visage Technologies AB.
13 //
15 
16 #pragma once
17 
18 #include "FaceModel.h"
19 
20 namespace VisageSDK
21 {
22 
23 class FaceModelNoVel: public FaceModel
24 {
25 public:
26 
27  bool Create(unsigned int nAUs, unsigned int nSUs, unsigned int nVerts, unsigned int nFPs, float focal_len, float _scale, float *_au_limits, int _fitting_flags);
28 
29  void SetInitialState(float* r, float* t, VsMat* s, VsMat* a, VsMat* x);
30  void SetNoiseCovariance(VsMat* pose_sensitivity, VsMat* su_sensitivity, VsMat* au_sensitivity);
31  void ExtractData(float* r, float* t, VsMat* s, VsMat* a, VsMat* x);
32 
33  // process
34  bool PredictState(VsMat* x_pred, VsMat* x);
35  bool ProcessJacobian(VsMat* F);
36  bool ProcessNoise(VsMat* Q);
37  bool ProcessNoiseInv(VsMat* Qinv);
38 
39  // observation
40  bool Observe(VsMat* y, VsMat* x);
41  bool ObservationJacobianAndObserve(VsMat* H, VsMat* y, VsMat* x);
42  bool ObservationNoise(VsMat* R);
43  bool ObservationNoiseInv(VsMat* Rinv);
44 
45  //
46  void Destroy();
47 
48  ~FaceModelNoVel()
49  {
50  destroyInternal();
51  }
52 
53 private:
54 
55  void destroyInternal();
56 };
57 
58 }
Namespace.
Definition: win_header.h:1