NAME
get_ave_rgb - Computes the average of R, G, and B of an image
SYNOPSIS
#include "i/i_stat.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 get_ave_rgb
(
Vector **out_rgb_vpp,
const KJB_image *in_ip
);
DESCRIPTION
This routine computes the overall average of R, G, and B of an image. The
result is put into *out_rgb_vpp which is created if need be.
RETURNS
NO_ERROR on sucess and ERROR on failure.
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
get_max_rgb
,
get_image_stats
,
get_image_window_stats
,
get_ave_ratio_without_invalid
,
get_ave_sum_ratio_without_invalid