scikit-surgerycalibration


Namescikit-surgerycalibration JSON
Version 0.2.5 PyPI version JSON
download
home_pagehttps://github.com/SciKit-Surgery/scikit-surgerycalibration
Summaryscikit-surgerycalibration provides algorithms designed for the calibration of surgical instruments
upload_time2024-04-12 20:33:37
maintainerNone
docs_urlNone
authorStephen Thompson
requires_pythonNone
licenseBSD-3 license
keywords medical imaging
VCS
bugtrack_url
requirements numpy ipykernel nbsphinx scipy opencv-contrib-python-headless scikit-surgerycore scikit-surgeryimage
Travis-CI No Travis.
coveralls test coverage
            scikit-surgerycalibration
===============================

.. image:: https://github.com/SciKit-Surgery/scikit-surgerycalibration /raw/master/weiss_logo.png
   :height: 128px
   :width: 128px
   :target: https://github.com/SciKit-Surgery/scikit-surgerycalibration 
   :alt: Logo

|

.. image:: https://github.com/SciKit-Surgery/scikit-surgerycalibration/workflows/.github/workflows/ci.yml/badge.svg
   :target: https://github.com/SciKit-Surgery/scikit-surgerycalibration/actions
   :alt: GitHub Actions CI statuss

.. image:: https://coveralls.io/repos/github/SciKit-Surgery/scikit-surgerycalibration/badge.svg?branch=master&service=github
    :target: https://coveralls.io/github/SciKit-Surgery/scikit-surgerycalibration?branch=master
    :alt: Test coverage

.. image:: https://readthedocs.org/projects/scikit-surgerycalibration /badge/?version=latest
    :target: http://scikit-surgerycalibration .readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

.. image:: https://img.shields.io/badge/Cite-SciKit--Surgery-informational
   :target: https://doi.org/10.1007/s11548-020-02180-5
   :alt: The SciKit-Surgery paper

.. image:: https://img.shields.io/twitter/follow/scikit_surgery?style=social
   :target: https://twitter.com/scikit_surgery?ref_src=twsrc%5Etfw
   :alt: Follow scikit_surgery on twitter


Author(s): Stephen Thompson; Contributor(s): Matt Clarkson, Thomas Dowrick and Miguel Xochicale

scikit-surgerycalibration is part of the `SciKit-Surgery`_ software project, developed at the `Wellcome EPSRC Centre for Interventional and Surgical Sciences`_, part of `University College London (UCL)`_.

scikit-surgerycalibration is tested on Python 3.7.

scikit-surgerycalibration contains algorithms to perform calibrations useful during surgery, for example pointer calibration, ultrasound calibration, and camera calibration. 

Please explore the project structure, and request or implement your desired functionality.

.. features-start

Features
--------

* `Pivot Calibration <https://scikit-surgerycalibration.readthedocs.io/en/latest/module_ref.html#pivot-calibration>`_ for pivot calibration.
* `Calibration <https://scikit-surgerycalibration.readthedocs.io/en/latest/module_ref.html#video-calibration>`_ of mono or stereo tracked video data, calculating camera intrinsics and handeye transformation.

.. features-end


Cloning
-------

You can clone the repository using the following command:
::

    git clone https://github.com/SciKit-Surgery/scikit-surgerycalibration
    git clone git@github.com:SciKit-Surgery/scikit-surgerycalibration.git # Alternatively, use password-protected SSH key.


Developing
----------

We recommend using `anaconda`_ or `miniconda`_ to create a python 3.7 environment,
then using `tox`_ to install all dependencies inside a dedicated `venv`_. We then use
github `actions`_ to run a matrix of builds for Windows, Linux and Mac and various python versions.

All library dependencies are specified via ``requirements-dev.txt`` which refers to ``requirements.txt``.

So, assuming either `anaconda`_ or `miniconda`_ is installed, and your current working directory is the root directory of this project:
::

    conda create --name scikit-surgery python=3.7
    conda activate scikit-surgery
    pip install tox
    tox

