Pixel Data Processing (pydicom.pixels.processing)

Functions for applying image processing to pixel data.

apply_color_lut(arr[, ds, palette])

Apply a color palette lookup table to arr.

apply_icc_profile(arr[, ds, transform, ...])

Apply an ICC Profile to arr, either from the dataset ds or an existing Pillow color transformation object transform.

apply_modality_lut(arr, ds)

Apply a modality lookup table or rescale operation to arr.

apply_presentation_lut(arr, ds)

Apply a Presentation LUT to arr and return the P-values.

apply_rescale(arr, ds)

Apply a modality lookup table or rescale operation to arr.

apply_voi_lut(arr, ds[, index, prefer_lut])

Apply a VOI lookup table or windowing operation to arr.

apply_voi(arr, ds[, index])

Apply a VOI lookup table to arr.

apply_windowing(arr, ds[, index])

Apply a windowing operation to arr.

convert_color_space(arr, current, desired[, ...])

Convert the image(s) in arr from one color space to another.

create_icc_transform([ds, icc_profile, ...])

Return a Pillow color transformation object from either the dataset ds or an ICC profile icc_profile.