NAME
Spectra - Spectra type
SYNOPSIS
#include "s/s_spectra.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
typedef struct Spectra
{
Matrix *spectra_mp;
double step;
double offset;
Spectra_origin type;
}
Spectra;
PARAMETERS
-
double step
-
Very often a parameter, so just use double.
-
double offset
-
Very often a parameter, so just use double.
DESCRIPTION
This type is the spectra type for the KJB library and is used by many
routines. It stores spectra in the rows of the matrix pointed to by the field
spectra_mp.
The "type" field can be used to specify the origin of the spectra. If you are
not interested in this information, then use GENERIC_SPECTRA or
SPECTRA_TYPE_NOT_SET. The possible values of "type" are as follows:
| typedef enum Spectra_origin
{
SPECTRA_TYPE_ERROR = ERROR,
ILLUMINANT_SPECTRA,
REFLECTANCE_SPECTRA,
SENSOR_SPECTRA,
GENERIC_SPECTRA,
SPECTRA_TYPE_NOT_SET
}
Spectra_origin;
RELATED
create_spectra, free_spectra, get_target_spectra
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTER
Kobus Barnard