Add bandbool feature for channel-wise boolean operations (#496)

This commit is contained in:
Matt Hirsch
2016-07-07 16:03:49 -04:00
committed by Lovell Fuller
parent a982cfdb20
commit 65b7f7d7d5
12 changed files with 124 additions and 0 deletions

View File

@@ -392,4 +392,11 @@ namespace sharp {
return image.colourspace(VIPS_INTERPRETATION_B_W) >= threshold;
}
/*
Perform boolean/bitwise operation on image color channels - results in one channel image
*/
VImage Bandbool(VImage image, VipsOperationBoolean const boolean) {
return image.bandbool(boolean);
}
} // namespace sharp