NAME

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 gamma_correct_image
(
	KJB_image **out_ipp,
	const KJB_image *in_ip,
	const Vector *gamma_vp
);

DESCRIPTION

This routine puts a gamma corection version of the input image (in_ip) in the output location (out_ipp). The output image is created or resized as necessary with the usual KJB library semantics. The third 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 places (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

ow_gamma_correct_image , invert_image_gamma , ow_invert_image_gamma