CvSeq* cvSegmentFGMask(CvArr *fgmask, int poly1Hull0, float perimScale, CvMemStorage* storage, CvPoint offset) {
    void *fptr;
    CvSeq*retval;

    fptr = dlsym(_Chcv_handle, "cvSegmentFGMask_chdl");
    if(fptr == NULL) {
        fprintf(_stderr, "Error: %s(): dlsym(): %s\n", __func__,  dlerror());
        return NULL;
    }
    dlrunfun(fptr, &retval, cvSegmentFGMask, fgmask, poly1Hull0, perimScale, storage, offset);
    return retval;
}
