描述:两幅图像各占一定比例的进行混合成一个图像,但是两个占的百分比等于1,
公式描述:O(i,j) = P * I1(i,j) + (1-P) * I2(i,j), 其中P就是混合比(blending ratio)
Code:
/**
*Applies the image Blend operator on the specified image arrays,
*with the specified offset and scale value
*@param src1_1d The first source image as a pixel array
*@param src2_1d The second source image as a pixel array
*@param blend The blending factor a float from 0..1
*@param width width of the destination image in pixels
*@param height height of the destination image in pixels
*@param oset The offset value
*@param scale The scale value
*@return A pixel array containing the blended image
*/
public int [] DoBlend(int [] src1_1d, int [] src2_1d, float blend,
int width, int height, float oset, floa