Create normalize/blur/sharpen operations

Reduces pipeline by ~100 LOC
This commit is contained in:
Lovell Fuller
2015-07-11 21:44:39 +01:00
parent c40cd1aa50
commit 2ec845b083
3 changed files with 173 additions and 113 deletions

View File

@@ -19,6 +19,21 @@ namespace sharp {
*/
int Unpremultiply(VipsObject *context, VipsImage *image, VipsImage **out);
/*
* Stretch luminance to cover full dynamic range.
*/
int Normalize(VipsObject *context, VipsImage *image, VipsImage **out);
/*
* Gaussian blur. Use sigma of -1 for fast blur.
*/
int Blur(VipsObject *context, VipsImage *image, VipsImage **out, double sigma);
/*
* Sharpen flat and jagged areas. Use radius of -1 for fast sharpen.
*/
int Sharpen(VipsObject *context, VipsImage *image, VipsImage **out, int radius, double flat, double jagged);
} // namespace sharp
#endif // SRC_OPERATIONS_H_