NAME
get_RGB_from_spectra - Generates RGB data from spectra.
SYNOPSIS
#include "c/c_sensor.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 get_RGB_from_spectra
(
const Spectra *input_sp,
int index,
double *R_ptr,
double *G_ptr,
double *B_ptr
);
DESCRIPTION
This routine generates RGB data from a single spectra using the sensors
managed by the KJB library. If KJB library options are made available to the
user, then the sensors used can be changed using the "sensor-file" or "sf"
option. If the user has not specified sensors, then default ones are used.
The "index" argument is used to specify which of the spectra in input_sp us
used.
The resulting RGB are put into *R_ptr, *G_ptr, and *B_ptr.
RETURNS
This routine 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
sensor_data_is_up_to_date
,
get_sensor_version
,
normalize_illum_spectra
,
ow_normalize_illum_spectra
,
get_RGB_sensors
,
get_spectrum_xy_locus
,
get_spectrum_uv_locus
,
get_spectrum_rg_locus
,
get_xy_from_spectrum
,
get_xy_from_XYZ
,
get_uv_from_spectrum
,
get_uv_from_XYZ
,
get_rg_from_spectrum
,
get_rg_from_RGB
,
get_XYZ_from_spectrum
,
get_RGB_from_spectrum
,
get_ct_from_spectrum
,
get_sum_from_spectrum
,
get_RGB_vector_from_spectrum
,
generate_RGB_data
,
get_RGB_data_from_spectra
,
get_RGB_vector_from_spectra