imageio.plugins.pydicom.PydicomPlugin.lut_dense#
- PydicomPlugin.lut_dense(colormap: ArrayLike, first_mapped: int = 0) None[source]#
Set the given colormap as the image’s LUT.
- Parameters:
- colormapArrayLike
RGB(A) colormap as a 2D array of shape
(N, 3)or(N, 4)with dtypeuint8oruint16(up to2**16entries).- first_mappedint
Offset subtracted from stored pixel values before indexing the LUT.