Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.15 KB

File metadata and controls

33 lines (19 loc) · 1.15 KB

Fast Growcut alogorithm with shortest path

Implemented fast grow cut algorithm based on "An Effective Interactive Medical Image Segmentation Method Using Fast GrowCut" (see link), generalized for multi-class n-dimensional data.

Installation

Run setup file (ONLY needed for Cython version, NOT required for the other Python implementation)

python setup.py build

sudo python setup.py install

Usage

For basic GrowCut package usase, see (link).

Fast Growcut using shortest path

Implemented in growcut_cpu

Run fastgc function with image data img, initial seed labels seeds, both img and seeds can be n-dimensional data.

fastgc(img, seeds, newSeg = True, labCrt=None, distCrt=None, labPre=None, distPre=None, verbose = True)

Test example

Run pytest directly

Test list

Test 1: test_growcut.py

Github reference

  1. Basic GrowCut package (link)
  2. Fibonacci heaps package (link)