How To Convert DICOM To JPG or PNG
+How To Extract a JPG or PNG from a DICOM Image
Introduction
-DICOM is a container, which combines a header (metadata like patient ID, study date, etc) with pixel data (i.e. the image itself). The latter may be uncompressed data (i.e. bitmap) or could be compressed into one of the many codecs suported by the DICOM standard, such as JPEG-LS, JPEG 2000 and more recently High-Throughput JPEG 2000 (HTJ2K). Sometimes it is easier to extract the pixel data into a simple JPG or PNG file to work with the images, and how to do so is described in this article via two methods: 1) DICOMweb and 2) Command-line utilities. You could also achieve the same things via code/scripting using a DICOM library but that's out of scope for this article.
+A DICOM Image is a container, which combines a header (metadata like patient ID, study date, etc) with pixel data (i.e. the image itself). The latter may be uncompressed (i.e. bitmap) or compressed with one of the many codecs suported by the DICOM standard, such as JPEG-LS or High-Throughput JPEG 2000 (HTJ2K).
+To process pixels, it may be easier to extract the pixel data into a simple JPG or PNG file. Two methods are described here: 1) DICOMweb and 2) Command-line utilities. Code/scripting using a DICOM library would also work, but that's out of scope for this article.
If you'd like to dig deeper into this topic, see the following links into the DICOM standard:
-Note: do remember that DICOM may not always contain pixel data. There are types of DICOM objects which are purley metadata-based like Structured Reports (SR) and Key-Object Selection (KOS) as two examples.
+Note: Not all DICOM objects contain pixel data. Some are purely metadata, like Structured Reports (SR) and Key Object Selections (KOS).
1. Extracting JPG/PNG Via DICOMweb
Check your server's DICOM conformance statement to ensure it supports the /rendered
call in WADO-RS. See the DICOM standard for more details. We use Orthanc and know that it supports this call.
If your server supports this endpoint, then the rest is easy! You can just set a GET
call using the following URL format (replace the UIDs in curly brackets with the values you're working with):
2024 SIIM Hackathon
The SIIM Hackathon is open to all walks of life, whether you are clinical, technical or something else - we want YOU! In true SIIM spirit, the hackathon is focused on education and collaboration above all else. Come in groups or individually - we can pair you with others. The hackathon is not a full-time engagement, meaning, you can join us with any amount of free time you have.
The SIIM Hackathon features imaging informatics APIs like DICOMweb and FHIR among others, along with an open-source dataset showing how clinical and imaging data integrate. Go to What's new in 2024 to find out new and exciting things happening this year.
How can I participate?
-Go to the [Hackathon page on siim.org]](https://siim.org/learning-events/events/hackathon/) and ensure you are registered for the hackathon via the green registration button on the right-hand side. We'll then get in touch with you to announce upcoming sessions of interest.
+Go to the Hackathon page on siim.org and ensure you are registered for the hackathon via the green registration button on the right-hand side. We'll then get in touch with you to announce upcoming sessions of interest.
Additionally, don't forget to join the conversation on Slack.
For inspiration of ideas to implement, check this list of hackathon project ideas.
You can also take time to familiarize yourself with the Hackathon Server and its APIs. As well as resources of interest.
diff --git a/index.html b/index.html index 21f9d22..067a4b6 100644 --- a/index.html +++ b/index.html @@ -160,5 +160,5 @@