CvMat** cvCreatePyramid(CvArr* img, int extra_layers, double rate, CvSize* layer_sizes, CvArr* bufarr, int calc, int filter) {
    void *fptr;
    CvMat**retval;

    fptr = dlsym(_Chcv_handle, "cvCreatePyramid_chdl");
    if(fptr == NULL) {
        fprintf(_stderr, "Error: %s(): dlsym(): %s\n", __func__,  dlerror());
        return NULL;
    }
    dlrunfun(fptr, &retval, cvCreatePyramid, img, extra_layers, rate, layer_sizes, bufarr, calc, filter);
    return retval;
}
