#dicom #medical-imaging #pixel #data #object #decoding #multi-dimensional

bin+lib dicom-pixeldata

A high-level API for decoding DICOM objects into images and ndarrays

14 unstable releases (3 breaking)

0.8.0 Nov 6, 2024
0.7.0 Apr 25, 2024
0.2.2 Nov 21, 2023
0.2.0 Jul 23, 2023
0.1.0-rc.1 Nov 18, 2021

#255 in Images

Download history 303/week @ 2024-07-29 281/week @ 2024-08-05 622/week @ 2024-08-12 329/week @ 2024-08-19 363/week @ 2024-08-26 202/week @ 2024-09-02 241/week @ 2024-09-09 276/week @ 2024-09-16 373/week @ 2024-09-23 204/week @ 2024-09-30 189/week @ 2024-10-07 131/week @ 2024-10-14 162/week @ 2024-10-21 481/week @ 2024-10-28 551/week @ 2024-11-04 4116/week @ 2024-11-11

5,324 downloads per month
Used in 4 crates

MIT/Apache

2.5MB
42K SLoC

DICOM-rs pixeldata

CratesIO Documentation

This sub-project is directed at users of the DICOM-rs ecosystem. It provides constructs for handling DICOM pixel data and is responsible for decoding pixel data elements into images or multi-dimensional arrays.

This crate is part of the DICOM-rs project.

Binary

dicom-pixeldata also offers the dicom-transcode command-line tool (enable Cargo feature cli). You can use it to transcode a DICOM file to another transfer syntax, transforming pixel data along the way.

Transcode a DICOM file

Usage: dicom-transcode [OPTIONS] <--ts <TS>|--expl-vr-le|--impl-vr-le|--jpeg-baseline|--jpeg-ls-lossless|--jpeg-ls|--jpeg-xl-lossless|--jpeg-xl> <FILE>

Arguments:
  <FILE>  

Options:
  -o, --output <OUTPUT>        The output file (default is to change the extension to .new.dcm)
      --quality <QUALITY>      The encoding quality (from 0 to 100)
      --effort <EFFORT>        The encoding effort (from 0 to 100)
      --ts <TS>                Transcode to the Transfer Syntax indicated by UID
      --expl-vr-le             Transcode to Explicit VR Little Endian
      --impl-vr-le             Transcode to Implicit VR Little Endian
      --jpeg-baseline          Transcode to JPEG baseline (8-bit)
      --jpeg-ls-lossless       Transcode to JPEG-LS lossless
      --jpeg-ls                Transcode to JPEG-LS near-lossless
      --jpeg-xl-lossless       Transcode to JPEG XL lossless
      --jpeg-xl                Transcode to JPEG XL
      --retain-implementation  Retain the original implementation class UID and version name
  -v, --verbose                Verbose mode
  -h, --help                   Print help
  -V, --version                Print version

Dependencies

~6–21MB
~285K SLoC