Method

VipsImagegamma

Declaration [src]

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

Description [src]

Optional arguments:

  • exponent: gamma, default 1.0 / 2.4

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

See also: vips_identity(), vips_pow_const1(), vips_maplut()

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

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.