C/C++ library for the ViBe algorithm
|
An exemplative main file for the use of ViBe and OpenCV. More...
#include <iostream>
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include "vibe-background-sequential.h"
Go to the source code of this file.
Functions | |
void | help () |
int | main (int argc, char *argv[]) |
void | processVideo (char *videoFilename) |
An exemplative main file for the use of ViBe and OpenCV.
Definition in file main-opencv.cpp.
void help | ( | ) |
Displays instructions on how to use this program.
Definition at line 23 of file main-opencv.cpp.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Main program. It shows how to use the grayscale version (C1R) and the RGB version (C3R).
Definition at line 38 of file main-opencv.cpp.
References help(), and processVideo().
void processVideo | ( | char * | videoFilename | ) |
Function Headers
Processes the video. The code of ViBe is included here.
videoFilename | The name of the input video file. |
Definition at line 66 of file main-opencv.cpp.
References libvibeModel_Sequential_AllocInit_8u_C1R(), libvibeModel_Sequential_Free(), libvibeModel_Sequential_New(), libvibeModel_Sequential_Segmentation_8u_C1R(), and libvibeModel_Sequential_Update_8u_C1R().
Referenced by main().
This code is copyrighted by the University of Liège, Belgium. It is only shared for research purposes. Please do not distribute it. Prof. M. Van Droogenbroeck, July 2014.