hat_yaw00_lev2_p75.mh 2.96 KB
// hat_yaw00_lev2_p75.mh:

#ifndef stasm_hat_yaw00_lev2_p75_mh
#define stasm_hat_yaw00_lev2_p75_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_p75(const double* const d) // d has 160 elements
{
    const double intercept = 0.143169;
    const double coef[160] =
    {
        0.00500872, 0.0788672, 0.0830198, 0.0347642, -0.0187663, -0.0351558, -0.0415346, 0.0104833,
        0.0498593, -0.0189021, -0.00322631, 0.0243254, 0.0296824, 0.0101936, -0.0423976, 0.0253372,
        0.0264438, 0.0109294, 0.00481503, 0.0401891, 0.00785275, 0.0183256, -0.0359458, 0.0222586,
        0.0156764, -0.0259935, 0.0140222, 0.032216, 0.0129041, 0.0165035, 0.0218827, 0.0255931,
        -0.000384394, 0.00497098, 0.0593127, 0.0308721, 0.00392444, 0.044366, -0.00035291, -0.00172973,
        -0.030345, -0.0104249, -0.0251774, -0.0307689, -0.0132279, 0.0105106, -0.0441885, -0.00590676,
        0.0163224, 0.0580328, 0.0210897, -0.0185961, -0.0262614, 0.0140714, 0.00418796, 0.0559395,
        0.0287848, 0.0198064, 0.0171609, -0.0322414, -0.0331728, -0.0154635, 0.0338829, 0.00292881,
        -0.0252734, -0.00853298, -0.011739, -0.00645236, -0.021923, -0.0136072, 0.0177093, -0.0464155,
        0.00499591, -0.0300743, 0.000695989, -0.0423862, -0.0442462, -0.0612181, 0.137093, -0.0412476,
        -0.0647362, -0.0389046, 0.00246774, 0.10443, 0.00126402, -0.0269946, -0.0753447, -0.0576863,
        -0.0234948, -0.05018, -0.0350569, 0.045086, -0.00129855, 0.0252666, -0.0227364, 0.00152243,
        -0.0214684, -0.0347765, -0.0292191, 0.0101462, 0.00576992, 0.034891, -0.0286404, 0.0115731,
        0.0166064, -0.00540362, 0.0170785, -0.000730702, 0.0076479, -0.00579039, 0.000993971, -0.00161051,
        -0.0243942, -0.0351045, 0.0418538, -0.0097826, 0.0250171, 0.000271145, 0.0154932, -0.0324622,
        0.0201201, 0.0511685, -0.0276986, -0.0137756, -0.0753459, -0.0498984, -0.0279214, -0.0080389,
        0.0279161, 0.0353108, -0.0087214, -0.00518912, -0.019555, -0.0113267, 0.00225945, 0.00182463,
        -0.00303256, -0.009005, -0.0044915, 0.00135642, -0.0402617, -0.000805723, 0.00377508, -0.00364319,
        -0.017734, -0.0284965, 0.0101866, 0.0294709, -0.00494104, 0.00568477, 0.0026554, 0.0024603,
        0.0331129, -0.000183846, 0.0391978, -0.0503583, -0.0647342, -0.0203285, -0.071913, -0.00292174
    };
    return linmod(d, intercept, coef, 160);
}

static const HatDescMod hat_yaw00_lev2_p75(hatfit_yaw00_lev2_p75);

} // namespace stasm
#endif // stasm_hat_yaw00_lev2_p75_mh