/* Call im_erode via arg vector. */ static int erode_vec( im_object *argv ) { im_mask_object *mo = argv[2]; return( im_erode( argv[0], argv[1], mo->mask ) ); }
VALUE img_erode(VALUE obj, VALUE mask) { INTMASK *imask; GetImg(obj, data, im); OutImg2(obj, mask, new, data_new, im_new); mask_arg2mask(mask, &imask, NULL); if (im_erode(im, im_new, imask)) vips_lib_error(); return new; }