CvMat* cvInitMatHeader(CvMat* mat, int rows, int cols, int type, void* data, int step) {
    void *fptr;
    CvMat*retval;

    fptr = dlsym(_Chcv_handle, "cvInitMatHeader_chdl");
    if(fptr == NULL) {
        fprintf(_stderr, "Error: %s(): dlsym(): %s\n", __func__,  dlerror());
        return NULL;
    }
    dlrunfun(fptr, &retval, cvInitMatHeader, mat, rows, cols, type, data, step);
    return retval;
}
