Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ReProjection function?

I pulled this project from here, (github : /freesouls/face-alignment-at-3000fps), and am trying to optimize the data loading of the program. I can't quite understand these few lines, however.

        // Face alignment
        cv::Mat_<uchar> tmp;
        gray.copyTo(tmp);
        cv::Mat_<double> current_shape = ReProjection(cas_load.params_.mean_shape_, bbox);
        // |current_shape| will be overwritten during the Predict call.
        cv::Mat_<double> res = cas_load.Predict(tmp, current_shape, bbox);
        for (int i = 0; i < res.rows; i++){
            cv::circle(frame, cv::Point2f(res(i, 0), res(i, 1)), 2, Scalar( 255, 255, 255 ));
        }

Nor could I find any reference to 'ReProjection' in the docuemntation, or CascadeRegressor... Other relevant lines:

        CascadeRegressor cas_load;
        Mat frame, gray;

Where might I find the appropriate documentation?