Add trim operation to remove "boring" edges (#491 #492)

This commit is contained in:
Kleis Auke Wolthuizen
2016-07-08 23:19:10 +02:00
committed by Lovell Fuller
parent 673d8278b5
commit b69627891d
9 changed files with 136 additions and 6 deletions

View File

@@ -115,6 +115,10 @@ namespace sharp {
std::tuple<int, int> CalculateCrop(int const inWidth, int const inHeight,
int const outWidth, int const outHeight, int const x, int const y);
/*
Return the image alpha maximum. Useful for combining alpha bands. scRGB
images are 0 - 1 for image data, but the alpha is 0 - 255.
*/
int MaximumImageAlpha(VipsInterpretation interpretation);