Commit Graph

167 Commits

Author SHA1 Message Date
John Cupitt
d25beeddac remove wrap7 class
and pyvips8 now knows about deprecated args and ops
2014-11-14 22:41:05 +00:00
John Cupitt
b40bad04bb hide deprecated args to operations in python 2014-11-14 12:19:25 +00:00
John Cupitt
865fd9da5e more docstring updates 2014-11-13 20:07:12 +00:00
John Cupitt
6a25b04974 better docstrings
you now see:

class_method(cls, *args, **kwargs) method of gi.types.GObjectMeta
instance
    make a black image
    usage:
       out = Vips.Image.black(width, height, bands = gint)

    where:
       out        - Output image, VipsImage

    required parameters:
       width      - Image width in pixels, gint
       height     - Image height in pixels, gint

    optional parameters:
       bands      - Number of bands in image, gint
2014-11-13 14:37:59 +00:00
John Cupitt
f8200d67a8 tiny hacks 2014-11-12 15:03:58 +00:00
John Cupitt
326854843a tinkering with pyvips8 docs 2014-11-11 14:59:06 +00:00
John Cupitt
70e470b0a5 fiddle with pyvips8 docstrings 2014-11-10 22:37:16 +00:00
John Cupitt
bbf49be063 cleanup and bump to 7.42 2014-11-03 12:01:53 +00:00
John Cupitt
2acd185ee2 cleanups 2014-10-16 11:22:03 +01:00
John Cupitt
a8f4ed7871 fix up ifthenelse and set_value 2014-10-16 10:58:54 +01:00
John Cupitt
fc4c8b9cd7 constants as images working 2014-10-16 10:43:29 +01:00
John Cupitt
10b9374cb9 start adding auto image constants 2014-10-15 14:56:44 +01:00
John Cupitt
b2de6d983c add build rules for new py binding 2014-10-14 14:56:49 +01:00
John Cupitt
e1ed7f28d5 more Vips.py cleanups 2014-10-14 14:28:59 +01:00
John Cupitt
9e272ce78a use @classmethod decorators 2014-10-14 12:39:45 +01:00
John Cupitt
6fb967ac3b more py tweaks
fast startup, reorganised python/
2014-10-14 10:17:33 +01:00
John Cupitt
bb360ae410 use more overrides 2014-10-13 15:06:35 +01:00
John Cupitt
6e37d3a549 oops 2014-10-13 14:21:47 +01:00
John Cupitt
a0988ffc31 start using overrides in Python 2014-10-13 14:21:05 +01:00
John Cupitt
23c04fcfee update tests again 2014-10-05 09:28:17 +01:00
John Cupitt
2e2cc9ea7a add get_value()
and set_value(), do auto blob/unblob
2014-10-01 14:59:23 +01:00
John Cupitt
3067fee56f add ICC tests 2014-10-01 12:28:25 +01:00
John Cupitt
9112e7d525 warn on profile save data loss 2014-09-30 21:28:16 +01:00
John Cupitt
d9ee892077 conversion tests done 2014-09-29 21:40:08 +01:00
John Cupitt
86910e2e72 oops 2014-09-29 16:29:32 +01:00
John Cupitt
154796a8dc rename VIPS_ANGLE_0 as VIPS_ANGLE_D0
and other similar cases

VIPS_ANGLE_0 becomes Vips.Angle.0 in Python, which is very inconvenient, so we
rename ... the D stands for degrees, I think
2014-09-29 13:56:55 +01:00
John Cupitt
d46f08c314 more tests 2014-09-28 18:08:53 +01:00
John Cupitt
fd8dbdb08c more colour tests 2014-09-27 12:29:23 +01:00
John Cupitt
e458365970 use vips__substitute() more
should probably remove vips_snprintf() from a few more places
2014-09-27 11:37:28 +01:00
John Cupitt
61bae5eeff more tests 2014-09-26 15:01:56 +01:00
John Cupitt
7d19abbae3 fix vips_region_paint() for float types 2014-09-25 17:40:41 +01:00
John Cupitt
33c2458233 more tests 2014-09-25 14:00:17 +01:00
John Cupitt
7915308155 test for bandrank and bandmean 2014-09-25 09:58:51 +01:00
John Cupitt
b402bb173f test pyvips bandjoin 2014-09-24 21:57:56 +01:00
John Cupitt
fd9300750d test extra band handling in dE 2014-09-24 14:52:24 +01:00
John Cupitt
0a327af138 fixed extra band handling, again 2014-09-24 14:46:03 +01:00
John Cupitt
06366cf75b fix up deCMC again 2014-09-24 13:16:38 +01:00
John Cupitt
d7083d7a03 make arrayimage ref/unref 2014-09-23 14:38:46 +01:00
John Cupitt
2cfffaa54e start conversion tests 2014-09-22 13:50:09 +01:00
John Cupitt
5ebe12273a more of colour unittest done 2014-09-18 15:04:12 +01:00
John Cupitt
c1b9665052 start colour unit test 2014-09-18 08:36:37 +01:00
John Cupitt
ef847de996 done arithmetic testsuite
all passes, woo
2014-09-17 12:03:06 +01:00
John Cupitt
8b9dc20684 add relational overloads to python
and tests
2014-09-17 09:39:57 +01:00
John Cupitt
de594151a5 rename NOTEQUAL as NOTEQ
since <= is LESSEQ

