Borda / GridCut-python

Python wrappers for the GridCut C++ library for solving graph cuts in grids

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyGridCut

Build Status Codacy Badge Build status

A Python wrapper for the GridCut C++ library for solving graph cuts in regular grids.

Implemented functions:

  • gridcut.maxflow_2D_4C(...)
  • gridcut.maxflow_2D_4C_potts(...)
  • gridcut.maxflow_2D_8C_potts(...)

Installation

Actually the latest version is 1.3 as it is set up in the setup.py

python setup.py build_ext --inplace
python setup.py install

For installation use previous commands it does following steps:

  1. download the source code
  2. unzip the package to code folder
  3. build the gridcut

Note, that downloading the source cede you agree with GridCut license

Show examples

Source-Sink segmentation

Visualisation of the unary terns for source/sink segmentation

unary terms

with the initial labeling (left) and estimated labeling (right) for 4-connectivity

labeling

and the initial labeling (left) and estimated labeling (right) for 8-connectivity

labeling

About

Python wrappers for the GridCut C++ library for solving graph cuts in grids


Languages

Language:C++ 52.8%Language:Python 47.2%