make_black_and_white_image - Makes a black and white image from a color one
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 *in_ip
This functiion makes a black and white image from a color one by simply
averaging the three channels. If you want to create a black and white image
using L*a*b luminince, then convert to L*a*b. (Likely an alternative routine
to this one will be forthcomming at some point).
If *out_ipp is NULL, then an image of the appropriate size is created, if it
is the wrong size, then it is resized, and if it is the right size, the
storage is recycled.
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.