Skip to content

Usama3627/live-wire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Livewire Fast Implementation in Python

Livewire is a semi-automatic 2D image segmentation software. This implementation is based on python 3.7. It aims to be optimal and have minimum response time. It is based on paper of Dr Omer Ishaq on Livewire:

Working

Image is read and converted to grayscale. It is converted in a undirected weight graph. The weights are calculated using simple gradient and each pixel is assigned weights (right and bottom). The edges of object gets the lowest weights. Dijkastra is used to compute the edge of object as it follows the shortest path.

The shortest path nodes (pixels) are returned and are converted to white to display the edge. Next edge can be calculated likewise.

Usage

  1. Run the script.
  2. Image will open
  3. Click and mouse left button at one point
  4. Relase mouse left button at another point
  5. Press 'c'
  6. New image will open showing the segment with white border
  7. You can press 'c' to close the new window and select the points again

Technical Requirement

Python 3.x

Libraries used:

Tested on Ubuntu 19.04, Ubuntu 18.04, Windows 10 with Python 3.7

Contributions

Check contribution guidelines for more information

License

GNU GPL V3

See the License for more information

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages