Bsoft function
img_multiply
Source:
src/img/img_combine.c
Description:
Multiplies two images.
Algorithm:
The second image is multiplied with the first:
image1 = image1 * (image2*scale + shift)
Both images are converted to floating point.
Arguments:
| Bimage* p1 | first image (modified).
|
| Bimage* p2 | second image.
|
| float scale | density scale to apply to second image
|
| float shift | density shift to apply to second image.
|
Returns:
int 0, <0 if error.
Prototype:
int img_multiply(Bimage* p1, Bimage* p2, float scale, float shift)
Functions used:
balloc
bfree
error_show
img_check_if_same_size
img_rescale_to_avg_std
img_stats
Other objects included:
struct Bimage
struct Bmarker
Generated by bdoc.pl on Mon Jun 15 11:47:31 2009
Back to the Bsoft home