Skip to content

This repository contains C++ code to export the video segmentations from the system described in the paper Efficient Hierarchical Graph-Based Video Segmentation.

Notifications You must be signed in to change notification settings

mikeroberts3000/EfficientHierarchicalGraphBasedVideoSegmentationExporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains C++ code to export the video segmentations from the system described in the paper Efficient Hierarchical Graph-Based Video Segmentation. The system described in this paper returns segmentations as Protocol Buffer files. The exporter contained in this repository converts these Protocol Buffer files into image sequences.

Note that most of this code was written by Matthias Grundmann and distributed on his project page. I just hacked his code to export the segmentations rather than visualize them in a GUI.

Requirements

  • OpenCV. I used OpenCV 2.4.6.1, but any recent version of OpenCV should work.
  • Protobuf. I used ProtoBuf 2.5.0, but any recent version of Protobuf should work.
  • The CMake GUI. I used CMake 2.8.10, but any recent version of CMake should work.

On Mac OSX, OpenCV and Protobuf are easy to obtain via MacPorts. From a terminal window, simply type the following:

$ sudo port install opencv
$ sudo port install protobuf-cpp

Build Instructions

  • Point the CMake GUI to the code/segmentation_exporter/segmentation_exporter folder and specify a build folder.
  • Hit Configure. Select the default compiler options. On Mac OSX, CMake should find all the build dependencies automatically. If CMake doesn't find these dependencies automatically, enter in the missing OpenCV and Protobuf CMake variables manually and hit Configure again.
  • Hit Generate.
  • Navigate to the build folder in a terminal window and type make.
  • Now you can run the segmentation_exporter executable.

Usage

  • Obtain a video segmentation from here.
  • Run the segmentation_exporter executable from this repository as follows:
$ ./segmentation_exporter input_segmentation.pb output_folder

About

This repository contains C++ code to export the video segmentations from the system described in the paper Efficient Hierarchical Graph-Based Video Segmentation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages