CvArr* cvRange(CvArr* mat, double start, double end) {
    void *fptr;
    CvArr*retval;

    fptr = dlsym(_Chcv_handle, "cvRange_chdl");
    if(fptr == NULL) {
        fprintf(_stderr, "Error: %s(): dlsym(): %s\n", __func__,  dlerror());
        return NULL;
    }
    dlrunfun(fptr, &retval, cvRange, mat, start, end);
    return retval;
}
