NAME

ow_make_black_and_white_image - Makes a black and white image from a color one

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 ow_make_black_and_white_image(KJB_image *ip);

DESCRIPTION

This functiion makes a black and white image from a color one by simply averaging the three channels. The original image is overwritten. 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).

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 , convert_image_rgb_to_lab , convert_image_rgb_to_xyz