Bsoft function
img_correct_background
Source:
src/img/img_background.c
Description:
Corrects 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 foreground of the
image. The correction then includes the area outside the circle or
sphere as well as the area where the mask is zero.
Arguments:
| Bimage* p | image.
|
| Bimage* pmask | foreground mask (converted to byte).
|
Returns:
int 0.
Prototype:
int img_correct_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:22 2009
Back to the Bsoft home