Giter Site home page Giter Site logo

nfrumkin / segmentationalgorithms Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.88 MB

A comparative view of traditional machine learning approaches with max-flow algorithms for simple foreground/background image segementation. A final project for EC504, Advance Data Structures and Algorithms

License: MIT License

Python 99.23% Shell 0.77%

segmentationalgorithms's Introduction

Segmentation Algorithms

Installation Instructions

Python Version = 3.6.6

Load Modules and Pip install

On SCC:

module load python3
pip3 install --user PyMaxFlow

note: Must use ssh -X for GUI!!

Python API Packages

  • python-tk
  • PIL
  • numpy
  • pickle
  • scipy
  • maxflow
  • matplotlib
  • skimage

Running Application

Step 1: Image Annotation

python3 image_gui.py

  1. Click on foreground
  2. Click-and-drag to annotate foreground of image
  3. Click on background
  4. Click-and-drag to annotate background of image
  5. Click "Finish Labelling"
  6. Close pop-up

Step 2: Max Flow Image Segmentor

python3 max-flow.py

Step 3: Otsu Thresholding

python3 otsu_thresholding.py

segmentationalgorithms's People

Contributors

nfrumkin avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.