scikit-surgery-sphere-fitting implements a least squares sphere fitting algorithm, to read a vtk poly data file, a config file, and outputs the fitted sphere
Project description
Author: Stephen Thompson
scikit-surgery-sphere-fitting is part of the SNAPPY software project, developed at the Wellcome EPSRC Centre for Interventional and Surgical Sciences, part of University College London (UCL).
scikit-surgery-sphere-fitting supports Python 3.6.
scikit-surgery-sphere-fitting fits a sphere to a set of 3D points. It includes a user interface that will read data from a vtk polydata file create an output polydata file showing the fitted sphere. Example usage:
python sksurgeryspherefitting.py polydata_in.vtp --output polydatata_out.vtp --config conf.json
It was created in part to provide a simple demonstration of algorithm development as part of a program of SNAPPY Tutorials, but also provides a useful service should you want to fit a sphere to some data.
Developing
Cloning
You can clone the repository using the following command:
git clone https://weisslab.cs.ucl.ac.uk/StephenThompson/scikit-surgery-sphere-fitting
Running tests
Pytest is used for running unit tests:
pip install pytest python -m pytest
Linting
This code conforms to the PEP8 standard. Pylint can be used to analyse the code:
pip install pylint pylint --rcfile=tests/pylintrc sksurgeryspherefitting
Installing
You can pip install directly from the repository as follows:
pip install git+https://weisslab.cs.ucl.ac.uk/StephenThompson/scikit-surgery-sphere-fitting
or directly from pypi
pip install scikit-surgery-sphere-fitting
Contributing
Please see the contributing guidelines.
Useful links
Licensing and copyright
Copyright 2019 University College London. scikit-surgery-sphere-fitting is released under the BSD-3 license. Please see the license file for details.
Acknowledgements
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for scikit_surgery_sphere_fitting-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e8498921706672d0b55ad0f3d239c45ea46dfd5eb64d2687d49412efd789243 |
|
MD5 | 77ecf29658764bf01f0e5d37feff8815 |
|
BLAKE2b-256 | 7d12e90be22c830faa104cdf321402d36ac5ce81848eb86bf2f3df12bfce301c |