Add boolean feature for bitwise image operations (#501)

This commit is contained in:
Matt Hirsch
2016-07-11 04:51:43 -04:00
committed by Lovell Fuller
parent 99f960bf56
commit d17e8d3450
14 changed files with 256 additions and 22 deletions

View File

@@ -399,6 +399,13 @@ namespace sharp {
return image.bandbool(boolean);
}
/*
Perform bitwise boolean operation between images
*/
VImage Boolean(VImage image, VImage imageR, VipsOperationBoolean const boolean) {
return image.boolean(imageR, boolean);
}
VImage Trim(VImage image, int const tolerance) {
using sharp::MaximumImageAlpha;
// An equivalent of ImageMagick's -trim in C++ ... automatically remove