Skip to content

An implementation of 2004 paper on efficient graph-based image segmentation; wrote in python

Notifications You must be signed in to change notification settings

sheMnapion/Graph-Based-Image-Segmentation

Repository files navigation

Graph-Based-Image-Segmentation

An implementation of 2004 paper on efficient graph-based image segmentation; wrote in python

Running

To run the code, you need to make sure you have a python2.x environment as well as support for cv2, numpy and matplotlib
At terminal, input "python graphBasedSegmentation.py" to run.

Some Results

This image (frame-000000.color.jpg of copyroom data is from BundleFusion dataset)(named 'othavScene.jpg' here):
Parameters set here as sigma=1.0, k=2500

Original picture:

Original picture

Segmentation Result: (grayscale)

Segmentation result

Comparison:

Comparison

About

An implementation of 2004 paper on efficient graph-based image segmentation; wrote in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages