#dicom #pixel-data

bin+lib dicom-pixeldata

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

18 releases

0.9.1 Mar 28, 2026
0.9.0 Oct 4, 2025
0.8.2 Jul 27, 2025
0.8.1 Jan 16, 2025
0.1.0-rc.1 Nov 18, 2021

#312 in Images

Download history 5200/week @ 2025-12-28 10994/week @ 2026-01-04 11052/week @ 2026-01-11 18748/week @ 2026-01-18 17470/week @ 2026-01-25 31366/week @ 2026-02-01 54077/week @ 2026-02-08 61089/week @ 2026-02-15 83587/week @ 2026-02-22 89683/week @ 2026-03-01 108100/week @ 2026-03-08 66863/week @ 2026-03-15 47964/week @ 2026-03-22 51397/week @ 2026-03-29 71350/week @ 2026-04-05 60871/week @ 2026-04-12

237,338 downloads per month
Used in 5 crates (4 directly)

MIT/Apache

3MB
47K 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

~10–22MB
~332K SLoC