Interface for Northern Digital (NDI) Trackers with data to NumPy arrays
Project description
scikit-surgerynditracker is a python interface for Northern Digital (NDI) trackers. It should work with Polaris Vicra, Spectra, and Vega optical trackers and Aurora electromagnetic trackers. Tracking data is output as NumPy arrays.
Author: Stephen Thompson
scikit-surgerynditracker is part of the SNAPPY software project, developed at the Wellcome EPSRC Centre for Interventional and Surgical Sciences, part of University College London (UCL).
Installing
pip install scikit-surgerynditracker
Using
Configuration is done using Python libraries at instantiation. Invalid configuration should raise exceptions. Tracking data is returned in a set of lists, containing the port handles, timestamps, framenumbers, the tracking data and a tracking quality metric. By default tracking data is returned as a 4x4 NumPy array, though can be returned as a quaternion by changing the configuration.
from sksurgerynditracker.nditracker import NDITracker SETTINGS = { "tracker type": "polaris", "romfiles" : ["../data/8700339.rom"] } TRACKER = NDITracker(SETTINGS) TRACKER.start_tracking() port_handles, timestamps, framenumbers, tracking, quality = TRACKER.get_frame() for t in tracking: print (t) TRACKER.stop_tracking() TRACKER.close()
See demo.py for a full example
Developing
Cloning
You can clone the repository using the following command:
git clone https://github.com/UCL/SNAPPY/scikit-surgerynditracker
Running the tests
You can run the unit tests by installing and running tox:
pip install tox tox
Contributing
Please see the contributing guidelines.
Useful links
Licensing and copyright
Copyright 2018 University College London. scikit-surgerynditracker is released under the BSD-3 license. Please see the license file for details.
Acknowledgements
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for scikit-surgerynditracker-0.1.9.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c4f6cd759507b7d1b0beb5a3c69c35615e6df553a6e5bd6b254cd1f851f730e |
|
MD5 | d8d0330014b583daa4c10752ae867e62 |
|
BLAKE2b-256 | d7e9b3cdaee55310f0df6ead3c848fe70584cec2fe2eb438e5dd5af0f7750bfc |