Method

VipsImagecompass

Declaration [src]

int
vips_compass (
  VipsImage* in,
  VipsImage** out,
  VipsImage* mask,
  ...
)

Description [src]

This convolves in with mask times times, rotating mask by angle each time. By default, it comvolves twice, rotating by 90 degrees, taking the maximum result.

::: tip “Optional arguments” * times: gint, how many times to rotate and convolve * angle: VipsAngle45, rotate mask by this much between colvolutions * combine: VipsCombine, combine results like this * precision: VipsPrecision, precision for blur, default float * layers: gint, number of layers for approximation * cluster: gint, cluster lines closer than this distance

::: seealso vips_conv().

Parameters

out VipsImage
 

Output image.

 The argument will be set by the function.
 The instance takes ownership of the data, and is responsible for freeing it.
mask VipsImage
 

Convolve with this mask.

 The data is owned by the caller of the function.
... none
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.