Skip to content

lihaowei1999/HL2ToolTracking

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

HL2ToolTracking

This repository contains code for inside-out instrument tracking using the HoloLens 2. For a detailed explanation of the and evaluaiton of our method, please see our paper Inside-Out Instrument Tracking for Surgical Navigation in Augmented Reality.

Note: This repository is still work in progress.

Cpp/WinRT Plugin

The Plugin for tool tracking is implemented in Cpp/WinRT using the HoloLens 2 Research Mode API and OpenCV. Building the Plugin generates .dll and .winmd files which can be bundled with and consumend by UWP applications, e.g. a Unity app (instructions and a sample will be added to this repo soon)

Prerequisites

  • Camera Calibration: The HoloLens 2 needs to be calibrated accurately, e.g. intrinsic parameters of the left-front and right-front VLC cameras need to be known, as well as the extrinsic transformation matrix between them. We used this toolbox for obtaining a good calibration.
  • Instrument definition The tracked instrument needs to be marked with >= 4 spherical markers. We use reflective infrared markers. Their 3D configuration on the instrument needs to be known.
  • Both camera parameters and marker configuration need to be supplied to the tracking plugin. Currently, they need to be manually pasted into the InstrumentTracker.h file before building. Support for loading these parameters from a config file will be added in the future.

Dependencies

Installation

  • Open the HL2ToolTrackingWRC.sln in VS
  • [optional, depending on VS version] Install Cpp/WinRT NuGet package
  • Configure the project to use dependencies
  • Build for Release / ARM64
  • This generates Windows Runtime component dll and WinMD files

Work in progress

  • First version of tool tracking plugin code released
  • Unity sample app released
  • Add detailed install instructions
  • Improvements to blob detection released
  • Support for config files

Citation

If you find our work useful, please consider citing our paper

@inproceedings{gsaxner2021inside,
  title={Inside-out instrument tracking for surgical navigation in augmented reality},
  author={Gsaxner, Christina and Li, Jianning and Pepe, Antonio and Schmalstieg, Dieter and Egger, Jan},
  booktitle={Proceedings of the 27th ACM Symposium on Virtual Reality Software and Technology},
  pages={1--11},
  year={2021}
}

Acknowledgement

This repository borrows code from TIY and MTT. Please acknowledge their work if you find this repo useful!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%