Bsoft function

img_morph_blend

Source:

src/img/img_combine.c

Description:

Blends the two images, creating a new set of sub-images.

Algorithm:

	A number of images are created by blending the two input images in

different ratios. The input images become the first and last sub-images of
the new image structure, with the intermediate images changing over from
the first to the last:
new_data = (1-fraction)*data1 + fraction*data2
where fraction = index/(number - 1)
At least 3 new sub-images are packed into the new image.
All of the header information in the first image is copied into the new image.
Both images are converted to floating point.

Arguments:

Bimage* p1first image.
Bimage* p2second image.
int numbernumber of images in the series.

Returns:

Bimage* new image structure, NULL if error.

Prototype:

Bimage* img_morph_blend(Bimage* p1, Bimage* p2, int number)