NAME

compute_image_difference - Computes the pixel-wise difference between two images

SYNOPSIS

#include "i/i_metric.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 compute_image_difference
(
	const KJB_image *in1_ip,
	const KJB_image *in2_ip,
	KJB_image **diff_ipp
);

DESCRIPTION

This routine computes the pixel-difference between two images. The resulting difference image is pointed to by diff_ip

RETURNS

NO_ERROR on success and ERROR on failure. The routine will fail if the two input images are different dimensions there is no valid pixel pair.

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

compute_rms_image_difference