You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
214 B
Python

orig_file = '/tmp/ceny.png'
new_file = '/tmp/new.png'
import lib
pic = lib.Picture.load(orig_file)
pic.show()
import nn
Interp = nn.Nearest()
pix = Interp.interpolate(pic, 200, 200)
pix.show()
pix.save(new_file)