image_to_matrix_vector - Converts an image to a matrix vector of length 3.
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
const KJB_image *ip,
This routine converts an image to a matrix vector of length 3. If any the
matrices vector is NULL, then they it is created. If it is not of length 3,
it is resized. Similarly, if any of the matrices in the matrix vector are
NULL, they are created. Also, if any are the wrong size, they are resized.
Otherwise, the storage is recycled as is.
NO_ERROR on success, and ERROR on failure, with an appropriate error
message being set.
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.