Add blur and sharpening

This commit is contained in:
DarthSim
2018-09-07 20:46:16 +06:00
parent c5adf1b3a5
commit 7d7bbe3649
3 changed files with 82 additions and 0 deletions

10
vips.h
View File

@@ -180,6 +180,16 @@ vips_smartcrop_go(VipsImage *in, VipsImage **out, int width, int height) {
#endif
}
int
vips_gaussblur_go(VipsImage *in, VipsImage **out, double sigma) {
return vips_gaussblur(in, out, sigma, NULL);
}
int
vips_sharpen_go(VipsImage *in, VipsImage **out, double sigma) {
return vips_sharpen(in, out, "sigma", sigma, NULL);
}
int
vips_extract_area_go(VipsImage *in, VipsImage **out, int left, int top, int width, int height) {
return vips_extract_area(in, out, left, top, width, height, NULL);