Viewing my CT Scan in 3D using Linux
Several years ago, I had a CT scan of my jaw. The dentist wasn't sure if she was allowed to give me a copy of the scan, which led me to ask "who owns the copyright to my medical images?" I still don't have an answer to the copyright question - but I do now have a copy of a CT scan!
Last week - following some dental trauma - I had another scan of my head. The dentist took great delight in showing me my bones in 3D. So I asked for a copy.
This was something he'd never done before! So, together, we navigated the software, found the export button, and generated a copy. Even zipped up it was half a gigabyte - a bit too much for email and, not unreasonably, he didn't want me plugging in strange USB devices to his medical equipment. So he sent it over WeTransfer. Possibly not the most secure method for my medical data, but I didn't really have time to set up a personal SFTP site or teach him about installing WSL so he could SCP the content. Ah well, needs must.
Unzipped, the folder was about 700MB. Of that, 400MB was taken up by the included Windows app "Ez3D-i". Unsurprisingly, it didn't run on Linux.
The other 300MB was taken up by 450 .DCM files. These are medical images in the DICOM format. This is a relatively open standard which uses JPG plus lots of metadata. There are dozens of Linux programs which can read this - although many haven't been updated in years.
The easiest GUI for viewing the images is Mango. It presents a view of the CT Scan that you can move around.
It isn't the most intuitive app in the world, but it is good enough for browsing the scan.
If you want a 3D model of your scan, I recommend Aliza. Again, not the simplest interface:
But once you get the hang of it, you can manipulate the 3D scan and view it from all angles. It's possible to peel away the soft tissue and do all sorts of other fancy trickery. Even on my laptop without a fancy graphics card, it was fast. Here's a quick animation showing the (false colour) version.
If you have had a CT scan, please do ask for a copy of the DICOM files. It is great fun to explore around your own body.
Now I just need to find a way to import this into my Meta Quest so I can enjoy these teeth in VR!
As per the meme:
Extreme Electronics said on mstdn.social:
@Edent I paid for mine. They didn't have much argument over ownership. 🙂
mil said on mastodontech.de:
@Edent I have 3d dicoms of my head after a bicycle crash, and moving dicoms of my heart, I was given DVDs with the data on discharge. I used Osiris to view. perhaps it is time to try new software…
21 Babbage said on mathstodon.xyz:
@Edent Oh, that is FASCINATING. I would assume copyright wouldn’t apply, but I’d love it if an actual legal mind could weigh in.
Dr David Mills said on mastodon.social:
@Edent drishti from Australia national university can load dicom and make some interesting images. Bit of a learning curve, bust can also export a stl for 3d printing.
Andrew Zonenberg said on ioc.exchange:
@Edent Yeah my non-lawyer first impression would be that if you paid the dentist to create the scan on your behalf that any copyright (if the images were even copyrightable which is debatable given the lack of creative expression) would be owned by you under the work-made-for-hire doctrine.
But I've never actually seen this tested or formally documented anywhere so who knows...
sunflowerinrain said on mastodon.online:
@Edent When I was leaving England my GP told me to see the admin staff to get my data, and to add to it (hadn't always lived there, so my records were incomplete). Admins refused to let me see it, because of "data protection". After raising various arguments, I finally said that should mean I had to give them permission to see it (whose body is it?). Result: confused but stubborn admins.
In France your xray etc prints are handed to you to deal with. They're yours. Makes sense.
SignalEleven said on fosstodon.org:
@Edent That is cool. I think I used exactly that software to export a STL file for a 3d printer.
I have now my jaw, life size, on my desk, including my now lost wisdom teeth.
Dr. Frustrated says:
Much of medicine is unfortunately still stuck in the 90's (we're still dependent on fax machines to get notes from other doctors). Many radiology centers will provide a DVD with the DICOM images (and a viewer) for the patient to take to their physicians for review.
At least in the US, the images and data is property of the physician/practice but there are strict "information blocking" rules that can have huge $$ penalties for practices that don't immediately share lab results, physician notes, etc. with the patient via the practice's electronic patient portal (https://www.hhs.gov/hipaa/for-professionals/privacy/guidance/access/index.html). Due to technical constraints (the size issue) and regulatory barriers, these rules unfortunately don't cover imaging.
I'd love to wield the lawsuit hammer to force some medical imaging companies to share electronically useful information to patients (and providers.) As a surgeon, I often obtain relevant imaging for which the vendor only provides a PDF report with numbers that I copy into my notes for the patient. These numbers are critical to monitor over time to prevent permanent disability, but the vendor embeds them as a rasterized image of text inside the PDF ... in 7 point font (and blurry due to antialiasing)! Barely legible! Of course, if I pay $500,000, I can buy (a license to) another system from the same vendor and view those numbers more easily. Unfortunately the information blocking rules don't apply to the vendors too (although a reasonable lay-person read of the regulations should have them be covered too.) Aahhh!
More comments on Mastodon.