Proof of concept of showing MRI scans in 3D in WebVR using A-Frame
(Note this repo is out of date, it uses old versions of A-Frame / three.js. Check out this newer glitch example by Emmett Baber instead which uses the same technique.)
![](https://raw.githubusercontent.com/kfarr/aframe-mri-poc/master/./assets/aframe-mri-poc.gif)
Click here to try it out in your browser.
This app is a very simple proof of concept showing sequential MRI scans of a friend's knee (thanks Tricky!) arranged in 3D space with low opacity to create an illusion of volume.
Use your mouse to click
and drag
to rotate the image. Use the scrollwheel
to zoom in / out.
Instructions:
- Use this page with markers on your desktop/laptop (or print out a "Hiro" marker)
- Open this page on a supported mobile device (most Android phones and iOS 11 support WebRTC)
MRI scans are often provided in DICOM format. You can ask your doctor for your MRI scans and they'll usually provide it as a burned CD. There are many DICOM viewers out there, including a few web based JavaScript libraries for parsing DICOM format files:
- https://github.com/ivmartel/dwv
- https://github.com/chafey/dicomParser
- https://github.com/chafey/cornerstone
In theory it would be possible to make a "VR view" automatically from any DICOM compliant file. According to the web DICOM viewers, parsing images is tough because of variability between compression types on various MRI hardware, etc.
In this example I manually converted a series of 26 images from DICOM to JPEG images using MicroDicom and simple copying them into Paint 3D and saving as a series of JPEGs.