lenna_core 0.1.6

Lenna is a library for image processing algorithms and apps.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from PIL import Image
from numpy import asarray
import lenna_core
print(lenna_core.resize.description())

image = Image.open('lenna.png')
data = asarray(image)
print(data.shape)

config = lenna_core.resize.default_config()
config['width'] = 200

print(config)
processed = lenna_core.resize.process(config, data)
print(processed.shape)
Image.fromarray(processed).save('lenna_test_out.png')