Cargo Features

[dependencies]
dicom-pixeldata = { version = "0.7.0", default-features = false, features = ["ndarray", "image", "native", "jpeg", "rle", "openjpeg-sys", "openjp2", "gdcm", "rayon", "cli"] }
default = native, rayon

These default features are set whenever dicom-pixeldata is added without default-features = false somewhere in the dependency tree.

ndarray

Enables ndarray

image

Enables image

native default = jpeg, rle

Rust native image codec implementations

Enables native of dicom-transfer-syntax-registry

jpeg native

native JPEG codec implementation

Enables jpeg of dicom-transfer-syntax-registry

rle native

native RLE lossless codec implementation

Enables rle of dicom-transfer-syntax-registry

openjpeg-sys

JPEG 2000 decoding via OpenJPEG static linking

Enables openjpeg-sys of dicom-transfer-syntax-registry

openjp2

JPEG 2000 decoding via Rust port of OpenJPEG

Enables openjp2 of dicom-transfer-syntax-registry

gdcm = gdcm-rs

replace pixel data decoding to use GDCM

rayon default

use Rayon for image decoding

Enables rayon, rayon of dicom-transfer-syntax-registry and optional image

cli

enable command line tools

Enables clap and tracing-subscriber

Required by the dicom-transcode binary

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

gdcm-rs gdcm?