As the `tox`_ command runs, it will install all dependencies in a sub-directory ``.tox/py37`` (Linux/Mac) or ``.tox\py37`` (Windows).
`tox`_ will also run pytest and linting for you.

To run commands inside the same environment as `tox`_, you should:
::

    source .tox/py37/bin/activate

on Linux/Mac, or if you are Windows user:
::

    .tox\py37\Scripts\activate

Then you can run pytest, linting, or directly run python scripts, and
know that the environment was created correctly by `tox`_.


Generating documentation
^^^^^^^^^^^^^^^^^^^^^^^^

The simplest way is again using `tox`_.
::

    tox -e docs

then open ``docs/build/html/index.html`` in your browser.


Running tests
^^^^^^^^^^^^^

Pytest is used for running unit tests:
::

    python -m pytest
    pytest -v -s tests/algorithms/test_triangulate.py #example for individual tests


Linting
^^^^^^^
This code conforms to the PEP8 standard. Pylint can be used to analyse the code:
::

    pylint --rcfile=tests/pylintrc sksurgerycalibration


Installing
----------

You can pip install directly from the repository as follows:
::

    pip install git+https://github.com/SciKit-Surgery/scikit-surgerycalibration 



Contributing
------------

Please see the `contributing guidelines`_.


Useful links
------------

* `Source code repository`_
* `Documentation`_


Licensing and copyright
-----------------------
Copyright 2020 University College London.
scikit-surgerycalibration is released under the BSD-3 license. Please see the `license file`_ for details.


Acknowledgements
----------------
Supported by `Wellcome`_ and `EPSRC`_.


