NAME
ow_gamma_correct_image - Gamma corrects images
SYNOPSIS
#include "i/i_gamma.h"
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-I/home/kobus/include
-L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
int ow_gamma_correct_image
(
KJB_image *in_ip,
const Vector *gamma_vp
);
DESCRIPTION
This routine over-writes an image with a gamma corected version.
The second argument is a vector of three gamma values one for each channel. If
it is NULL, then default gamma is used, either from lookup tables in standard
placess (usually not available), or, if that fails, using standard gamma
correction.
RETURNS
NO_ERROR on success, and ERROR on failure, with an appropriate error
message being set.
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTER
Kobus Barnard
SEE ALSO
gamma_correct_image
,
invert_image_gamma
,
ow_invert_image_gamma