Method

VipsImagegamma

Declaration [src]

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

Description [src]

Calculate in ** (1 / exponent), normalising to the maximum range of the input type. For float types use 1.0 as the maximum.

::: tip “Optional arguments” * exponent: gdouble, gamma, default 1.0 / 2.4

::: seealso vips_identity(), vips_pow_const1(), vips_maplut()

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

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.