python has some relational overloads now
2014-09-16 17:25:20 +01:00
John Cupitt
65a062e4a1 more self-tests
started on relational overloads
2014-09-16 14:53:49 +01:00
John Cupitt
e8f5c606df add log and trig
to selftest and vips8 python
2014-09-16 12:47:00 +01:00
John Cupitt
4968b9edaf fix optional output args in python
oh arg we have to return a dict

also, test hough circle and line, and add maxpos/minpos
2014-09-16 10:47:24 +01:00
John Cupitt
1c1f7a205a more optional output arg support 2014-09-16 08:36:29 +01:00
John Cupitt
c20c85b474 getting ready for hough test 2014-09-15 14:55:08 +01:00
John Cupitt
c4a3e9a1a0 add VIPS_ARGUMENT_MODIFY
a flag for arguments meaning the operator will modify an input

the python binding uses this to take a copy of the arg before calling
2014-09-15 14:47:34 +01:00
John Cupitt
a82fa01781 more tests 2014-09-15 13:58:31 +01:00
John Cupitt
24ff40e9be find_indexed wasn't banning complex images 2014-09-15 13:25:04 +01:00
John Cupitt
133e2f94e9 fix linear with mismatched vectors
we had:

	$ vips linear sarto_ng.v x.v "1 2 3" "4"
	$ vipsheader x.v
	x.v: 1865x2556 float, 1 band, b-w
	$ vips linear sarto_ng.v x.v "1" "4 5 6"
	$ vipsheader x.v
	x.v: 1865x2556 float, 3 bands, b-w

there was a typo in linear.c
2014-09-15 12:41:05 +01:00
John Cupitt
12d623fa25 fix hist_find crash with non-u8/u16 input 2014-09-15 11:42:21 +01:00
John Cupitt
cc599844d2 fix getpoint(0,0)
and add more tests
2014-09-15 09:06:36 +01:00
John Cupitt
876a7538af more tests 2014-09-14 21:30:27 +01:00
John Cupitt
d14a6ea2c7 test the last couple of overloads
they are actually defined in terms of other overloads, but test them
anyway
2014-09-14 13:16:36 +01:00
John Cupitt
d0f7efcd1e self-test of all overloads done
woo and it passes
2014-09-14 11:51:05 +01:00
John Cupitt
2c1c9b94fe abs unittest done 2014-09-13 19:49:03 +01:00
John Cupitt
ce8d7e5789 tweaks 2014-09-13 18:03:25 +01:00
John Cupitt
8a1397b91f small python fixes 2014-09-13 17:24:59 +01:00
John Cupitt
12304166ce basic arith tests done
small improvements to python binding
2014-09-13 09:08:16 +01:00
John Cupitt
666a0a6f83 fix avg of complex
oops, can't avg mod2, duh
2014-09-12 14:01:20 +01:00
John Cupitt
62c73d5109 small bugs, start unit tests 2014-09-11 21:54:52 +01:00
John Cupitt
9a2c38e107 finish python vips8 2014-09-09 14:19:51 +01:00
John Cupitt
4c51e6aa0b draw and hough working in Python 2014-09-09 13:19:44 +01:00
John Cupitt
84e55b86e6 added class methods to python
we now have Vips.Image.black(w, h), woo
2014-09-08 14:53:37 +01:00
John Cupitt
a26df2a8a9 get ready for class methods 2014-09-07 09:36:34 +01:00
John Cupitt
6f8b5c6745 bring the rest of the API into python 2014-09-05 23:18:16 +01:00
John Cupitt
751982d9f0 add make vips matrix from python array 2014-09-05 14:53:05 +01:00
John Cupitt
92570b119c python new_from_memory()/write_to_memory() done 2014-09-05 12:54:07 +01:00
John Cupitt
22e075d05a add const to vipsblob 2014-09-04 11:23:37 +01:00
John Cupitt
eca5ed12de buffer load/save in python works 2014-09-03 21:34:26 +01:00
John Cupitt
8a976a1e73 auto un-VipsBlob-ification 2014-09-03 17:54:36 +01:00
John Cupitt
8f39f8ba3b start unboxing returns from Python 2014-09-03 14:59:35 +01:00
John Cupitt
5a0a98c922 sync 2014-09-02 14:57:37 +01:00
John Cupitt
6779e141a7 add Python .write_to_buffer()
now we need to be able to get the bytes from a VipsBlob
2014-09-01 17:44:33 +01:00
John Cupitt
804a2e6fca finish python operator overloads 2014-09-01 15:28:55 +01:00
John Cupitt
f03dc3754f start adding python operator overloads 2014-09-01 11:32:17 +01:00
John Cupitt
e6dba689ce auto array-ize scalars in python 2014-09-01 09:41:14 +01:00
John Cupitt
8a6a846452 all python assignment in one place
ready for type conversions to go in
2014-08-31 22:51:04 +01:00
John Cupitt
3b43bd76f3 set options in filenames in vips8 Python
now supports "fred.jpg[Q=90]" in Vips.Image.new_from_file() etc.
2014-08-31 21:16:39 +01:00
John Cupitt
a370e5003e vips array types are more binding-friendly
this all works now:

