Vips.Image.math (original) (raw)
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.
This method is not directly available to language bindings.
Parameters
out
Type: VipsImage
Output VipsImage.
The argument will be set by the function. |
---|
The caller of the method takes ownership of the returned data, and is responsible for freeing it. |
math
Type: VipsOperationMath
Math operation to perform.
...
Type: ``
NULL
-terminated list of optional named arguments.
Return value
Type: int
0 on success, -1 on error.