NAME
convert_lut - Converts a lut to one with different characteristics
SYNOPSIS
#include "m/m_lut.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 convert_lut
(
Lut **target_lp_ptr,
Lut *original_lp,
int count,
double offset,
double step
);
DESCRIPTION
This routine converts a lut to one with different characteristics. The
resulting lut will have the specified characteristics. If interpolation
is necessary, then cubic spline is used. The resulting lut is pointed to
by *target_lp_ptr.
If *target_lp_ptr is NULL, then the target lut is created. If it already
exists, but is the wrong size, then it is resized. Finally, if it is the
correct size, it is over-written.
RETURNS
On success, NO_ERROR is returned. On failure, ERROR is returned, with an
error message being set.
RELATED
Lut
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
create_lut
,
free_lut
,
get_target_lut
,
copy_lut
,
read_lut_from_config_file
,
read_lut
,
fp_read_lut
,
write_lut
,
fp_write_lut
,
apply_lut_inverse