Commit Graph

377 Commits

Author SHA1 Message Date
John Cupitt 757d031005 always check the return of vips_image_pipeline()
For consistency. Although I don't think it can meaningfully fail.
2021-06-29 16:12:17 +01:00
John Cupitt 2ce79d76a0 output double histogranms for large images
since images with more than 2*32 pixels will overflow a uint accumulator

thanks @erdmann

see https://github.com/libvips/libvips/issues/1976
2021-02-01 15:51:31 +00:00
John Cupitt cba371a9ba add a note about atan2() use in complex.c
see https://github.com/libvips/libvips/pull/1728
2020-07-20 13:34:41 +01:00
Kleis Auke Wolthuizen 230d2acfea Disable IM_* environment variables when --disable-deprecated 2020-06-18 14:15:37 +02:00
John Cupitt 1ff9800958 improve hough_circle docs
we were not actually saying what the output axes represented

see https://github.com/libvips/ruby-vips/issues/237
2020-06-15 12:40:43 +01:00
John Cupitt 7b26bd1fdf add more "const" decls 2020-03-05 13:41:41 +00:00
John Cupitt 22a1150cb6 Merge branch 'improve-file-formats' of https://github.com/angelmixu/libvips into angelmixu-improve-file-formats 2019-12-07 17:10:03 +00:00
John Cupitt a50405c1f7 fix some run-time errors from clang
Travis is now running with some amount of run-time checking enabled and
it spotted a couple of harmless things.
2019-12-05 14:14:27 +00:00
Angel Sánchez da8ae29abe fix build for VS2019 2019-11-13 12:37:22 +01:00
John Cupitt 0b3ece5b42 new constants code now passes all tests 2019-08-21 16:36:18 +01:00
John Cupitt ed2054dbbc revise arithmetic with const
there's a problem with out of bounds values, for example:

	vips relational_const k2.jpg x.v equal 1000

actually finds pixels == 255, since 1000 is saturated converted to 255
before the test starts.

This patch reworks arithmetic against const values to fix this.
2019-08-21 10:35:48 +01:00
John Cupitt d6c8879f3d NOte min size for find_trim
See https://github.com/libvips/libvips/issues/1392
2019-08-08 14:55:19 +01:00
John Cupitt 834acad825 fix << on signed int warnings
<< on a negative number is undefined behaviour in C, and will trigger
fuzzer warnings.
2019-08-02 05:35:18 +01:00
John Cupitt 37a3a6322c remove 256 band limit from arithmetic.c
there was a fixed-size array in vips__bandup()

see https://github.com/libvips/libvips/issues/1335
2019-06-12 09:22:30 +01:00
Crashoz 9967ed2455
Fixed vips_rect
Fixed typo that broke function vips_rect
2019-03-22 15:43:10 +01:00
John Cupitt 52242cd70d move orc init out of abs class init 2019-02-22 09:48:38 +00:00
John Cupitt 870610af4e reduce stack usage to help musl
don't allocate a pointer array on the stack in arithmetic.c

see f3ef6e52ea
2018-09-04 08:46:37 +01:00
John Cupitt f3ef6e52ea bump max input images for sum
was only 64
2018-08-16 15:23:24 +01:00
Dimitri Bouron 725d39e691 Fix missing area unref in getpoint()
Signed-off-by: Dimitri Bouron <d.bouron@criteo.com>
2018-08-14 14:19:01 +02:00
John Cupitt e9aaedc60a fix some compiler warnings
from the msvc patch
2018-06-01 19:44:43 +01:00
John Cupitt b085908558 remove vips7 stuff from API
You must now include vips7 support explicitly with

	#include <vips/vips7compat.h>

in your code just after including `vips.h`.

