| 8 | namespace stasm |
| 9 | { |
| 10 | void 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 |
no test coverage detected