library/include/opencv2/haartraining/cvhaartraining.cpp
static
int icvInitBackgroundReaders( const char* filename, CvSize winsize )
{
    if( cvbgdata == NULL && filename != NULL )
    {
        cvbgdata = icvCreateBackgroundData( filename, winsize );
    }

    if( cvbgdata )
    {

        #ifdef CV_OPENMP
        #pragma omp parallel
        #endif /* CV_OPENMP */
        {
            #ifdef CV_OPENMP
            #pragma omp critical(c_create_bg_data)
            #endif /* CV_OPENMP */
            {
                if( cvbgreader == NULL )
                {
                    cvbgreader = icvCreateBackgroundReader();
                }
            }
        }

    }

    return (cvbgdata != NULL);
}
/*
 * icvInitBackgroundReaders
 *
 * Initialize background reading process.
 * <cvbgreader> and <cvbgdata> are initialized.
 * Must be called before any usage of background
 *
 * filename - name of background description file
 * winsize  - size of images will be obtained from background
 *
 * return 1 on success, 0 otherwise.
 */


Initialize background reading process.
 and  are initialized.
Must be called before any usage of background

name of background description file
winsize  - size of images will be obtained from background

return 1 on success, 0 otherwise.
Initialize background reading process . and are initialized . Must be called before any usage of background name of background description file winsize - size of images will be obtained from background return 1 on success 0 otherwise .
static
int icvInitBackgroundReaders( const char* filename, CvSize winsize )
{
    if( cvbgdata == NULL && filename != NULL )
    {
        cvbgdata = icvCreateBackgroundData( filename, winsize );
    }
    if( cvbgdata )
    {
        #ifdef CV_OPENMP
        #pragma omp parallel
        #endif 
        {
            #ifdef CV_OPENMP
            #pragma omp critical(c_create_bg_data)
            #endif 
            {
                if( cvbgreader == NULL )
                {
                    cvbgreader = icvCreateBackgroundReader();
                }
            }
        }
    }
    return (cvbgdata != NULL);
}
static int icvInitBackgroundReaders ( const char * filename , CvSize winsize ) { if ( cvbgdata == NULL && filename != NULL ) { cvbgdata = icvCreateBackgroundData ( filename , winsize ) ; } if ( cvbgdata ) { #ifdef CV_OPENMP #pragma  omp parallel
 #endif { #ifdef CV_OPENMP #pragma  omp critical(c_create_bg_data)
 #endif { if ( cvbgreader == NULL ) { cvbgreader = icvCreateBackgroundReader ( ) ; } } } } return ( cvbgdata != NULL ) ; }
icvInitBackgroundReaders
icvInitBackgroundReaders
/* CV_OPENMP */ /* CV_OPENMP */