The old vips7 names, such as `Rect`, were starting to cause problems
with other packages like opencv.
2018-05-16 15:08:21 +01:00
John Cupitt ce1f236c4d another 2x faster on hough_line 2018-02-02 09:12:31 +00:00
John Cupitt 59afb52f7c hough_circle 20% speedup 2018-02-02 07:39:10 +00:00
John Cupitt 78db92e60e better hough_line
2x faster, better parameter space, but breaks compat :( sorry
2018-02-01 20:41:14 +00:00
John Cupitt 0363ac6ab9 fix indexed hist combine mode
it now tracks which bins have been inited, so min works
2017-11-25 21:23:10 +00:00
Lovell Fuller bb58685d1c Use ~10x faster sqrt instead of pow when y=0.5 2017-11-17 20:24:28 +00:00
John Cupitt 4ea743f5e6 add combine mode to find_indexed 2017-11-03 16:36:09 +00:00
John Cupitt cb37089c9b seems to work 2017-11-01 13:16:36 +00:00
John Cupitt 3a43fd4057 vectorize 3 band case
needs to test for gcc though
2017-10-01 19:07:02 +01:00
Alistair Thomas 9303ee2511 Update GObject introspection annotations for /libvips/arithmetic directory 2017-09-20 10:36:21 +01:00
John Cupitt 0193e23c64 only flatten in find_trim if there is an alpha
oops, flatten always flattens, it doesn't check for alpha first

see https://github.com/jcupitt/libvips/issues/670
2017-09-18 14:48:15 +01:00
John Cupitt 0d93f9f9dd note flatten before getpoint for find_trim
add note on flatten before getpoint

see https://github.com/jcupitt/libvips/issues/670
2017-09-18 12:56:35 +01:00
John Cupitt cfe907deb3 missing bandor in find_trim
it cropped too aggressively on images with highly-coloured edges

see https://github.com/jcupitt/libvips/issues/670
2017-09-18 12:44:19 +01:00
Alistair Thomas d289b61fdc Improve the gobject introspection annotations for Image.avg () 2017-09-17 22:51:14 +01:00
John Cupitt 2a9c522de8 Merge branch 'master' into add-find-trim 2017-07-26 16:45:27 +01:00
John Cupitt 18595ca0dd find_trim works for all bg images
width/height == 0 if whole image is bg
2017-07-26 15:13:12 +01:00
John Cupitt 34970d0cf2 remove some casts
and use VIPS_AREA instead
2017-07-26 14:57:27 +01:00
John Cupitt 254e6a8b2a flatten alpha, bg default adjusts
bg default adjusts to image type, thanks Kleis
2017-07-26 14:56:28 +01:00
John Cupitt 6359c92c01 polish, add test for find_trim 2017-07-26 10:43:28 +01:00
John Cupitt effc1d53d0 works 2017-07-25 19:00:21 +01:00
John Cupitt 1e7541bfb8 add find_trim
compiles, not yet working
2017-07-25 14:52:45 +01:00
John Cupitt cbd9fad040 fix a few more problems with input args
a few other operators were modifying input args and messing up caching
2017-05-29 18:58:24 +01:00
John Cupitt 0a5375b6cd Merge branch 'master' into remove-seq-stalling 2017-03-15 12:26:44 +00:00
John Cupitt 51f96ce9af argh revert the arg order change
we need to patch bindings instead
2017-03-13 08:24:06 +00:00
John Cupitt 507212e3d8 Merge branch 'master' into remove-seq-stalling 2017-03-08 09:30:48 +00:00
John Cupitt 205fb817e8 change three C API funcs to match Python/C++/CLI
vips_math2_const(), vips_boolean_const() and vips_relational_const() had
the const and oper args reversed from the Python/CLI/C++ API

add something to check for arg priority conflicts and resolve the
conflicts it found
2017-03-07 14:28:31 +00:00
John Cupitt 362c7efdfc argh reapply seq removal 2017-03-06 11:55:38 +00:00
John Cupitt 3d961653a9 use VIPS_MAX_COORD in a few more places
we had RANGE defined in each file before
2017-03-01 11:29:39 +00:00
John Cupitt e6b20cbd0f Revert "remove stalling"
This reverts commit 959f412380.
2017-02-27 10:26:32 +00:00
John Cupitt 959f412380 remove stalling 2017-02-21 15:03:15 +00:00