Bsoft function

img_add

Source:

src/img/img_combine.c

Description:

Adds two images together.

Algorithm:

	The second image is added to the first:

image1 = image1 + image2*scale + shift
Both images are converted to floating point.

Arguments:

Bimage* p1first image (modified).
Bimage* p2second image.
float scaledensity scale to apply to second image
float shiftdensity shift to apply to second image.

Returns:

int 0, <0 if error.

Prototype:

int img_add(Bimage* p1, Bimage* p2, float scale, float shift)

Functions used:

bfree
error_show
img_check_if_same_size
img_fft
img_rescale_to_avg_std
img_stats

Other objects included:

struct Bimage
struct Bmarker


Generated by bdoc.pl on Mon Jun 15 11:47:29 2009


Back to the Bsoft home