ban size == 0 for max/min

This commit is contained in:
John Cupitt 2014-02-19 17:13:12 +00:00
parent 1414958b00
commit c3def93361
3 changed files with 2 additions and 15 deletions

13
TODO
View File

@ -67,19 +67,6 @@
- try:
$ vips max babe.v --x-array --size 0
Segmentation fault (core dumped)
- try:
im = VIPS::Image.new(ARGV[0])
mask = im.less(240)
columns, rows = mask.project
with wtc.jpg, segv if libvips is compiled with -O, OK without
- need to do mosaicing
- now vips_linear() has uchar output, can we do something with orc?

View File

@ -447,7 +447,7 @@ vips_max_class_init( VipsMaxClass *class )
_( "Number of maximum values to find" ),
VIPS_ARGUMENT_OPTIONAL_INPUT,
G_STRUCT_OFFSET( VipsMax, size ),
0, 1000000, 10 );
1, 1000000, 10 );
VIPS_ARG_BOXED( class, "out_array", 6,
_( "Output array" ),

View File

@ -450,7 +450,7 @@ vips_min_class_init( VipsMinClass *class )
_( "Number of minimum values to find" ),
VIPS_ARGUMENT_OPTIONAL_INPUT,
G_STRUCT_OFFSET( VipsMin, size ),
0, 1000000, 10 );
1, 1000000, 10 );
VIPS_ARG_BOXED( class, "out_array", 6,
_( "Output array" ),