mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-02 02:43:06 +03:00
update comment
This commit is contained in:
parent
3a5f0201f5
commit
845f4dbfe1
|
@ -144,8 +144,11 @@ ImagingColorLUT3D_linear(Imaging imOut, Imaging imIn, int table_channels,
|
|||
int size1D, int size2D, int size3D,
|
||||
INT16* table)
|
||||
{
|
||||
/* The fractions are a way to avoid overflow.
|
||||
For every pixel, we interpolate 8 elements from the table:
|
||||
/* This float to int conversion doesn't have rounding
|
||||
error compensation (+ 0.5) for two reasons:
|
||||
1. As we don't hit the highest value,
|
||||
we can use one extra bit for precision.
|
||||
2. For every pixel, we interpolate 8 elements from the table:
|
||||
current and +1 for every dimension and they combinations.
|
||||
If we hit the upper cells from the table,
|
||||
+1 cells will be outside of the table.
|
||||
|
|
Loading…
Reference in New Issue
Block a user