Back to Projects List
Bronchoscope Localization From Depth Maps
Key Investigators
- Franklin King (BWH)
- Shelly Liu (Concord Academy)
- Jonah Berg (The Rivers School)
Project Description
The goal is to localize a bronchoscope through the use of depth maps generated from bronchoscopy images using neural networks. With work already progressing on the depth map generation via neural network, the next goal will be to translate it into a realtime (or semi-realtime) tracking/localization method implemented in 3D Slicer.
Objective
- Produce some ground truth depth maps from model to perform tracking/localization with.
- Develop Slicer module that loads in a feed of depth maps and registers to localize the position of the camera.
Approach and Plan
- Develop ground truth depth maps via Unity from phantom airway model.
- Convert depth maps to point clouds.
- Assuming a known starting position for the tracking, perform a boolean intersect operation around the area of the camera in order to limit the area of the model to register to.
- Boolean operation may be performed using VTK polygon boolean filters, but if they don’t work out then calling Blender via Python should work.
- Perform registration of point cloud to intersected model of airway and adjust transform accordingly.
Progress and Next Steps
- Depth map general via neural networks: https://github.com/NA-MIC/ProjectWeek/tree/master/PW31_2019_Boston/Projects/BronchoscopeLocalizationFromDepthMaps
- Ground truth depth maps specifically for the realtime registration testing generated using Unity.
- Registration done using ICP registration (Surface Registration module from CMFreg)
- Boolean operations to limit ICP registration to target area (with boolean operations performed using an instance of Blender imported into Slicer as a Python module)
- Module created in Slicer
- Boolean operations turned out to not be necessary and former issues were caused by a bug
- Video of depth map tracking:
- Video of Blender Boolean operations within Slicer:
Installing and Importing Blender within Slicer
Tested in Windows:
- ”/(SlicerInstallPath)/bin/SlicerPython.exe -m pip install future-fstrings bpy”
- Move “/(SlicerInstallPath)/lib/Python/Scripts/2.79/” to “/(SlicerInstallPath)/bin/2.79/”
- Just “import bpy” within Slicer
- Example script for performing a Boolean operation using Blender: https://github.com/SNRLab/Slicer-DepthMapTracking/blob/master/Models/BlenderBooleanExample.py
Background and References
- https://github.com/NA-MIC/ProjectWeek/tree/master/PW31_2019_Boston/Projects/BronchoscopeLocalizationFromDepthMaps