Thanks to visit codestin.com
Credit goes to github.com

Skip to content

benfoxall/contours

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contours Build Status

This is a basic script for pulling out contours/regions from an image.

It uses Moore Neighbourhood contour tracing. For more details on the algorithm/approach see this site.

const output = contours(imageData)

// list of matching contours
  • imageData should be thresholded (any non-zero pixel is counted as on)
  • only the red value is the only one used

Development

yarn install #or, npm

# build dist/contours
npm run build

# run tests
npm test

# run tests on file change
npm run test:watch

Status

You probably shouldn't use this or whatever.

This is at the state of "just about working". There's a few things that would make it a load more efficient, and maybe a bit nicer to use. Feedback would be appreciated.

About

A Moore neighbour contour tracer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •