CvBGStatModel* cvCreateFGDStatModel(IplImage* first_frame, CvFGDStatModelParams* parameters) {
    void *fptr;
    CvBGStatModel*retval;

    fptr = dlsym(_Chcv_handle, "cvCreateFGDStatModel_chdl");
    if(fptr == NULL) {
        fprintf(_stderr, "Error: %s(): dlsym(): %s\n", __func__,  dlerror());
        return NULL;
    }
    dlrunfun(fptr, &retval, cvCreateFGDStatModel, first_frame, parameters);
    return retval;
}
