NAME

copy_lut - Copies lut

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 copy_lut
(
	Lut **target_lp_ptr,
	Lut *lp
);

DESCRIPTION

This routine copies the lut pointed to by "lut_ptr" to that 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 , convert_lut , read_lut_from_config_file , read_lut , fp_read_lut , write_lut , fp_write_lut , apply_lut_inverse