Bsoft function

img_calculate_background

Source:

src/img/img_background.c

Description:

Calculates the background for each sub-image.

Algorithm:

	The background is taken as the average of the values outside the

circle or sphere enclosed by the image.
If the mask is specified, it is used to define the part of the
image to be used for background calculation (where the mask is zero).

Arguments:

Bimage* pimage.
Bimage* pmaskforeground mask (converted to byte).

Returns:

int 0.

Prototype:

int img_calculate_background(Bimage* p, Bimage* pmask)

Functions used:

balloc

Other objects included:

struct Bimage
struct Bmarker
class Complex


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


Back to the Bsoft home