works, but needs testing

This commit is contained in:
John Cupitt 2015-11-16 20:09:27 +00:00
parent 8e6ed3ef30
commit c858066fe0

View File

@ -189,10 +189,11 @@ vips_index_region_minmax( VipsRegion *region, VipsRect *r, VipsRect *bounds )
q[z] = 0; \ q[z] = 0; \
} \ } \
else \ else \
interpolate( index->interpolate, \ interpolate( index->interpolate, q, ir[0], \
q, ir[0], px, py ); \ px + window_offset, py + window_offset ); \
\ \
p1 += 2; \ p1 += 2; \
q += ps; \
} \ } \
} }
@ -400,7 +401,7 @@ vips_index_class_init( VipsIndexClass *class )
vobject_class->description = _( "resample with an index image" ); vobject_class->description = _( "resample with an index image" );
vobject_class->build = vips_index_build; vobject_class->build = vips_index_build;
VIPS_ARG_IMAGE( class, "index", 2, VIPS_ARG_IMAGE( class, "index", 3,
_( "Index" ), _( "Index" ),
_( "Index pixels with this" ), _( "Index pixels with this" ),
VIPS_ARGUMENT_REQUIRED_INPUT, VIPS_ARGUMENT_REQUIRED_INPUT,