callable luts still need to be put onto a substrate (#1791)

This commit is contained in:
Martin Chase 2021-05-20 07:22:49 -07:00 committed by GitHub
parent bcb6a5d66a
commit ac84f45787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -411,7 +411,7 @@ class ImageItem(GraphicsObject):
if self.image.ndim == 2 or self.image.shape[2] == 1:
self.lut = self._ensure_proper_substrate(self.lut, self._xp)
if isinstance(self.lut, Callable):
lut = self.lut(self.image)
lut = self._ensure_proper_substrate(self.lut(self.image), self._xp)
else:
lut = self.lut
else: