convert_lut - Converts a lut to one with different characteristics
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 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
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.
On success, NO_ERROR is returned. On failure, ERROR is returned, with an
error message being set.
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.