MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / InitMods

Function InitMods

jni/stasm/MOD_1/initasm.cpp:10–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace stasm
9{
10void InitMods( // initialize ASM model
11 vec_Mod& mods, // out: ASM model (only one model in this version of Stasm)
12 const char* datadir) // in: directory of face detector files
13{
14 if (mods.empty()) // models not yet initialized?
15 {
16 mods.resize(1); // 1 model
17
18 static const Mod mod_yaw00( // constructor, see asm.h
19 EYAW00, // eyaw
20 ESTART_EYES, // estart
21 datadir,
22 yaw00_meanshape,
23 yaw00_eigvals,
24 yaw00_eigvecs,
25 20, // neigs (value from empirical testing)
26 1.5, // bmax (value from empirical testing)
27 SHAPEHACKS_DEFAULT | SHAPEHACKS_SHIFT_TEMPLE_OUT, // hackbits
28 YAW00_DESCMODS, // defined in yaw00.mh
29 NELEMS(YAW00_DESCMODS));
30
31 mods[0] = &mod_yaw00;
32 }
33}
34
35} // namespace stasm

Callers 1

stasm_init_extFunction · 0.85

Calls 1

NELEMSFunction · 0.85

Tested by

no test coverage detected