Method

VipsImagecompass

Declaration [src]

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

Description [src]

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

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.

See also: vips_conv().

This method is not directly available to language bindings.

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.
...
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.