pyGridCut
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:
- download the source code
- unzip the package to code folder
- 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
with the initial labeling (left) and estimated labeling (right) for 4-connectivity
and the initial labeling (left) and estimated labeling (right) for 8-connectivity