callable luts still need to be put onto a substrate (#1791)
This commit is contained in:
parent
bcb6a5d66a
commit
ac84f45787
@ -411,7 +411,7 @@ class ImageItem(GraphicsObject):
|
|||||||
if self.image.ndim == 2 or self.image.shape[2] == 1:
|
if self.image.ndim == 2 or self.image.shape[2] == 1:
|
||||||
self.lut = self._ensure_proper_substrate(self.lut, self._xp)
|
self.lut = self._ensure_proper_substrate(self.lut, self._xp)
|
||||||
if isinstance(self.lut, Callable):
|
if isinstance(self.lut, Callable):
|
||||||
lut = self.lut(self.image)
|
lut = self._ensure_proper_substrate(self.lut(self.image), self._xp)
|
||||||
else:
|
else:
|
||||||
lut = self.lut
|
lut = self.lut
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user