Skip to main content
Logo

GitHub Actions CI statuss Test coverage Documentation Status The SciKit-Surgery paper 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

  • Pivot Calibration for pivot calibration.

  • Calibration of mono or stereo tracked video data, calculating camera intrinsics and handeye transformation.

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.

Acknowledgements

Supported by Wellcome and EPSRC.

Metadata

Release files for scikit-surgerycalibration 1.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scikit-surgerycalibration 1.2.6
File Size Uploaded
scikit_surgerycalibration-1.2.6.tar.gz 74.2 kB Details

Release files / scikit_surgerycalibration-1.2.6.tar.gz

Download URL scikit_surgerycalibration-1.2.6.tar.gz
Size 74.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7b81c8ca75440c9e6c6734a721637526dec51adf444b86c8019297ef6c7edfee
BLAKE2b-256 checksum
How to use checksums
1db32479dd5f7bc0cbf16953de07c1e6c80600bf97a0295989661b3e3b2446ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.2.6 This release

1 release file

1.2.5

1 release file

1.2.4

1 release file

1.2.3

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.0

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page