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

Type: VipsImage

Output image.

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

Type: 

NULL-terminated list of optional named arguments.

Return value

Type: int

0 on success, -1 on error.