Image.LUT#
- Image.LUT(lut: Any, colororder: str | dict[str, Any] | None = None) Self[source]#
Apply lookup table
- Parameters:
- Returns:
transformed image
- Return type:
For a greyscale image the LUT can be:
(256,)
(256,N) in which case the resulting image has
Nplanes created by applying the I’th column of the LUT to the input image
For a color image the LUT can be:
(256,) and applied to every plane, or
(256,N) where the LUT columns are applied to the
Nplanes of the input image.
Examples
Note
Works only for
uint8andint8image and LUT.References
Important
Uses OpenCV function
cv2.LUTwhich accepts multiple-channel, CV_8U images.See also