Commit Graph

17 Commits

Author SHA1 Message Date
John Cupitt 3cd774a10c add fast path to rank filter for uchar images
around 10x faster for 20x20 windows, the same speed for 3x3
2021-01-12 20:36:13 +00:00
John Cupitt 2b78a00cfb hist_local was missing a seq hint 2020-03-13 16:44:57 +00:00
Alistair Thomas 14679d392d Update GObject introspection annotations for libvips/histogram directory 2017-09-30 22:53:30 +01:00
John Cupitt 61d9f03ef8 tiny fixes 2017-01-24 11:02:40 +00:00
John Cupitt c9ce8f70a1 fix an off-by-one error in hist_local
an odd window width caused an off-by-one error in histogram construction
2017-01-24 10:51:12 +00:00
John Cupitt c963678549 more hist_local fixups
add tests, add restrict
2017-01-22 10:36:07 +00:00
John Cupitt fa3c92c19b add CLAHE
vips_hist_local() has a new param, max_slope, which sets the maximum
amount that the local contrast can be boosted by -- CLAHE

see https://github.com/jcupitt/libvips/issues/268

also fix a couple of small range problems

- scale by 255, not 256, to avoid an overflow
- cum hist includes the current value, so sum to <= target, not < target
2017-01-22 10:05:58 +00:00
John Cupitt c89014fb3f first hack 2017-01-20 14:59:24 +00:00
John Cupitt 6b325145e4 use new hints and prepare everywhere 2017-01-12 14:36:44 +00:00
John Cupitt 1504ca7cdc have a more formal max image dimension
we now have VIPS_MAX_COORD for maximum image dimension, set to 10m
pixels ... we could go up to 2bn, but 10m seems a reasonable max, at
least for now

see https://github.com/jcupitt/libvips/issues/355
2015-12-03 12:14:39 +00:00
John Cupitt fb489bad53 move vips_image_decode() into the public API 2014-02-03 14:29:57 +00:00
John Cupitt e7efa8e6f2 more auto-decode 2014-01-23 16:51:32 +00:00
John Cupitt 5b7b3cb591 small fixes for clang static analyzer
a few small things clang static analyzer found
2013-11-22 14:34:13 +00:00
John Cupitt 12cf71a6a9 combin copy_fields and demand_hint
We had two API calls, vips_image_copy_fields() and vips_demand_hint().
They are now combined in the single vips_image_pipeline() call.

All operations are now slightly smaller and simpler.
2013-10-22 09:29:40 +01:00
John Cupitt 96b3bf1fcb im_stdif() -> a class
also many bands support
2013-09-10 20:19:11 +01:00
John Cupitt f1c3e1a434 any number of bands for hist_local 2013-09-10 17:57:10 +01:00
John Cupitt d78b417c3a im_lhisteq() -> a class 2013-09-05 13:50:47 +01:00