This is the C++ code for our paper Automatic Streaming Segmentation of Stereo Video Using Bilateral Space. This implemetation is based on Visual Studio 2015 and OpenCV 2.4.
Give a sequence of left-view frames from a stereo video and the corrponding disparity images, this project can generate the foreground segmentation results for all frames.
- Put your left-view image sequences in
data\left_image_folder\
, and disparity image seqences indata\disparity_image_folder
. The filenames of images should be in the form of 0.png, 1.png, 2.png, ...., etc. - Configure your visual studio project
- configure opencv
- add
code\inc\
,graphcut\inc
andgraphcut\src
in include paths
- run the project and you'll find the results in
data\result_image_folder