ow_invert_image_gamma - Inverts image gamma
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
This routine overwrites a gamma corected image with a linear 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
NO_ERROR on success, and ERROR on failure, with an appropriate error
message being set.
This is a separate facility to the linearization mechanism developed in
the context of cameras (see i_offset.c). These two facilities have
converged to be very similar. This suite of routines is meant to be
inverses of the corresponding gamma ones, and were developed in the
context of corercting images from random sources, rather than a
calibrated camera where we generally have very specific lookup tables.
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.