Bsoft function
img_R_factor
Source:
src/img/img_combine.c
Description:
Calculates an R factor between two images.
Algorithm:
The difference between two images is calculated and normalized as:
sum(image1 - image2)^2
R = sqrt(-------------------------------------------------)
sqrt(sum(image1 - avg1)^2 * sum(image2 - avg2)^2)
Both images are converted to floating point.
Arguments:
| Bimage* p1 | first image.
|
| Bimage* p2 | second image.
|
Returns:
float R factor, -1 if not run.
Prototype:
float img_R_factor(Bimage* p1, Bimage* p2)
Functions used:
balloc
bfree
Other objects included:
struct Bimage
Generated by bdoc.pl on Mon Jun 15 11:47:33 2009
Back to the Bsoft home