falsecolour failed for some image types
type prevented the auto-cast-first-band thing working
This commit is contained in:
parent
b875221005
commit
f5799c4608
@ -1,5 +1,8 @@
|
|||||||
22/1/14 started 7.38.2
|
22/1/14 started 7.38.2
|
||||||
- auto RAD decode for affine
|
- 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
|
19/1/14 started 7.38.1
|
||||||
- bump soname, thanks benjamin
|
- bump soname, thanks benjamin
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
* - force input to mono 8-bit for the user
|
* - force input to mono 8-bit for the user
|
||||||
* 1/8/13
|
* 1/8/13
|
||||||
* - redone as a class
|
* - 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 ) ||
|
if( vips_check_uncoded( class->nickname, falsecolour->in ) ||
|
||||||
vips_extract_band( falsecolour->in, &t[1], 0, NULL ) ||
|
vips_extract_band( falsecolour->in, &t[1], 0, NULL ) ||
|
||||||
vips_cast( t[1], &t[2], VIPS_FORMAT_UCHAR, 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 ) )
|
vips_image_write( t[3], conversion->out ) )
|
||||||
return( -1 );
|
return( -1 );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user