NAME

average_bw_images - Averages a set of images

SYNOPSIS

#include "i/i_seq.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 average_bw_images
(
	KJB_image **avg_img,
	const KJB_image_sequence *images
);

DESCRIPTION

This routine averages all the images in images and puts the result in avg_img. The images in images are assumed to be black and white, although the image_to_matrix_routine is used in case it is not.

RETURNS

On error, this routine returns ERROR, with an error message being set. On success it returns NO_ERROR.

RELATED

image_to_matrix

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Ernesto Brau

DOCUMENTER

Kobus Barnard

SEE ALSO

get_target_image_sequence , read_image_sequence , free_image_sequence , std_dev_bw_images , average_bw_images_2 , std_dev_bw_images_2