Remove unnecessary LUT apply processing step in "colour.LUT3D.invert" method.
Thanks to for spotting that one!
@@ -2270,14 +2270,9 @@ class LUT3D(AbstractLUT):
[target_size, target_size, target_size, 3]
)
- # "LUT_i" is the final inverse LUT generated by applying "LUT_q" on
- # an identity LUT at the target size.
- LUT_i = LUT3D(size=target_size, domain=LUT.domain)
- LUT_i.table = LUT_q.apply(LUT_i.table, interpolator=interpolator)
+ LUT_q.name = f"{self.name} - Inverse"
- LUT_i.name = f"{self.name} - Inverse"
-
- return LUT_i
+ return LUT_q
def apply(self, RGB: ArrayLike, **kwargs: Any) -> NDArray:
"""
