Merge pull request #811 from lovell/smartcrop-luminance

Smartcrop: ~19% speedup by getting luminance from LAB instead of LCH
This commit is contained in:
John Cupitt 2017-11-21 08:31:53 +00:00 committed by GitHub
commit 8497840d97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,7 +255,7 @@ vips_smartcrop_attention( VipsSmartcrop *smartcrop,
/* Look for saturated areas.
*/
if( vips_colourspace( t[1], &t[12],
VIPS_INTERPRETATION_LCH, NULL ) ||
VIPS_INTERPRETATION_LAB, NULL ) ||
vips_extract_band( t[12], &t[13], 1, NULL ) ||
vips_ifthenelse( t[10], t[13], t[11], &t[16], NULL ) )
return( -1 );