CvSeq* cvSegmentMotion(CvArr* mhi, CvArr* seg_mask, CvMemStorage* storage, double timestamp, double seg_thresh) {
    void *fptr;
    CvSeq*retval;

    fptr = dlsym(_Chcv_handle, "cvSegmentMotion_chdl");
    if(fptr == NULL) {
        fprintf(_stderr, "Error: %s(): dlsym(): %s\n", __func__,  dlerror());
        return NULL;
    }
    dlrunfun(fptr, &retval, cvSegmentMotion, mhi, seg_mask, storage, timestamp, seg_thresh);
    return retval;
}
