Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

grailbio/go-dicom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Siddhartha Bagaria
Nov 5, 2021
b0e216a · Nov 5, 2021

History

27 Commits
Nov 29, 2018
Mar 19, 2018
Mar 19, 2018
Mar 14, 2018
Mar 13, 2018
Dec 14, 2018
Oct 22, 2018
Nov 2, 2017
Nov 8, 2017
Oct 26, 2017
Nov 5, 2021
Oct 22, 2018
Dec 14, 2018
Nov 2, 2017
Oct 26, 2017
Dec 7, 2018
Dec 14, 2018
Jan 17, 2019
Jan 17, 2019
Nov 14, 2017
Nov 14, 2017
Mar 19, 2018
Dec 14, 2018

Repository files navigation


This project is no longer maintained.

Please see suyashkumar/dicom for an alternative, or consider one of the forks of this project.

This project was originally a fork of gillesdemey/go-dicom. with some fixes which have since been incorporated in the alternative referenced above.


GoDoc Build Status

DICOM parser in Go

This is a fork of github.com/gillesdemey/go-dicom. Changes are:

  • Many bug fixes, especially around handling of sequences.
  • Handle non-ASCII characters more properly.
  • Simplify the API. All the functions are synchronous.
  • Better library supports around tags & uids.
  • Rudimentary support for writing DICOM files. This part is not complete yet.
  • Adds fuzz tests and tests that ensure compatibility with pydicom.

TODO:

  • Implement mixed-coding-system files more properly. We currently botch patient-name (PN) elements that mixes coding systems.

  • A multi-image file. Functionality is almost there, but I haven't had time to complete it.

  • Native pixeldata format. It'll be parsed as just []byte.

See doc.go for usage. dicomutil contains a sample program that dumps DICOM elements in a file.

Acknowledgements

I'd like to thank my friend Seppe Stas for helping me get through the horrific DICOM image specification and some of the harder parts of the parser.

Some more inspiration and helpful resource that brought this library to life (in no particular order):

DWV by ivmartel https://github.com/ivmartel/dwv/
dicomParser by Chris Hafey https://github.com/chafey/dicomParser
http://www.dicomlibrary.com
http://dicom.nema.org/medical/dicom/current/output/pdf/part05.pdf