Method

VipsImageabs

Declaration [src]

int
vips_abs (
  VipsImage* in,
  VipsImage** out,
  ...
)

Description [src]

This operation finds the absolute value of an image. It does a copy for unsigned integer types, negate for negative values in signed integer types, fabs(3) for float types, and calculates modulus for complex types.

See also: vips_sign().

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

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.