dicom-pixeldata

Crates.iodicom-pixeldata
lib.rsdicom-pixeldata
version0.8.0
sourcesrc
created_at2021-11-18 21:32:28.654221
updated_at2024-11-06 11:13:30.719568
descriptionA high-level API for decoding DICOM objects into images and ndarrays
homepage
repositoryhttps://github.com/Enet4/dicom-rs
max_upload_size
id484190
size275,429
Eduardo Pinho (Enet4)

documentation

README

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
Commit count: 2258

cargo fmt