Skip to content

🕵️‍♂️ CLI tool that anonymizes DICOM files using dummy data

License

Notifications You must be signed in to change notification settings

amoerie/dcmanonymize

Repository files navigation

🕵️‍ DICOM ANONYMIZE

Build Status Codecov Nuget (with prereleases)

Anonymizes DICOM files on your disk.

Features

  • Modified implementation of DICOM Basic Security Profile
  • (Optionally) blanks rectangles in the pixel data
  • Generates unique accession numbers, patient names, physician names, birth dates, UIDs, etc.
  • Retains patient > study > series > image structure across many files
  • Retains patient data consistency, DICOM file UID references, etc across many files
  • Fast
  • Simple

Installation

Recommended

    dotnet tool install dcmanonymize --global

Alternative

Download from latest Github release

Usage

    dcmanonymize file1.dcm file2.dcm file3.dcm

or using piped input

    dcmfind | dcmanonymize

See https://github.com/amoerie/dcmfind

Options

  value pos. 0         Anonymize these DICOM files. When missing, this option will be read from the piped input.

  -p, --parallelism    (Default: 8) Process this many files in parallel

  --blank-rectangle    One or more rectangular regions to blank in the pixel data. Provide values in the shape (x1,y1)->(x2,y2), e.g. (0,0)->(10,10)

  --help               Display this help screen.

  --version            Display version information.

About

🕵️‍♂️ CLI tool that anonymizes DICOM files using dummy data

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published