pydicom.pixels.apply_presentation_lut

pydicom.pixels.apply_presentation_lut(arr: np.ndarray, ds: Dataset) np.ndarray[source]

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

Parameters:
Returns:

If a Presentation LUT Module is present in ds then returns an array of P-values, otherwise returns arr unchanged.

Return type:

numpy.ndarray

Notes

If the dataset the Pixel Data originated from contains a Modality LUT and/or VOI LUT then they must be applied before the Presentation LUT.