NAME
rgb_matrices_to_image - Converts 3 matrices to an image
SYNOPSIS
#include "i/i_matrix.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 rgb_matrices_to_image
(
const Matrix *r_mp,
const Matrix *g_mp,
const Matrix *b_mp,
KJB_image **out_ipp
);
DESCRIPTION
This routine converts 3 matrices, one each for R, G, and B, to an image. All
matrices must be of the same size. They cannot be null.
The matrix values are expected to lie in the customary range for pixel
channels. For example, if you plan to use the image with 8-bit RGB channel
values, then your input matrices must likewise lie in the 0-255 value
range.
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
matrix_vector_to_image
,
image_to_matrix_vector
,
rgb_matrix_array_to_image
,
image_to_rgb_matrix_array
,
matrix_to_bw_image
,
matrix_to_max_contrast_8bit_bw_image
,
image_to_matrix
,
image_to_matrix_2
,
bw_image_to_matrix
,
image_to_rgb_matrices