{"id":31149458,"url":"https://github.com/sprinfall/dcm","last_synced_at":"2026-03-14T15:07:13.156Z","repository":{"id":64058221,"uuid":"72385619","full_name":"sprinfall/dcm","owner":"sprinfall","description":"A lightweight C++ DICOM library (for study purpose only!)","archived":false,"fork":false,"pushed_at":"2022-11-04T01:54:32.000Z","size":12840,"stargazers_count":30,"open_issues_count":3,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-03-21T02:31:21.660Z","etag":null,"topics":["cpp","cpp11","dicom"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sprinfall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-31T00:57:16.000Z","updated_at":"2023-11-02T11:10:57.000Z","dependencies_parsed_at":"2022-12-02T11:05:25.948Z","dependency_job_id":null,"html_url":"https://github.com/sprinfall/dcm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sprinfall/dcm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sprinfall%2Fdcm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sprinfall%2Fdcm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sprinfall%2Fdcm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sprinfall%2Fdcm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sprinfall","download_url":"https://codeload.github.com/sprinfall/dcm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sprinfall%2Fdcm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275806095,"owners_count":25531917,"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","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cpp","cpp11","dicom"],"created_at":"2025-09-18T17:52:25.346Z","updated_at":"2025-09-18T17:52:26.895Z","avatar_url":"https://github.com/sprinfall.png","language":"C++","readme":"# dcm\n\nNOTE: This project is only for study purpose. Please consider to use DCMTK in your project. \n\nA lightweight C++ DICOM library for reading and writing DICOM files.\n\n## Usage\n\n### Read DICOM File\n\n```cpp\ndcm::DicomFile dicom_file(\"path/to/some/dcm\");\nif (!dicom_file.Load()) {\n  std::cerr \u003c\u003c \"Failed to load the file.\" \u003c\u003c std::endl;\n  return;\n}\n```\n\nRead string:\n```cpp\nstd::string transfer_syntax_uid;\nif (dicom_file.GetString(dcm::tags::kTransferSyntaxUID, \u0026transfer_syntax_uid)) {\n  // ...\n}\n\nstd::string patient_name;\nif (dicom_file.GetString(dcm::tags::kPatientName, \u0026patient_name)) {\n  // ...\n}\n```\n\nOr:\n```cpp\nauto transfer_syntax_uid = dicom_file.GetString(dcm::tags::kTransferSyntaxUID);\nauto patient_name = dicom_file.GetString(dcm::tags::kPatientName);\n```\n\nRead integer:\n```cpp\nstd::uint16_t samples_per_pixel;\nif (dicom_file.GetUint16(dcm::tags::kSamplesPerPixel, \u0026samples_per_pixel)) {\n  // ...\n}\n```\n\nOr:\n```cpp\nauto samples_per_pixel = dicom_file.GetUint16(dcm::tags::kSamplesPerPixel, 0);\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsprinfall%2Fdcm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsprinfall%2Fdcm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsprinfall%2Fdcm/lists"}