5,332
edits
Line 385: | Line 385: | ||
===Pillow (PIL)=== | ===Pillow (PIL)=== | ||
<code>pip install pillow</code> | <code>pip install pillow</code> | ||
<syntaxhighlight lang="python"> | <syntaxhighlight lang="python"> | ||
from PIL import Image | from PIL import Image, ImageOps | ||
from | from | ||
Line 393: | Line 394: | ||
img = np.array(img) | img = np.array(img) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* <code>flip()</code> - flips across y axis | |||
* <code>mirror()</code> - flips across x axis | * <code>ImageOps.flip()</code> - flips across y axis | ||
* <code>ImageOps.mirror()</code> - flips across x axis | |||
===Bilinear Interpolation=== | ===Bilinear Interpolation=== |