Commit Graph

21 Commits

Author SHA1 Message Date
John Cupitt 2ea5c5f7e5 make python bandrank() work like bandjoin()
we had a custom wrapper for bandjoin(), but bandrank(), a function with
an almost identical interface, did not ... this was confusing

bandrank() now has a custom wrapper too ... this breaks API
unfortunately, but hopefully very few people were using this thing and
it's better to make this change as soon as possible
2016-03-01 12:12:51 +00:00
John Cupitt e81900b187 bandjoin is just an instance function
we had both a class member bandjoin, and an instance member

Vips.Image.bandjoin([i1, i2, i3..])
i1.ibandjoin([i2, i3..])

this was confusing and annoying ... get rid of the class one and just
use bandjoin everywhere, so this is now the way to do it:

i1.bandjoin([i2, i3..])
2016-01-04 14:18:10 +00:00
John Cupitt ff1dd39432 more tests for arrayjoin 2015-12-12 12:38:29 +00:00
John Cupitt 5916e25c31 rename python bandjoin as ibandjoin
oh argh class and instance methods are in the same namespace, so we have
to rename the instance one as ibandjoin

also, start adding a test for arrayjoin
2015-12-12 12:29:20 +00:00
John Cupitt 295b18585a python uses bandjoin_const when possible
added a test case, speedup seems worthwhile
2015-11-07 20:34:56 +00:00
John Cupitt e107dd11c0 test band fold/unfold factors 2015-06-11 12:49:11 +01:00
John Cupitt e83a3bbfd1 add a test for byteswap() 2015-06-07 16:24:52 +01:00
John Cupitt e9720afb18 add vips_bandfold()/vips_bandunfold()
was part of vips_copy(), but it was very ugly there
2015-06-05 14:52:05 +01:00
John Cupitt e84b97038f add mono image -> many band column
or row ... handy for loading LUT images from CSV files
2015-06-04 16:02:41 +01:00
John Cupitt 36331739ab add bandand() bandor() bandeor() to py
convenience funcs
2015-05-26 10:32:15 +01:00
John Cupitt ec52d1b922 change vips_flatten() alpha rules
now match vips_premultiply()

add tests

foreign knows about new logic
2015-05-09 12:10:42 +01:00
John Cupitt 5ccb5ad70d add () overload to python
for vips_getpoint()
2015-03-01 12:15:48 +00:00
John Cupitt 5d912fdbbb add [] overload to python
index and slice image bands
2015-02-28 16:53:06 +00:00
John Cupitt cdeec4a912 small tweaks 2015-02-26 13:15:53 +00:00
John Cupitt 640477dc62 better python imageize
sets interpretation as well ... was causing problems with jpg save
colour transforms
2015-02-10 14:08:37 +00:00
John Cupitt e429772ae8 turn on leak testing in python test suite 2015-02-02 11:36:29 +00:00
John Cupitt ddb43172f3 use new pyvips8 array constant syntax
also add median filter convenience function
2015-01-29 16:41:11 +00:00
Benjamin Gilbert 5ed7a24f0c Drop dependency on Python "future" package
It's not widely packaged in Linux distributions, and none of the VIPS
Python code requires Python 3 semantics from any of the builtins future
was replacing.
2014-12-26 21:10:55 -05:00
John Cupitt d62bec6ecc bug in copy fallback
for bandmean, rank and bool on one band images.
2014-12-16 14:14:32 +00:00
John Cupitt c3102b15bb add python3 support 2014-12-10 17:02:51 +00:00
John Cupitt ee4416040b make a test suite
put the python and non-nip2 bits of the nip2 suite together

some test images too
2014-11-19 15:01:28 +00:00