hat_yaw00_lev2_p35.mh 2.97 KB
// hat_yaw00_lev2_p35.mh:

#ifndef stasm_hat_yaw00_lev2_p35_mh
#define stasm_hat_yaw00_lev2_p35_mh

namespace stasm {

// tasm -V1 /b/stasm/train/conf/tasm_muct77.conf
// static const int    EYEMOUTH_DIST = 100;
// static const int    FACESCALE = 1
// static const int    PYRSCALE = 1
// static const double SIGMOIDSCALE = 0
// static const double PYR_RATIO = 2;
// static const int    NEGTRAIN_SEED = 2013;
// static const int    HAT_PATCH_WIDTH = 19;
// static const int    HAT_PATCH_WIDTH_ADJ = -6;
// static const int    GRIDHEIGHT = 4;
// static const int    GRIDWIDTH = 5;
// static const int    BINS_PER_HIST = 8;
// static const double WINDOW_SCALE = 0.5;

static double hatfit_yaw00_lev2_p35(const double* const d) // d has 160 elements
{
    const double intercept = -0.0569861;
    const double coef[160] =
    {
        -0.0452166, -0.00120985, -0.0642733, -0.0433011, -0.0143067, 0.187839, -0.00428658, -0.00650242,
        0.0394361, 0.0211488, 0.0687109, 0.000483339, -0.0199071, 0.0220808, 0.0780823, 0.0556368,
        0.0586077, -0.0237231, 0.030264, 0.0372592, 0.0211708, -0.00451533, -0.0238338, -0.0808726,
        0.0375287, -0.0425377, -0.0537355, -0.0160995, 0.0191792, 0.0143375, 0.0323217, -0.0160405,
        0.0641634, 0.041519, -0.0194647, 0.00845982, -0.00460267, -0.00117591, 0.00773437, 0.00707627,
        0.0137806, 0.0537537, 0.116498, 0.0836869, 0.042555, -0.128439, -0.0448244, -0.0201245,
        -0.0354514, -0.0320875, -0.0596862, 0.0322179, 0.0248905, 0.00867726, 0.0026904, 0.00215038,
        0.0176725, -0.0278685, 0.0647107, 0.0700868, 0.0723984, 0.013583, 0.0189065, 0.0296625,
        -0.0125392, -0.0363014, 0.0524765, -0.0592515, -0.00260219, -0.00356819, -0.0465201, 0.00398317,
        -0.0148738, 0.0892113, -0.00931875, -0.0290633, 0.0459755, 0.0466378, 0.0537626, 0.0155148,
        0.00157531, -0.0144777, -0.0566745, -0.0333648, -0.0635901, -0.00229455, -0.0108516, 0.0337369,
        0.0213568, 0.0212246, 0.0134308, -0.0349036, -0.0518544, 0.00736802, 0.00410732, -0.00219179,
        0.00875987, -0.00275223, 0.00445113, -0.0208322, -0.0406893, -0.0105535, 0.0171398, 0.0333355,
        0.0272341, 0.016625, -0.0150876, -0.0448088, -0.0305251, -0.00475766, 0.0282755, 0.0229124,
        -0.0562676, -0.00235707, 0.00318367, -0.0375074, -0.036737, -0.0121753, -0.0456456, 0.0088149,
        -0.0129207, -0.00481494, 0.0121743, 0.0636755, -0.00218512, -0.0264368, -0.0426944, -0.0331295,
        -0.000268162, -0.0303325, -0.0100597, 0.0201173, -0.0187584, -0.0106597, -0.0162527, 0.00213507,
        0.000782108, -0.0446817, 0.0291512, -0.00622929, -0.032462, -0.00722358, -0.015956, -0.017508,
        -0.00442869, -0.0616177, 0.00842057, -0.0221374, 0.00273545, 0.0370507, -0.0110599, -0.00349913,
        -0.0150104, -0.00249232, 0.0607886, 0.00642015, 0.0137252, -0.00537359, -0.0407976, -0.0264226
    };
    return linmod(d, intercept, coef, 160);
}

static const HatDescMod hat_yaw00_lev2_p35(hatfit_yaw00_lev2_p35);

} // namespace stasm
#endif // stasm_hat_yaw00_lev2_p35_mh