.. _`Wellcome EPSRC Centre for Interventional and Surgical Sciences`: http://www.ucl.ac.uk/weiss
.. _`source code repository`: https://github.com/SciKit-Surgery/scikit-surgerycalibration 
.. _`Documentation`: https://scikit-surgerycalibration.readthedocs.io
.. _`SciKit-Surgery`: https://github.com/SciKit-Surgery/scikit-surgery/wiki/home
.. _`University College London (UCL)`: http://www.ucl.ac.uk/
.. _`Wellcome`: https://wellcome.ac.uk/
.. _`EPSRC`: https://www.epsrc.ac.uk/
.. _`anaconda`: https://www.anaconda.com/
.. _`miniconda`: https://docs.conda.io/en/latest/miniconda.html
.. _`tox`: https://tox.wiki/en/latest/
.. _`venv`: https://docs.python.org/3/library/venv.html
.. _`actions`: https://github.com/SciKit-Surgery/scikit-surgerycalibration/actions
.. _`contributing guidelines`: https://github.com/SciKit-Surgery/scikit-surgerycalibration /blob/master/CONTRIBUTING.rst
.. _`license file`: https://github.com/SciKit-Surgery/scikit-surgerycalibration /blob/master/LICENSE
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/SciKit-Surgery/scikit-surgerycalibration",
    "name": "scikit-surgerycalibration",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "medical imaging",
    "author": "Stephen Thompson",
    "author_email": "s.thompson@ucl.ac.uk",
    "download_url": "https://files.pythonhosted.org/packages/b0/02/a37c3176cad53dcbbbfbf6afa063d3299d062d11e5cc88c82929b64b3db0/scikit-surgerycalibration-0.2.5.tar.gz",
    "platform": null,
    "description": "scikit-surgerycalibration\n===============================\n\n.. image:: https://github.com/SciKit-Surgery/scikit-surgerycalibration /raw/master/weiss_logo.png\n   :height: 128px\n   :width: 128px\n   :target: https://github.com/SciKit-Surgery/scikit-surgerycalibration \n   :alt: Logo\n\n|\n\n.. image:: https://github.com/SciKit-Surgery/scikit-surgerycalibration/workflows/.github/workflows/ci.yml/badge.svg\n   :target: https://github.com/SciKit-Surgery/scikit-surgerycalibration/actions\n   :alt: GitHub Actions CI statuss\n\n.. image:: https://coveralls.io/repos/github/SciKit-Surgery/scikit-surgerycalibration/badge.svg?branch=master&service=github\n    :target: https://coveralls.io/github/SciKit-Surgery/scikit-surgerycalibration?branch=master\n    :alt: Test coverage\n\n.. image:: https://readthedocs.org/projects/scikit-surgerycalibration /badge/?version=latest\n    :target: http://scikit-surgerycalibration .readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n.. image:: https://img.shields.io/badge/Cite-SciKit--Surgery-informational\n   :target: https://doi.org/10.1007/s11548-020-02180-5\n   :alt: The SciKit-Surgery paper\n\n.. image:: https://img.shields.io/twitter/follow/scikit_surgery?style=social\n   :target: https://twitter.com/scikit_surgery?ref_src=twsrc%5Etfw\n   :alt: Follow scikit_surgery on twitter\n\n\nAuthor(s): Stephen Thompson; Contributor(s): Matt Clarkson, Thomas Dowrick and Miguel Xochicale\n\nscikit-surgerycalibration is part of the `SciKit-Surgery`_ software project, developed at the `Wellcome EPSRC Centre for Interventional and Surgical Sciences`_, part of `University College London (UCL)`_.\n\nscikit-surgerycalibration is tested on Python 3.7.\n\nscikit-surgerycalibration contains algorithms to perform calibrations useful during surgery, for example pointer calibration, ultrasound calibration, and camera calibration. \n\nPlease explore the project structure, and request or implement your desired functionality.\n\n.. features-start\n\nFeatures\n--------\n\n* `Pivot Calibration <https://scikit-surgerycalibration.readthedocs.io/en/latest/module_ref.html#pivot-calibration>`_ for pivot calibration.\n* `Calibration <https://scikit-surgerycalibration.readthedocs.io/en/latest/module_ref.html#video-calibration>`_ of mono or stereo tracked video data, calculating camera intrinsics and handeye transformation.\n\n.. features-end\n\n\nCloning\n-------\n\nYou can clone the repository using the following command:\n::\n\n    git clone https://github.com/SciKit-Surgery/scikit-surgerycalibration\n    git clone git@github.com:SciKit-Surgery/scikit-surgerycalibration.git # Alternatively, use password-protected SSH key.\n\n\nDeveloping\n----------\n\nWe recommend using `anaconda`_ or `miniconda`_ to create a python 3.7 environment,\nthen using `tox`_ to install all dependencies inside a dedicated `venv`_. We then use\ngithub `actions`_ to run a matrix of builds for Windows, Linux and Mac and various python versions.\n\nAll library dependencies are specified via ``requirements-dev.txt`` which refers to ``requirements.txt``.\n\nSo, assuming either `anaconda`_ or `miniconda`_ is installed, and your current working directory is the root directory of this project:\n::\n\n    conda create --name scikit-surgery python=3.7\n    conda activate scikit-surgery\n    pip install tox\n    tox\n\nAs the `tox`_ command runs, it will install all dependencies in a sub-directory ``.tox/py37`` (Linux/Mac) or ``.tox\\py37`` (Windows).\n`tox`_ will also run pytest and linting for you.\n\nTo run commands inside the same environment as `tox`_, you should:\n::\n\n    source .tox/py37/bin/activate\n\non Linux/Mac, or if you are Windows user:\n::\n\n    .tox\\py37\\Scripts\\activate\n\nThen you can run pytest, linting, or directly run python scripts, and\nknow that the environment was created correctly by `tox`_.\n\n\nGenerating documentation\n^^^^^^^^^^^^^^^^^^^^^^^^\n\nThe simplest way is again using `tox`_.\n::\n\n    tox -e docs\n\nthen open ``docs/build/html/index.html`` in your browser.\n\n\nRunning tests\n^^^^^^^^^^^^^\n\nPytest is used for running unit tests:\n::\n\n    python -m pytest\n    pytest -v -s tests/algorithms/test_triangulate.py #example for individual tests\n\n\nLinting\n^^^^^^^\nThis code conforms to the PEP8 standard. Pylint can be used to analyse the code:\n::\n\n    pylint --rcfile=tests/pylintrc sksurgerycalibration\n\n\nInstalling\n----------\n\nYou can pip install directly from the repository as follows:\n::\n\n    pip install git+https://github.com/SciKit-Surgery/scikit-surgerycalibration \n\n\n\nContributing\n------------\n\nPlease see the `contributing guidelines`_.\n\n\nUseful links\n------------\n\n* `Source code repository`_\n* `Documentation`_\n\n\nLicensing and copyright\n-----------------------\nCopyright 2020 University College London.\nscikit-surgerycalibration is released under the BSD-3 license. Please see the `license file`_ for details.\n\n\nAcknowledgements\n----------------\nSupported by `Wellcome`_ and `EPSRC`_.\n\n\n.. _`Wellcome EPSRC Centre for Interventional and Surgical Sciences`: http://www.ucl.ac.uk/weiss\n.. _`source code repository`: https://github.com/SciKit-Surgery/scikit-surgerycalibration \n.. _`Documentation`: https://scikit-surgerycalibration.readthedocs.io\n.. _`SciKit-Surgery`: https://github.com/SciKit-Surgery/scikit-surgery/wiki/home\n.. _`University College London (UCL)`: http://www.ucl.ac.uk/\n.. _`Wellcome`: https://wellcome.ac.uk/\n.. _`EPSRC`: https://www.epsrc.ac.uk/\n.. _`anaconda`: https://www.anaconda.com/\n.. _`miniconda`: https://docs.conda.io/en/latest/miniconda.html\n.. _`tox`: https://tox.wiki/en/latest/\n.. _`venv`: https://docs.python.org/3/library/venv.html\n.. _`actions`: https://github.com/SciKit-Surgery/scikit-surgerycalibration/actions\n.. _`contributing guidelines`: https://github.com/SciKit-Surgery/scikit-surgerycalibration /blob/master/CONTRIBUTING.rst\n.. _`license file`: https://github.com/SciKit-Surgery/scikit-surgerycalibration /blob/master/LICENSE",
    "bugtrack_url": null,
    "license": "BSD-3 license",
    "summary": "scikit-surgerycalibration provides algorithms designed for the calibration of surgical instruments",
    "version": "0.2.5",
    "project_urls": {
        "Homepage": "https://github.com/SciKit-Surgery/scikit-surgerycalibration"
    },
    "split_keywords": [
        "medical",
        "imaging"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b002a37c3176cad53dcbbbfbf6afa063d3299d062d11e5cc88c82929b64b3db0",
                "md5": "b7b6de660ea9245cf16045a542c77da2",
                "sha256": "cb003f4294a2292e72d37f0224af9ba7a3570184a242ea098f047c278c9d7b5f"
            },
            "downloads": -1,
            "filename": "scikit-surgerycalibration-0.2.5.tar.gz",
            "has_sig": false,
            "md5_digest": "b7b6de660ea9245cf16045a542c77da2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 68024,
            "upload_time": "2024-04-12T20:33:37",
            "upload_time_iso_8601": "2024-04-12T20:33:37.043733Z",
            "url": "https://files.pythonhosted.org/packages/b0/02/a37c3176cad53dcbbbfbf6afa063d3299d062d11e5cc88c82929b64b3db0/scikit-surgerycalibration-0.2.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-12 20:33:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "SciKit-Surgery",
    "github_project": "scikit-surgerycalibration",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "ipykernel",
            "specs": []
        },
        {
            "name": "nbsphinx",
            "specs": []
        },
        {
            "name": "scipy",
            "specs": []
        },
        {
            "name": "opencv-contrib-python-headless",
            "specs": [
                [
                    "<",
                    "4.6"
                ]
            ]
        },
        {
            "name": "scikit-surgerycore",
            "specs": []
        },
        {
            "name": "scikit-surgeryimage",
            "specs": [
                [
                    ">=",
                    "0.10.1"
                ]
            ]
        }
    ],
    "tox": true,
    "lcname": "scikit-surgerycalibration"
}
        
Elapsed time: 0.23987s