Method

VipsImagemath

Declaration [src]

int
vips_math (
  VipsImage* in,
  VipsImage** out,
  VipsOperationMath math,
  ...
)

Description [src]

Perform various functions in -lm, the maths library, on images.

Angles are expressed in degrees. The output type is float unless the input is double, in which case the output is double.

Non-complex images only.

See also: vips_math2().

This method is not directly available to language bindings.

Parameters

out VipsImage
 

Output VipsImage.

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

Math operation to perform.

...
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.