falsecolour failed for some image types

type prevented the auto-cast-first-band thing working
This commit is contained in:
John Cupitt 2014-01-23 14:27:45 +00:00
parent b875221005
commit f5799c4608
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,8 @@
22/1/14 started 7.38.2
- auto RAD decode for affine
- falsecolour was not working for some image types
- foreign memory buffer images did not have the right dhint, broke
command-line falsecolour on sequential images
19/1/14 started 7.38.1
- bump soname, thanks benjamin

View File

@ -14,6 +14,8 @@
* - force input to mono 8-bit for the user
* 1/8/13
* - redone as a class
* 23/1/14
* - oops, was not auto-getting and casting the first band
*/
/*
@ -348,7 +350,7 @@ vips_falsecolour_build( VipsObject *object )
if( vips_check_uncoded( class->nickname, falsecolour->in ) ||
vips_extract_band( falsecolour->in, &t[1], 0, NULL ) ||
vips_cast( t[1], &t[2], VIPS_FORMAT_UCHAR, NULL ) ||
vips_maplut( falsecolour->in, &t[3], t[0], NULL ) ||
vips_maplut( t[2], &t[3], t[0], NULL ) ||
vips_image_write( t[3], conversion->out ) )
return( -1 );