---
name: "im_gammacorrect"
section: "3"
platform: "linux"
package: "libvips-dev"
version: "7.20.7-1+b3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/im_gammacorrect"
---

# im\_gammacorrect(3)

carry out gamma correction

## NAME

im\_gammacorrect - carry out gamma correction

## SYNOPSIS

\#include \<vips/vips.h\>

int im\_gammacorrect(in, out, exponent)\
 IMAGE \*in, \*out;\
 double exponent;

## DESCRIPTION

im\_gammacorrect performs gamma correction to in.  The result in written in out. The correction is carried out by creating a lookup table using the double exponent and mapping in through it.  The exponent is applied on a ramp lut and the resultant lut is scaled.  All channels of im are mapped through the lookup table.

## SEE ALSO

[im\_histgr(3)](/im_histgr/3.md), [im\_heq(3)](/im_heq/3.md), [im\_histeq(3)](/im_histeq/3.md), [im\_identity(3)](/im_identity/3.md), [im\_maplut(3)](/im_maplut/3.md)

## COPYRIGHT

N. Dessipris

## AUTHOR

N. Dessipris - 10/05/1991
