libvips/python/try2.py
John Cupitt 6ba96b2333 fix hist normalisation
hist norm was broken due to the VipsStats width change
2012-02-28 12:05:25 +00:00

31 lines
480 B
Python
Executable File

#!/usr/bin/python
import logging
logging.basicConfig(level = logging.DEBUG)
from vips8 import vips
from gi.repository import Vips
Vips.cache_set_trace(True)
try:
a = vips.Image("/home/john/pics/babe.poop")
except vips.Error, e:
print e
a = vips.Image("/home/john/pics/babe.jpg")
b = vips.Image("/home/john/pics/xmaspank2b.jpg")
print 'a =', a
print 'b =', b
out = vips.call("add", a, b)
print 'out =', out
out = a.add(b)
print 'out =', out
out = a.linear(1, 2)