#dicom #image-conversion #command-line-tool #image

app dicom-toimage

A CLI tool for converting DICOM files into general purpose image files

10 unstable releases (3 breaking)

0.8.0 Nov 6, 2024
0.7.0 Apr 25, 2024
0.2.2 Oct 31, 2023
0.2.0 Jul 23, 2023
0.1.1 Jul 19, 2022

#2598 in Command line utilities

Download history 115/week @ 2024-08-13 7/week @ 2024-09-10 10/week @ 2024-09-17 25/week @ 2024-09-24 3/week @ 2024-10-01 2/week @ 2024-10-08 2/week @ 2024-10-29 130/week @ 2024-11-05 3/week @ 2024-11-12 7/week @ 2024-11-19

142 downloads per month

MIT/Apache

2.5MB
37K SLoC

DICOM-rs toimage

CratesIO Documentation

A command line utility for converting DICOM image files into general purpose image files (e.g. PNG).

This tool is part of the DICOM-rs project.

Usage

dicom-toimage [OPTIONS] <FILES>...

Arguments:
  <FILES>...  Paths to the DICOM files (or directories) to convert

Options:
  -r, --recursive             Parse directory recursively
  -o, --out <OUTPUT>          Path to the output image, including file extension (replaces input extension with `.png` by default)
  -d, --outdir <OUTDIR>       Path to the output directory in bulk conversion mode, conflicts with `output`
  -e, --ext <EXT>             Extension when converting multiple files (default is to replace input extension with `.png`)
  -F, --frame <FRAME_NUMBER>  Frame number (0-indexed) [default: 0]
      --8bit                  Force output bit depth to 8 bits per sample
      --16bit                 Force output bit depth to 16 bits per sample
      --unwrap                Output the raw pixel data instead of decoding it
      --fail-first            Stop on the first failed conversion
  -v, --verbose               Print more information about the image and the output file
  -h, --help                  Print help
  -V, --version               Print version

Dependencies

~34MB
~567K SLoC