TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Dicom File Format Basics

119 pointsby vladsivalmost 3 years ago

15 comments

juliansarkalmost 3 years ago
My amazing experience with DICOM, an open standard with viewer software on SourceForge, is that I once took pictures in the format to a locally renowned neurologist.<p>She plugged my USB stick into her Windows XP workstation, ca. 2019, without the slightest hesitation, then proceeded to claim not to know what DICOM is, and to ask me why I didn&#x27;t bring her either the proprietary viewer program, or JPEGs.<p>Had I brought the viewer, she would have probably launched the .exe with equally no hesitation.<p>At least in these parts of the woods, this once again confirmed to me that medicine and IT usually exist at opposite ends of a spectrum.
评论 #32240245 未加载
评论 #32240142 未加载
评论 #32238969 未加载
评论 #32239685 未加载
评论 #32238549 未加载
评论 #32238926 未加载
评论 #32238575 未加载
评论 #32240910 未加载
评论 #32240734 未加载
评论 #32238489 未加载
评论 #32238068 未加载
petercooperalmost 3 years ago
Coincidentally, for me, I had an MRI yesterday and they always give me access to the DICOM files so it&#x27;s interesting to know more about them. &quot;Horos&quot; is a really good viewer if you want something for managing and viewing entire sets of such images, especially as it can create 3D visualizations of all the 2D slices which results in fun&#x2F;creepy pictures of my brain to show off.
评论 #32237558 未加载
评论 #32241178 未加载
评论 #32236986 未加载
brntalmost 3 years ago
The problem with extensibility is that everyone does! Manufacturers will dump in all sorts of tags, and check for them, when you read in, but the won&#x27;t tell you what they are and how you might calculate their supersecret checksums (for safety!).<p>Dicom Compliance is a well paying job.
评论 #32236653 未加载
评论 #32240791 未加载
评论 #32251074 未加载
skywal_lalmost 3 years ago
You might be interested in a series of articles dealing with the multi planar rendering algorithm (starts at part 2): <a href="http:&#x2F;&#x2F;site.novidee.com&#x2F;blog&#x2F;blog-entry.html?article=20200912-from-DICOM-to-MPR-part2.html" rel="nofollow">http:&#x2F;&#x2F;site.novidee.com&#x2F;blog&#x2F;blog-entry.html?article=2020091...</a><p>How to render an MPR image (an arbitrary slice of 3D data volume) from scratch starting from the bare DICOM files.
评论 #32240662 未加载
golf_mikealmost 3 years ago
For those who like to experiment a little, I can recommend firing up a jupyter notebook and explore the image data using pydicom and plotting it via matplotlib (or whatever plotting lib you fancy). For most CT and MRI data you will have a volume&#x2F;voxels available and its pretty fun to slice&#x27;n dice your way through it by using list slices. Also all other data is available to inspect.
ml_giantalmost 3 years ago
There is also a file format called DICOS which is based off of DICOM which is used by the TSA and various inspection systems:<p><a href="https:&#x2F;&#x2F;www.nema.org&#x2F;directory&#x2F;nema-councils&#x2F;imaging-and-communications-council&#x2F;dicosusa" rel="nofollow">https:&#x2F;&#x2F;www.nema.org&#x2F;directory&#x2F;nema-councils&#x2F;imaging-and-com...</a><p>If you&#x27;ve gone through security at a U.S. airport, the scanners use DICOS format to save scans of your baggage. Someone correct me if I am wrong though - it&#x27;s possible only a subset of these machines use DICOS, I am not 100% sure.
评论 #32240639 未加载
kaibeealmost 3 years ago
&gt; The standard includes a file format definition and a network communications protocol that uses TCP&#x2F;IP to communicate between systems.<p>Is this as cursed as it sounds?
评论 #32237610 未加载
评论 #32237386 未加载
评论 #32241301 未加载
mcluckalmost 3 years ago
DICOM is a fun format to tinker with. The absolute basics of it are simple enough that I wrote a DICOM viewer in college for a class. All of the extensions mean you can get some really interesting data as well. The various number of attributes and unusual combinations make it a real pain if you&#x27;re trying to implement it all from the ground up but I&#x27;d highly recommend anyone play with it.
评论 #32238091 未加载
zegeriusalmost 3 years ago
Very interesting! I have been working with medical information standards for a while now. Recently, I took an interest in DICOM and ways to modernize it. For example by introducing streaming, caching, moving metadata to a FHIR ImagingStudy resource.<p>To me, specifically streaming and caching strategies to move the load of (often hopelessly legacy) hospital infrastructure are an interesting challenge.
评论 #32238816 未加载
etaioinshrdlualmost 3 years ago
The amount of redundant scientific&#x2F;medical&#x2F;industrial image file formats is amazing. Just off the top of my head there is DICOM, FITS, NIFTI, NRRD, plus TIFF.<p>They all have the basic property of having raster data of arbitrary channels&#x2F;depth plus a whole bunch of metadata.<p>It feels like every new industry I work with I discover they have their own redundant image format.
评论 #32242567 未加载
queuebertalmost 3 years ago
I have a funny (or sad, really) DICOM story. I wrote my own DICOM parser in Rust, and I kept encountering a bug where the parsing would fail on a small subset of files in my database.<p>What you need to know is that DICOM tags have 16-bit group and element values that uniquely identify what the tag contains, and tags that begin with the group 0xfffe are very special, comprising a small set of field delimiters.<p>Well, the brilliant minds at Codonics decided to use the special group 0xfffe for their private, vendor-specific fields at the end of the file. When parsing a file those private fields would look like delimiters and ruin the logic.<p>So because of that one particular vendor, I have to check <i>both</i> the group and element of every special tag in every file I parse to make sure it isn&#x27;t one of their special ones. Whereas, if they had followed the standard, I would only need to check the groups for the value 0xfffe. Thanks, guys!
评论 #32241375 未加载
评论 #32241319 未加载
rurbanalmost 3 years ago
Thanks for the pedicom hack tip, I was not aware of it. Will add a check against the DOS-Header (4d 5a 90 00) magic immediately.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;d00rt&#x2F;pedicom" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;d00rt&#x2F;pedicom</a>
notoranditalmost 3 years ago
I still wonder how can DICOM be any better than PNG... But that is supposedly due to my ignorance.
评论 #32237252 未加载
评论 #32237264 未加载
评论 #32237619 未加载
greatgibalmost 3 years ago
Very nicely written article. I guess that it is pleasant to read even if we don&#x27;t have to work with the Dicom format.<p>The explanation of TLV could be interesting also in itself.
评论 #32236622 未加载
SubiculumCodealmost 3 years ago
I always convert dicoms to nifti format. Is there any advantage not to??