MATLAB (mex) implementation of CVPR 2013 paper [link]
A Video Representation Using Temporal Superpixels Jason Chang, Donglai Wei, and John W. Fisher III In CVPR, 2013.
To get the Temporal Superpixel code working, please follow these steps:
- Install the GNU Scientific Library - http://www.gnu.org/software/gsl/
- Start MATLAB
- In TSP directory, run "compile_MEX". Warnings for the compilation of the optical flow can be safely ignored. If GSL is installed in a directory that cannot be found by Matlab, you may need to edit compile_MEX.m to point to the right locations.
To run a demo of the TSP code, run "demo.m" from a Matlab prompt. This will first run optical flow for all the frames and then track superpixels. Following the completion of the inference, a GUI will be started to visualize the results.
To visualize a pre-computed result, you can run the following:
load('results/sp_labels_girl_demo.mat'); root = 'sequences/girl/'; view_sp_gui(sp_labels, root);