Update various variable names.
@@ -2137,21 +2137,21 @@ class LUT3D(AbstractLUT):
# The intent is to smooth the inverse LUT's table by increasing the
# resolution of the KDTree.
LUT_t = LUT3D(size=target_size, domain=LUT.domain)
- indexes = LUT_t.table
+ table = LUT_t.table
LUT_t.table = LUT.apply(LUT_t.table)
tree = cKDTree(LUT_t.table.reshape(-1, 3))
# "LUT_q" stores the indexes of the KDTree query, i.e. the closest
- # entry of "LUT_t" for any searched indexes.
+ # entry of "LUT_t" for any searched table sample.
LUT_q = LUT3D(size=target_size, domain=LUT.domain)
- query = tree.query(indexes, query_size, n_jobs=-1)[-1]
+ query = tree.query(table, query_size, n_jobs=-1)[-1]
if query_size == 1:
- LUT_q.table = indexes.reshape(-1, 3)[query].reshape(
+ LUT_q.table = table.reshape(-1, 3)[query].reshape(
[target_size, target_size, target_size, 3])
else:
LUT_q.table = np.mean(
- indexes.reshape(-1, 3)[query],
+ table.reshape(-1, 3)[query],
axis=-2).reshape([target_size, target_size, target_size, 3])
# "LUT_i" is the final inverse LUT generated by applying "LUT_q" on
