Image Alpha mixing method based on floating-point pixel data
A technology of pixel mixing and pixel data, which is applied in image data processing, image enhancement, image analysis, etc., can solve the problems of slow speed and single mixing method, and achieve the effect of reducing mixing process, increasing mixing speed, and reducing mixing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0072] To implement the floating-point multiply-accumulate method, perform the following steps:
[0073] 1) Obtain pixel information such as floating-point source color FP_Cs, floating-point target color FP_Cd, and color constants, and perform data transfer;
[0074] 2) Perform 1-FP_As operation, FP_As is the Alpha value of the floating-point source color;
[0075] 3) Select the larger value in 1-FP_As and FP_Ad as an option for the next data selection, the formula is M=Max(1-FP_As, FP_Ad), and FP_Ad is the Alpha value of the floating-point target color;
[0076] 4) Obtain the floating-point source factor FP_S and the floating-point target factor FP_D;
[0077] Select one of the floating-point source color, floating-point target color, color constant, the M value of step 3) and the constant 0 as the floating-point source factor; select the floating-point source color, floating-point target color, color constant, step 3) The M value and one of the constants 0 are used as the ...
Embodiment 2
[0085] To implement floating-point subtractive color blending, perform the following steps:
[0086] 1) Obtain pixel information such as floating-point source color FP_Cs, floating-point target color FP_Cd, and color constants, and perform data transfer;
[0087] 2) Perform 1-FP_As operation, FP_As is the Alpha value of the floating-point source color;
[0088] 3) Select the larger value in 1-FP_As and FP_Ad as an option for the next data selection, the formula is M=Max(1-FP_As, FP_Ad), and FP_Ad is the Alpha value of the floating-point target color FP_Cd;
[0089] 4) Select the mixed factor data in the floating-point source color, the floating-point target color, the M value of step 3), the color constant and the constant 0, and obtain the floating-point source factor FP_S and the floating-point target factor FP_D;
[0090] 5) Multiply the floating-point source color by the floating-point source factor, and multiply the floating-point target factor by the 0-floating-point ta...
Embodiment 3
[0097] To implement floating-point inverse subtractive color blending, perform the following steps:
[0098] 1) Obtain pixel information such as floating-point source color FP_Cs, floating-point target color FP_Cd, and color constants, and perform data transfer;
[0099] 2) Perform 1-FP_As operation, FP_As is the Alpha value of the floating-point source color;
[0100] 3) Select the larger value in 1-FP_As and FP_Ad as an option for the next data selection, the formula is M=Max(1-FP_As, FP_Ad), and FP_Ad is the Alpha value of the floating-point target color;
[0101] 4) Obtain the floating-point source factor FP_S and the floating-point target factor FP_D;
[0102] Select one of the floating-point source color, the floating-point target color, the color constant, the M value of step 3) and the constant 0 as the floating-point source factor;
[0103] Select one of the floating-point source color, the floating-point target color, the color constant, the M value of step 3) and ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

