This is an implementation of the algorithms in this paper
Real-Time Coarse-to-fine Topologically Preserving Segmentation
by Jian Yao, Marko Boben, Sanja Fidler, Raquel Urtasun
This repository provides python bindings for the orginal code.
The dependecies are
- OpenCV (http://opencv.org)
- Numpy
- Pybind11
Additionally to build this project you need:
- cmake (http://www.cmake.org/download/)
- A C++11 compatible C++ compiler (tested on GCC 11.2.0)
- OpenCV (tested on 4.6.0.66, http://opencv.org/downloads.html)
Clone the repository, go to project root and run python3 -m pip install .
.
import spixel
img = ...
disparity = ...
params = [...]
label_field = spixel.segment(img, *params)
label_field = spixel.segment_disparity(img, disparity, *params)
If you have questions regarding original code, please contact marko.boben@fri.uni-lj.si