NAME
convert_image_rgb_to_xyz - Converts image RGB to XYZ
SYNOPSIS
#include "i/i_colour.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_image_rgb_to_xyz
(
KJB_image **out_ipp,
const KJB_image *in_ip
);
DESCRIPTION
This routine converts the image RGB to XYZ based on an RGB to XYZ matrix. If
KJB library options are being made available to the user, then this matrix
can be set using the option "rgb-to-xyz-file". If no conversion file has
been set, than a default one is used. If no default is available, then sRGB
is used.
The output is put into *out_ipp. If *out_ipp is NULL, then it is
created. If it is the wrong size, then it is resized. If it is the right
size, the storage is recycled.
RETURNS
NO_ERROR on success and ERROR on failure, with an 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
ow_match_brightness
,
ow_match_chromaticity
,
make_chromaticity_image
,
ow_make_chromaticity_image
,
make_black_and_white_image
,
ow_make_black_and_white_image
,
convert_image_rgb_to_lab