Transparency-Based Image Processing Method for Efficient Alpha Blending
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The traditional alpha color mixing method in computer graphics requires extensive calculations for each pixel during screen refresh, leading to low efficiency due to the need to decompose and recompose RGB color components, which is time-consuming and resource-intensive, especially with high-resolution displays.
Innovation Solution
A transparency-based image processing method that simulates pixels with twice the number of bits and performs mixing calculations directly on these simulated pixels, reducing the need for decomposing RGB components, thereby minimizing integer multiplications and memory usage.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If traditional alpha color mixing method is used, then translucent effect is achieved, but calculation complexity increases significantly
Solution Approach 1:
The patent changes the parameter representation from floating-point to fixed-point numbers for transparency alpha values. This allows the use of integer arithmetic instead of floating-point multiplication, significantly reducing calculation complexity while maintaining acceptable visual quality for translucent effects.
Solution Approach 2:
The patent uses fixed-point arithmetic as a simpler, faster alternative to floating-point arithmetic. The fixed-point method sacrifices some precision but provides sufficient visual quality at much lower computational cost, making it suitable for real-time rendering.
2Reliability
If traditional alpha color mixing method is used, then translucent effect is achieved, but processing speed decreases
Solution Approach 1:
By changing from floating-point to fixed-point parameter representation, the patent enables the use of faster integer arithmetic operations. This parameter transformation directly improves processing speed while maintaining acceptable visual quality for the translucent effect.
3Productivity
If fixed-point number method is used, then calculation speed improves, but precision is reduced
Solution Approach 1:
The patent transforms the transparency parameter from floating-point to fixed-point representation, accepting a trade-off between precision and calculation speed. The fixed-point method provides sufficient precision for visual rendering while enabling much faster integer arithmetic operations.
Data Source
AI summary
The present disclosure discloses a transparency-based image processing method, device, and terminal. The method includes steps of: acquiring first simulated pixel information representing a first pixel, and acquiring first transparency information; acquiring second simulated pixel information representing a second pixel, and acquiring second transparency information; calculating third simulated pixel information representing a third pixel as a sum of a product of the first simulated pixel information times the first transparency information and a product of the second simulated pixel information times the second transparency information; and acquiring a third actual pixel by narrowing the third simulated pixel information. Compared with an existing fixed-point-number method, the present disclosure reduces prior six integer multiplications and three integer additions to two integer multiplications and one integer addition, such that efficiency in operating the method may be enhanced; compared with an existing method by looking up a table, the transparency-based image processing method provided by the present disclosure does not require traversing any 2D-array table or occupying more memory.


