Skip to content

A method to efficiently identify rings in a sparse matrix.

License

Notifications You must be signed in to change notification settings

Sara-a-r/LordOfRings

Repository files navigation

LordOfRings

A method to efficiently identify rings in a sparse matrix.

Build Status Documentation Status

How it works

Given a sparse matrix containing rings as 1 values like:
0    0    0    0    0    0    0   0
0    0    0    0    0    0    0   0
0    0    0    0    0    0    0   0
0    0    0    1    1    0    0   0
0    0    1    0    0    1    0   0
0    0    1    0    0    1    0   0
0    0    0    1    1    0    0   0
0    0    0    0    0    0    0   0

The module LordOfRings evaluates radius and center of each ring using GPU
acceleration.

A semi-parallel Taubin algorithm has been developed to fit the single circle.
The Ptolemy theorem (about quadrilaterals inscribed in a circle) has been
applied to separate points that belong to different rings.

You can find more info and tutorials in the documentation.

Requirements

In order to run the non-GPU accelerated fit the module requires:

  • matplotlib
  • numpy

In addition for the GPU acceleration:

Without the "GPU requirements" the module will work anyway thanks to a
python/numpy (sequential) implementation.

About

A method to efficiently identify rings in a sparse matrix.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published