```python
from gi.repository import Vips

a = Vips.ArrayDouble.new([1,2,3])
a.get()

a = Vips.ArrayInt.new([1,2,3])
a.get()

a = Vips.ArrayImage.new([c, d, e])
a.get()
```
2014-08-31 10:41:53 +01:00
John Cupitt
42dac9209a GBoxed almost working 2014-08-29 18:14:22 +01:00
John Cupitt
2ba3a1a674 fix up the vips8 python binding 2014-08-29 17:33:14 +01:00
John Cupitt
2e4ca3211a start fixing up the python binding 2014-08-29 13:51:58 +01:00
Benjamin Gilbert
8cc76a6ba3 Update address for Free Software Foundation
Also update LGPLv2.1 license text from the copy currently on the GNU
website.
2013-03-07 00:40:19 -05:00
John Cupitt
0274a36863 get the vips8 python binding working again 2012-12-08 05:27:57 +00:00
John Cupitt
3540e3ef09 support :level,associated in the vips7 openslide
the vips7 stub for openslide now supports :level,associated mode
options, eg:

$ header CMU-2.svs
CMU-2.svs: 19500x7615 uchar, 4 bands, rgb VipsImage (0x236a060)
$ header CMU-2.svs:2
CMU-2.svs:2: 4875x1903 uchar, 4 bands, rgb VipsImage (0x244c060)
$ header CMU-2.svs:,label
CMU-2.svs:,label: 387x463 uchar, 4 bands, rgb VipsImage (0xa2d060)
$ header CMU-2.svs:2,label
CMU-2.svs:2,label: 387x463 uchar, 4 bands, rgb VipsImage (0x1b23060)
2012-04-11 12:48:41 +01:00
John Cupitt
6ba96b2333 fix hist normalisation
hist norm was broken due to the VipsStats width change
2012-02-28 12:05:25 +00:00
John Cupitt
1e3edd7b1e mvoe vips7 wrap back to vips7 names
improve cache trace formatting too
2012-01-06 14:56:24 +00:00
John Cupitt
d5034b0485 add --vips-cache-trace
and rename cache-print as cache-dump
2012-01-06 09:36:04 +00:00
John Cupitt
c190c8e660 new Python binding
just a test thing for now, but seems to work OK

some small tweaks to help gobject-introspction
2012-01-05 13:26:25 +00:00
John Cupitt
2d12a91173 generic vips_call() is working 2012-01-04 14:38:22 +00:00
John Cupitt
a6dc0b6fea operation cache works from Python 2012-01-04 13:50:10 +00:00
John Cupitt
acd8ce277e just the cache to fix now 2012-01-02 15:50:41 +00:00
John Cupitt
405b89b000 get goi try.py going 2012-01-02 11:06:04 +00:00
John Cupitt
0983b50905 Merge remote-tracking branch 'origin/gobject-introspection' into goi-merge
Conflicts:
	TODO
	libvips/arithmetic/im_recomb.c
	libvips/arithmetic/im_stats.c
	libvips/deprecated/im_measure.c
	libvips/include/vips/header.h
	libvips/include/vips/image.h
	libvips/include/vips/object.h
	libvips/iofuncs/header.c
	libvips/iofuncs/image.c
	libvips/iofuncs/object.c
2011-12-24 17:36:55 +00:00
John Cupitt
39e92f8f1b some work on the new Python binding 2011-12-23 15:20:54 +00:00
John Cupitt
37ad55d9b3 gi test prog
small gi vips test prog
2011-06-22 13:17:16 +01:00