{"id":24787086,"url":"https://github.com/gradienthealth/dicom","last_synced_at":"2025-07-04T13:02:35.816Z","repository":{"id":57487939,"uuid":"138090104","full_name":"gradienthealth/dicom","owner":"gradienthealth","description":"High Performance DICOM Medical Image Parser in Go.","archived":false,"fork":false,"pushed_at":"2019-07-16T20:18:27.000Z","size":26763,"stargazers_count":79,"open_issues_count":20,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-06-18T21:51:21.680Z","etag":null,"topics":["dicom","dicom-images","golang","golang-package","image","medical","medical-imaging","pacs","parser","reader"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gradienthealth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-20T21:57:38.000Z","updated_at":"2024-05-17T20:45:16.000Z","dependencies_parsed_at":"2022-09-04T05:12:26.336Z","dependency_job_id":null,"html_url":"https://github.com/gradienthealth/dicom","commit_stats":null,"previous_names":["gradienthealth/go-dicom"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gradienthealth%2Fdicom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gradienthealth%2Fdicom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gradienthealth%2Fdicom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gradienthealth%2Fdicom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gradienthealth","download_url":"https://codeload.github.com/gradienthealth/dicom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236201064,"owners_count":19111412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dicom","dicom-images","golang","golang-package","image","medical","medical-imaging","pacs","parser","reader"],"created_at":"2025-01-29T15:18:30.400Z","updated_at":"2025-01-29T15:18:31.947Z","avatar_url":"https://github.com/gradienthealth.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DICOM parser in Go\n[![Build Status](https://travis-ci.org/gradienthealth/dicom.svg?branch=master)](https://travis-ci.org/gradienthealth/dicom)\n[![GoDoc Reference](https://godoc.org/github.com/gradienthealth/dicom?status.svg)](https://godoc.org/github.com/gradienthealth/dicom)\n\nThis is a (hard-ish) fork of [go-dicom](https://github.com/gillesdemey/go-dicom)--a golang DICOM image parsing library. A command line tool to parse imagery and data out of DICOM files is also included (`dicomutil`). We have been working on this package with the goal of building a full-featured and high-performance dicom parser with new features and improvements. So far improvements include: \n* parsing and extracting multi-frame DICOM imagery (both encapsulated and native pixel data)\n* exposing a `Parser` golang interface to make mock-based testing easier for clients\n* Channel-based streaming of frames to a client _as they are parsed_ out of the dicom\n\nWe're open to suggestions and comments -- open an issue if you have any. \n\n## Usage\nTo use this in your golang project, simply import our pacakge `github.com/gradienthealth/dicom` and then you can use our `Parser` for your parsing needs:\n```go \np, err := dicom.NewParserFromFile(\"myfile.dcm\", nil)\nopts := dicom.ParseOptions{DropPixelData: true}\n\nelement := p.ParseNext(opts) // parse and return the next dicom element\n// or\ndataset, err := p.Parse(opts) // parse whole dicom\n```\nMore details about the package can be found in the [godoc](https://godoc.org/github.com/gradienthealth/dicom)\n\n## CLI Tool\nA CLI tool that uses this package to parse imagery and metadata out of DICOMs is provided in the `dicomutil` package. \n### Usage\n```\ndicomutil --extract-images myfile.dcm\n```\nNote: for some dicoms (with native pixel data) no automatic intensity scaling is applied yet (this is coming). You can apply this in your image viewer if needed. \n### Docker build\nTo build the tool for all platforms (Mac, Windows, Linux) from source using docker, execute the following in the cloned repo:\n```bash\ndocker build . -t godicom\ndocker run -it -v $PWD/build:/go/src/github.com/gradienthealth/dicom/build godicom make release\n```\nYou can then use the binaries that will show up in the `build` folder in your current working directory\n### Build manually\nTo build manually, ensure you have `make`, golang, and [dep](https://github.com/golang/dep) installed on your machine. Clone (or `go get`) this repo into your gopath then:\n```\nmake\n```\n\n## Acknowledgements\n\n* Original [go-dicom](https://github.com/gillesdemey/go-dicom)\n* Grailbio [go-dicom](https://github.com/grailbio/go-dicom) -- commits from their fork were applied to ours\n* Innolitics [DICOM browser](https://dicom.innolitics.com/ciods)\n* [DICOM Specification](http://dicom.nema.org/medical/dicom/current/output/pdf/part05.pdf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgradienthealth%2Fdicom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgradienthealth%2Fdicom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgradienthealth%2Fdicom/lists"}