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.

Screenshot of a user interface with three panels, each showing a different view of my teeth.

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:

Screenshot of a user interface showing a 2D view and a 3D view of my scan.

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: [Dentist waiting room] Me: [chanting] teeth, teeth-. Other patients: teeth, TEETH. Secretary: [pounding her clipboard] TEETH, TEETH, TEETH!


Share this post on…

  • Mastodon
  • Facebook
  • LinkedIn
  • BlueSky
  • Threads
  • Reddit
  • HackerNews
  • Lobsters
  • WhatsApp
  • Telegram

8 thoughts on “Viewing my CT Scan in 3D using Linux”

  1. 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...

    Reply | Reply to original comment on ioc.exchange
  2. 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.

    Reply | Reply to original comment on mastodon.online
  3. 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!

    Reply

What links here from around this blog?

What are your reckons?

All comments are moderated and may not be published immediately. Your email address will not be published.

Allowed HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <p> <pre> <br> <img src="" alt="" title="" srcset="">