Time domain pixel tracking anti-aliasing and post-processing rendering method, system and equipment

Through the combination of time-domain pixel tracking anti-aliasing method and post-processing rendering process, the problem of flickering and aliasing in continuous frame processing in the existing technology is solved, the picture stability and clarity of the flight simulator visual system are improved, and the user experience is improved. experience.

CN118736093AActive Publication Date: 2024-10-01BEIJING REALFLY AVIATION TECH CO LTD

Patent Information

Application Number
CN202410959379.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-01
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

The existing anti-aliasing algorithm cannot guarantee temporal stability when processing a series of consecutive frames, resulting in image flickering and moiré phenomena. Especially in the visual system of the flight simulator, when the UE Unreal Engine renders in real time, the edge of the object There are aliases in the , shadows and highlights, etc., affecting the fineness of the picture.

Method used

The time domain pixel tracking anti-aliasing method is used to perform perspective transformation by obtaining the data of the current frame and the previous frame, calculate the perspective transformation matrix, eliminate flicker signals, and combine depth information and translucent layer processing to achieve stable rendering of the final image, and DLSS and TSR are combined in the post-processing rendering process to enhance picture clarity and stability.

Benefits of technology

It effectively solves the problem of pixel texture flickering in continuous frame processing, improves picture stability and clarity, and improves the user's viewing experience, especially in complex scenes and high contrast situations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736093A_ABST
    Figure CN118736093A_ABST
Patent Text Reader

Abstract

The invention relates to a time domain pixel tracking anti-aliasing and post-processing rendering method, system and device. The method comprises the following steps: acquiring first data of a current frame and first data of a previous frame of an image; performing perspective transformation on the first data of the previous frame to obtain second data of the previous frame; performing perspective transformation on the second data of the previous frame and the first data of the current frame to obtain second data of the current frame; and processing the first data of the current frame, the second data of the current frame and the second data of the previous frame to obtain a finally processed image. According to the method, the problem that pixel textures in the picture flicker when a series of continuous frames are processed by an anti-aliasing algorithm can be solved to a great extent, the picture stability is improved under the condition that the definition is ensured, and the impression of a user is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of virtual vision, and in particular relates to a time domain pixel tracking anti-aliasing and post-processing rendering method, system and equipment. Background Art

[0002] In the visual system of the flight simulator, the UE Unreal Engine will process the world scene under the current simulated aircraft position in real time and present it. Pilots are very dependent on rendered visual images during simulation training. During the rendering process, the output result is a picture, which will eventually be displayed on the screen, and the smallest unit of this picture is the pixel. Pixels can be regarded as tiny blocks of color. When the resolution of the image is high enough and the color blocks are small enough, it is difficult for the human eye to distinguish the color differences between adjacent blocks, resulting in a delicate and smooth picture. However, when the resolution of the image is low or the texture details in the scene are more complex, in order to fill the same size screen, the color differences between the color blocks are difficult to ignore, resulting in a mosaic-like jagged appearance for the entire picture. The aliasing in the rendered output image usually comes from multiple aspects, such as object edges, shadows, and highlights, such as Figure 1 and Figure 2 The figure shows two consecutive frames of images in a scene rendered in real time by UE5. The same object has inconsistent convergence at the pixel scale. From a large scale, that is, from a human perspective, these pixels flicker.

[0003] Many existing anti-aliasing algorithms can perform image anti-aliasing well, such as MSAA, FXAA, etc. However, when processing a series of images that are continuous in time, most anti-aliasing algorithms cannot guarantee stability in time, which may cause image flickering, moiré, and other phenomena. Summary of the invention

[0004] In order to overcome the problems existing in the prior art, the present invention provides a time-domain pixel tracking anti-aliasing method, system, device and medium, which are used to overcome the flickering caused by insufficient anti-aliasing effect.

[0005] A temporal pixel tracking anti-aliasing method, the method comprising the steps of: S1. Obtain the first data of the current frame and the first data of the previous frame of the image; S2. Performing a perspective transformation on the first data of the previous frame to obtain the second data of the previous frame; S3. Performing a perspective transformation on the second data of the previous frame and the first data of the current frame to obtain the second data of the current frame; S4. Process the first data of the current frame, the second data of the current frame and the second data of the previous frame to obtain a final processed image.

[0006] According to the aspects described above and any possible implementation method, an implementation method is further provided, wherein the current frame first data includes the current frame camera pose, the current frame scene color image, the current frame semi-transparent layer image and / or the current frame depth information.

[0007] According to the aspects described above and any possible implementation methods, an implementation method is further provided, wherein the first data of the previous frame includes the camera posture of the previous frame, the scene color image of the previous frame, the semi-transparent layer image of the previous frame, the first-order rising signal of the previous frame, the first-order falling signal of the previous frame, the second-order rising signal of the previous frame, the second-order falling signal of the previous frame and / or the initialization flashing signal of the previous frame.

[0008] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein S2 specifically includes: S21. Calculate the camera pose of the previous frame and the camera pose of the current frame to obtain a perspective transformation matrix; S22. Perform a perspective transformation on the previous frame of first data using a perspective transformation matrix to obtain the previous frame of second data.

[0009] As described above and any possible implementation method, an implementation method is further provided, wherein the upper frame color image after perspective transformation, the upper frame semi-transparent layer image after perspective transformation, the upper frame first-order rising signal after perspective transformation, the upper frame first-order falling signal after perspective transformation, the upper frame second-order rising signal after perspective transformation, the upper frame second-order falling signal after perspective transformation and the upper frame initialization flashing signal after perspective transformation.

[0010] According to the above aspects and any possible implementation, an implementation is further provided, where S3 includes: S31. Calculate the perspective transformed previous frame color image and the current frame scene color image to obtain the current frame first-order rising signal and the current frame first-order falling signal; S32. Calculate the first-order rising signal of the previous frame after perspective transformation, the second-order rising signal of the previous frame after perspective transformation and the first-order rising signal of the current frame to obtain the second-order rising signal of the current frame; S33. Calculate the first-order descending signal of the previous frame after perspective transformation, the second-order descending signal of the previous frame after perspective transformation and the first-order descending signal of the current frame to obtain the second-order descending signal of the current frame; S34. Calculate the second-order rising signal of the current frame, the second-order falling signal of the current frame, and the flicker signal of the previous frame after perspective transformation to obtain the flicker signal of the current frame.

[0011] According to the above aspects and any possible implementation, an implementation is further provided, S4 includes: S41. eliminating flicker from the current frame flicker signal, depth information, current frame image and previous frame image after perspective transformation to obtain a scene color image with flicker eliminated; S42. Perform a semi-transparent flicker removal process on the flicker-free scene color image, the semi-transparent layer image of the current frame, and the semi-transparent layer image of the previous frame after perspective transformation to obtain a final image.

[0012] The present invention also provides a post-processing rendering method, comprising the following steps: H1. The scene color is rendered in the "before translucent layer" stage of the post-processing material, and the rendered output replaces the scene color as the first scene color; H2. The first scene color is rendered with depth of field aperture, and the rendered output replaces the first scene color as the second scene color; H3. The second scene color is rendered in the post-processing material "before tone mapping" stage, and the rendered output replaces the second scene color as the third scene color; H4. Choose whether to use the DLSS anti-aliasing algorithm according to the user-defined configuration. If not, TAA anti-aliasing is used by default; if used, deep learning super sampling DLSS is used, and the anti-aliasing rendering output replaces the third scene color as the fourth scene color; H5. Perform post-processing material rendering “AfterTAA” on the fourth scene color rendering, and the rendered output replaces the fourth scene color as the fifth scene color; H6. According to the user-defined configuration, if SZAA is selected, the fourth scene color and the semi-transparent layer are input into the temporal pixel tracking anti-aliasing method SZAA for rendering, and the rendered image is then rendered by temporal super-resolution TSR, and the rendered output replaces the fifth scene color as the sixth scene color; if SZAA is not used, the fifth scene color and the semi-transparent layer are input into the temporal super-resolution TSR rendering, and the rendered output replaces the fifth scene color as the sixth scene color; H7. Perform post-processing material rendering, motion blur rendering and fast approximate anti-aliasing on the sixth scene color to complete the post-processing rendering.

[0013] The present invention also provides a time-domain pixel tracking anti-aliasing system, the system implementing the method comprises the following modules: An acquisition module, used to acquire first data of a current frame and first data of a previous frame of an image; A first perspective transformation module, used for performing perspective transformation on the previous frame of first data to obtain the previous frame of second data; A second perspective transformation module, used for performing perspective transformation on the second data of the previous frame and the first data of the current frame to obtain the second data of the current frame; The processing module is used to process the first data of the current frame, the second data of the current frame and the second data of the previous frame to obtain a final processed image.

[0014] The present invention further provides an electronic device, comprising: A memory storing executable instructions; A processor is used to execute the executable instructions in the memory to implement the method.

[0015] The present invention also provides a computer storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the method described.

[0016] Beneficial effects of the present invention The time domain pixel tracking anti-aliasing method of the present invention comprises the steps of: Acquire the first data of the current frame and the first data of the previous frame of the image; perform perspective transformation on the first data of the previous frame to obtain the second data of the previous frame; perform perspective transformation on the second data of the previous frame and the first data of the current frame to obtain the second data of the current frame; process the first data of the current frame, the second data of the current frame and the second data of the previous frame to obtain the final processed image.

[0017] The present invention has the following beneficial effects: 1) The method proposes a temporal pixel tracking anti-aliasing algorithm (SZAA), which is based on posture transformation and can solve the problem of pixel texture flickering in the picture when the anti-aliasing algorithm processes a series of continuous frames to a great extent. While ensuring clarity, the picture stability is improved, which greatly improves the user's viewing experience.

[0018] 2) The post-processing rendering process proposed by this method adds a custom post-processing material stage entry, which can better adapt to different rendering requirements.

[0019] 3) The post-processing rendering process proposed by this method combines TSR and DLSS to give full play to their respective strengths, which can greatly improve the clarity of the picture and the stability of semi-transparent layer rendering. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a schematic diagram of the first consecutive frames of images in a scene rendered in real time by UE5 in the prior art; Figure 2 It is a schematic diagram of a second consecutive frame of image in a scene rendered in real time by UE5 in the prior art; Figure 3It is a schematic flow chart of the SZAA method of the present invention; Figure 4 It is a schematic diagram of the rendering process of the present invention. DETAILED DESCRIPTION

[0021] In order to better understand the technical solution of the present invention, the content of the present invention includes but is not limited to the specific implementation methods described below, and similar technologies and methods should be considered to be within the scope of protection of the present invention. In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will be described in detail with reference to the accompanying drawings and specific embodiments.

[0022] It should be clear that the embodiments described in the present invention are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] The present invention provides a time-domain pixel tracking anti-aliasing method, the method comprising the steps of: S1. Obtain the first data of the current frame and the first data of the previous frame of the image; S2. Performing a perspective transformation on the first data of the previous frame to obtain the second data of the previous frame; S3. Performing a perspective transformation on the second data of the previous frame and the first data of the current frame to obtain the second data of the current frame; S4. Process the first data of the current frame, the second data of the current frame and the second data of the previous frame to obtain a final processed image.

[0024] Preferably, the current frame first data includes the current frame camera posture, the current frame scene color image, the current frame semi-transparent layer image and / or the current frame depth information.

[0025] Preferably, the first data of the previous frame includes the camera posture of the previous frame, the scene color image of the previous frame, the semi-transparent layer image of the previous frame, the first-order rising signal of the previous frame, the first-order falling signal of the previous frame, the second-order rising signal of the previous frame, the second-order falling signal of the previous frame and / or the initialization flashing signal of the previous frame.

[0026] Preferably, the S2 specifically includes: S21. calculating the previous frame camera pose and the current frame camera pose to obtain a perspective transformation matrix; S22. Perform a perspective transformation on the previous frame of first data using a perspective transformation matrix to obtain the previous frame of second data.

[0027] Preferably, the upper frame color image after perspective transformation, the upper frame semi-transparent layer image after perspective transformation, the upper frame first-order rising signal after perspective transformation, the upper frame first-order falling signal after perspective transformation, the upper frame second-order rising signal after perspective transformation, the upper frame second-order falling signal after perspective transformation and the upper frame initialization flashing signal after perspective transformation.

[0028] Preferably, S3 includes: S31. calculating the previous frame color image after perspective transformation and the current frame scene color image to obtain the current frame first-order rising signal and the current frame first-order falling signal; S32. Calculate the first-order rising signal of the previous frame after perspective transformation, the second-order rising signal of the previous frame after perspective transformation and the first-order rising signal of the current frame to obtain the second-order rising signal of the current frame; S33. Calculate the first-order descending signal of the previous frame after perspective transformation, the second-order descending signal of the previous frame after perspective transformation and the first-order descending signal of the current frame to obtain the second-order descending signal of the current frame; S34. Calculate the second-order rising signal of the current frame, the second-order falling signal of the current frame, and the flicker signal of the previous frame after perspective transformation to obtain the flicker signal of the current frame.

[0029] Preferably, S4 includes: S41. Eliminating flicker from the current frame flicker signal, depth information, the current frame image and the previous frame image after perspective transformation to obtain a scene color image with flicker eliminated; S42. Perform a semi-transparent flicker removal process on the flicker-free scene color image, the semi-transparent layer image of the current frame, and the semi-transparent layer image of the previous frame after perspective transformation to obtain a final image.

[0030] Specifically, the method of the present invention is based on posture transformation, and its specific process is as follows: Although many anti-aliasing algorithms have achieved remarkable results when processing a single image, and can effectively eliminate image jaggedness, making the picture more delicate and smooth. However, there are still some problems to be solved when processing a series of consecutive frames and specific scenes. For the processing of a series of consecutive frames, existing anti-aliasing algorithms will face the challenge of temporal consistency. Since each frame is processed independently, it may cause inconsistent convergence between consecutive frames.

[0031] We analyze this flickering situation. Due to the uncertainty of anti-aliasing algorithm processing, the frequency of this flickering is uncertain, that is, the flickering frequency is 0~60Hz, which is possible. Since the color of the image processed by the anti-aliasing algorithm is uncertain, the amplitude of this flickering is 0~255. Since the human eye is subjectively sensitive to color changes within 2 seconds and brightness changes greater than 5, this method is designed to eliminate flickering in the range of 0.5Hz~60Hz and amplitude in the range of 5~255. The specific steps are as follows: 1. Get the current frame data: the current frame camera pose, the current frame scene color image, the current frame translucent layer image, and the current frame depth information for subsequent calculations; 2. Get the historical frame data (i.e. the previous frame or the previous frame of the current frame): the previous frame camera pose, the previous frame scene color image, the previous frame semi-transparent layer image, the previous frame first-order rising signal, the previous frame first-order falling signal, the previous frame second-order rising signal, the previous frame second-order falling signal, and the previous frame initialization flicker signal for subsequent calculations; 3. Calculate the perspective transformation matrix based on the camera pose of the previous frame and the current frame. The perspective transformation matrix is ​​shown in the following formula H. Where (u, v) is the pixel position before the transformation, (u c , v c ) is the transformed pixel position, ( ) is the intermediate quantity, , For each element in the matrix.

[0032] The steps to solve the H matrix are as follows: (1) The camera pose of the previous frame is known , and the camera pose of the current frame , , the camera parameters are known , , are the position of the camera in the previous frame and the position of the camera in the current frame respectively. and The yaw angle, pitch angle and roll angle of the camera in the previous frame and the current frame respectively. Set the ground normal vector , coordinate system transformation matrix

[0033] (2) Calculate the rotation matrix of the previous frame pose

[0034] (3) Calculate the rotation matrix of the current frame pose:

[0035]

[0036] The value of H can be found:

[0037] .

[0038] 4. In the perspective transformation shader, the perspective transformation matrix is ​​used to perspective transform the previous frame scene color image into the previous frame color image after perspective transformation. The perspective transformation shader performs perspective transformation on the input image according to the input perspective transformation matrix. The perspective transformation shader is a module. In this shader, the perspective transformation matrix is ​​used to calculate the image, that is, the previous frame scene color image is transformed into the previous frame color image after perspective transformation using the perspective transformation matrix. All subsequent shaders are modules, and the calculations are performed inside the shader.

[0039] 5. Use the perspective transformation matrix to transform the upper frame semi-transparent layer image into the upper frame semi-transparent layer image after perspective transformation using the perspective transformation shader; 6. Use the perspective transformation matrix to transform the first-order ascending signal of the previous frame into the first-order ascending signal of the previous frame after perspective transformation using the perspective transformation shader; 7. Use the perspective transformation matrix to transform the first-order descending signal of the previous frame into the first-order descending signal of the previous frame after perspective transformation using the perspective transformation shader; 8. Use the perspective transformation matrix to transform the second-order rising signal of the previous frame into the second-order rising signal of the previous frame after perspective transformation using the perspective transformation shader; 9. Use the perspective transformation matrix to transform the upper frame second-order descending signal into the upper frame second-order descending signal after perspective transformation using the perspective transformation shader; 10. Use the perspective transformation matrix to transform the upper frame initialization flash signal into the upper frame initialization flash signal after perspective transformation using the perspective transformation shader. Steps 5-10 are executed in sequence to transform different variables, and the perspective transformation matrix is ​​the same. Step 5-10 uses the perspective transformation matrix to transform the upper frame image into the image under the posture of the current frame, in order to eliminate the picture differences caused by different camera postures between different frames.

[0040] 11. The color image of the previous frame after perspective transformation and the scene color image of the current frame are used to calculate the first-order rising signal of the current frame and the first-order falling signal of the current frame using the first-order rising signal shader and the first-order falling signal shader. The calculation method of the first-order rising signal of the current frame is: in the first-order rising signal shader, the color image of the previous frame after perspective transformation and the scene color image of the current frame are converted into grayscale images, the grayscale image of the previous frame after perspective transformation is subtracted from the converted grayscale image of the current frame, all values ​​below 0.01 are set to 0, and those above 0.01 are retained. The calculation method of the first-order falling signal of the current frame is: in the first-order rising signal shader, the color image of the previous frame after perspective transformation and the scene color image of the current frame are converted into grayscale images, the grayscale image of the previous frame after perspective transformation is subtracted from the grayscale image of the current frame, all values ​​above -0.01 are set to 0, and those below -0.01 are retained. The normal image pixel value range is 0~255, and the pixel values ​​are normalized to 0~1 in the shader, so the above values ​​higher than 0.01 and lower than -0.01 are the normalized pixel values ​​in the shader.

[0041] 12. The second-order rising signal of the current frame is calculated using a second-order rising signal shader by using the first-order rising signal of the previous frame after perspective transformation, the second-order rising signal of the previous frame after perspective transformation, and the first-order rising signal of the current frame. The second-order rising signal shader is used to take the absolute value of the difference between the first-order rising signal of the previous frame and the first-order rising signal of the current frame. If the value corresponding to a certain pixel is greater than the set flicker threshold of 0.02 (corresponding to about 5 grayscales), the current second-order rising signal corresponding to this pixel is set to 0.5. Add this value to the value of the second-order rising signal of the previous frame after perspective transformation corresponding to the pixel position of the previous frame, and subtract 0.5 / suppression frequency; if it is greater than 1, it is set to 1. The suppression frequency is set in advance, and is set to 60 in the present invention.

[0042] 13. The second-order descending signal of the current frame is calculated by using a second-order descending signal shader to obtain the second-order descending signal of the current frame by using the first-order descending signal of the previous frame after perspective transformation, the second-order descending signal of the previous frame after perspective transformation, and the first-order descending signal of the current frame. The second-order descending signal shader takes the absolute value of the difference between the first-order descending signal of the previous frame and the first-order descending signal of the current frame. If the value corresponding to a certain pixel is greater than the set flicker threshold of 0.02 (corresponding to about 5 grayscales), the current second-order descending signal corresponding to this pixel is set to 0.5. Add this value to the value of the second-order descending signal of the previous frame after perspective transformation corresponding to the pixel position of the previous frame, and subtract 0.5 / suppression frequency; if it is greater than 1, it is set to 1. The suppression frequency is set in advance, and is set to 60 in the present invention.

[0043] 14. The second-order rising signal of the current frame, the second-order falling signal of the current frame, and the previous frame flicker signal after perspective transformation use the flicker signal shader to calculate the flicker signal of the current frame. If the value of the second-order rising signal of the current frame is greater than (0.5-2.5 / suppression frequency) and the value of the second-order falling signal of the current frame is greater than (0.5-2.5 / suppression frequency), the flicker signal value of the pixel is set to 1, that is, all values ​​of the 3x3 area centered on the current pixel in the flicker signal of the current frame are added. If the sum is greater than 1, it is set to 1 and recorded as the flicker maximum value. If the difference between the flicker maximum value and the flicker signal value of the previous frame is greater than 0.2, mark the flicker signal of the point as 1. First, calculate the flicker signal of the corresponding pixel of the previous frame multiplied by the blanking rate (normal setting, usually 0.95), and then add it to the flicker maximum value. If it is greater than 1, it is set to 1 and recorded as the final value of the flicker signal of the current pixel. Get the depth information, the depth mixing weight is defined as 0 for less than 200 meters and 1 for greater than 2000 meters, with a linear difference in between. Multiply the final value of the previous pixel flicker signal by the depth mixing weight to get the final color mixing weight. This step outputs the color mixing weight and the flicker signal of the point as the flicker signal of the current frame. The previous frame flicker signal can mark whether all pixels of the current frame flicker and the intensity of the flicker.

[0044] 15. Use image processing shaders to process images to eliminate flicker based on the current frame flicker signal, depth information, current frame image, and previous frame image after perspective transformation, and obtain a scene color image with flicker eliminated. In the image processing shader: if the flicker signal of the point is 1, set the frame mixing rate to 0.99, otherwise the frame mixing rate is a pre-set value (usually 0.9). The color mixing formula is: final color = current frame color * (1-color mixing weight) + current frame color * color mixing weight * (1-frame mixing rate) + previous frame color * color mixing weight * frame mixing rate, and the color mixing weight is calculated in step 13; the image obtained in this step can largely eliminate the flicker of the original scene color image at the pixel level, while ensuring that the picture is clear and not blurred.

[0045] 16. The de-flickering scene color image, the current frame semi-transparent layer image, and the upper frame semi-transparent layer image after perspective transformation are treated with a semi-transparent de-flickering shader to obtain the final output image. The semi-transparent de-flickering shader: (RGB pixel value of the current frame semi-transparent layer image*0.5+RGB pixel value of the upper frame semi-transparent layer image after perspective transformation*0.5)*Alpha value of the current frame semi-transparent layer image+RGB pixel value of the de-flickering scene color image*(1-Alpha value of the current frame semi-transparent layer image), where the Alpha value of the current frame semi-transparent layer image is obtained in step 1. The image pixel has four channels of RGBA, and the value of the A channel is taken. This step can eliminate pixel flickering of the semi-transparent layer and merge the semi-transparent layer and the scene color layer as the final output.

[0046] Each frame of the image is executed once according to steps 1-16 in order, without repeating the execution within each frame, to obtain the final image.

[0047] As an embodiment disclosed by the present invention, the present invention also discloses a post-processing rendering method, comprising the following steps: H1. The scene color is rendered in the "before translucent layer" stage of the post-processing material, and the rendered output replaces the scene color as the first scene color; H2. The first scene color is rendered with depth of field aperture, and the rendered output replaces the first scene color as the second scene color; H3. The second scene color is rendered in the post-processing material "before tone mapping" stage, and the rendered output replaces the second scene color as the third scene color; H4. Choose whether to use the DLSS anti-aliasing algorithm according to the user-defined configuration. If not, TAA anti-aliasing is used by default; if used, deep learning super sampling DLSS is used, and the anti-aliasing rendering output replaces the third scene color as the fourth scene color; H5. Perform post-processing material rendering “AfterTAA” on the fourth scene color rendering, and the rendered output replaces the fourth scene color as the fifth scene color; H6. According to the user-defined configuration, if SZAA is selected, the fourth scene color and the semi-transparent layer are input into the temporal pixel tracking anti-aliasing method SZAA for rendering, and the rendered image is then rendered by temporal super-resolution TSR, and the rendered output replaces the fifth scene color as the sixth scene color; if SZAA is not used, the fifth scene color and the semi-transparent layer are input into temporal super-resolution (TSR) rendering, and the rendered output replaces the fifth scene color as the sixth scene color; H7. Perform post-processing material rendering, motion blur rendering and fast approximate anti-aliasing on the sixth scene color to complete the post-processing rendering.

[0048] Multi-sampling anti-aliasing (MSAA) reduces the appearance of aliasing by sampling the image multiple times and interpolating the color values ​​of the sampling points. MSAA can provide good anti-aliasing effects, especially in static scenes, but may have limited effects on dynamic scenes and detailed textures.

[0049] Fast Approximate Anti-Aliasing FXAA reduces aliasing by post-processing the image, detecting aliasing and applying a blur to smooth the edges. The advantage of FXAA is that it can be applied in real time at runtime, which works well for dynamic scenes and resource-constrained situations such as mobile devices.

[0050] DLSS is a graphics enhancement technology developed by NVIDIA. It uses deep learning methods to improve the quality and performance of real-time rendered images. The main advantage of DLSS is that it can provide higher image quality and smoother performance. By using DLSS, games and applications can render images at a lower resolution, and then through the reconstruction and enhancement process of DLSS, achieve higher visual effects and higher frame rates. This allows players to enjoy more realistic and detailed images while maintaining good performance.

[0051] TSR aims to improve the visual quality of low frame rate videos by utilizing temporal information. Traditional video enhancement techniques usually only process a single frame, while TSR takes into account the correlation between video frames. It predicts and generates additional intermediate frames by analyzing the temporal correlation and motion information in the video sequence, thereby improving the frame rate and visual smoothness of the video. Through TSR technology, low frame rate videos can achieve higher frame rates and smoother animation effects. This is very beneficial for improving video smoothness, reducing visual fatigue, and enhancing the viewing experience. TSR has application potential in many fields, such as video games, film post-production, video compression, and video reconstruction.

[0052] Although many anti-aliasing algorithms have achieved good results in processing a single image and can perfectly remove image jaggedness and make the picture delicate and smooth, there are still some problems in processing a series of continuous frames and some specific scenes.

[0053] When processing the scene color layer (SceneColor), DLSS uses a deep learning training model to convert low-resolution images into high-resolution images. However, due to the non-deterministic nature of deep learning, when processing some aliasing with specific colors and high contrast, the processing results between different frames will be different, which may cause color differences and flickering of some pixels. This flickering may be due to the DLSS model's insufficient learning of specific image features or unstable processing of noise. Since the input and processing of each frame are independent, the model may make inconsistent decisions between different frames, resulting in changes and flickering in pixel color. Figure 1 Figure 2 The part pointed by the arrow. Figure 1 Figure 2 In the two consecutive frames of images in the real-time rendering scene of UE5, the same object has inconsistent convergence at the pixel scale.

[0054] In the post-processing process of UE rendering, the translucency layer and the scene color layer are processed separately. DLSS is not very good at rendering the color of the translucency layer, especially in the night scene. The light of the transparent layer has a strong contrast with the black background of the scene color layer, which leads to unsatisfactory processing effect of DLSS and produces severe flickering. Although TSR can make good processing of the strong color contrast in the translucency layer, the processing effect of the scene color layer is not as good as DLSS.

[0055] The existing UE post-processing rendering process only supports the use of one anti-aliasing algorithm, which cannot take into account the advantages of both DLSS and TSR. Post-processing materials (PostProcessMaterial) provide fewer stages for rendering selection and cannot meet the requirements of volumetric fog rendering. There is a conflict between TSR processing of semi-transparent layers and post-processing fog rendering.

[0056] The present invention provides a temporal pixel tracking anti-aliasing algorithm SZAA in the above. The algorithm is used in the post-processing process, and is used to process the pictures output by DLSS after DLSS. The current camera posture is obtained on the UE5 Unreal Engine. This SZAA calculates the perspective transformation matrix based on the posture corresponding to the previous moment and this moment, and predicts the image of the previous moment at the current posture. The specific prediction method is perspective transformation. According to the image rendered at the current moment and the current moment predicted image of the previous moment image, the flickering pixels on the current frame image are detected and calculated and processed to eliminate the flickering.

[0057] Specifically, a post-processing rendering method of the present invention is as follows: Figure 4 As shown, the specific steps are as follows: 1) The scene color is rendered in the "before translucent layer" stage of the post-processing material, and the rendered output replaces the scene color as the first scene color; 2) The first scene color is rendered with depth of field aperture (optional), and the rendered output replaces the first scene color as the second scene color; 3) The second scene color is rendered in the post-processing material "before tone mapping" stage, and the rendered output replaces the second scene color as the third scene color; 4) Choose whether to use the DLSS anti-aliasing algorithm according to the user-defined configuration. If not, TAA anti-aliasing is used by default; if used, deep learning super sampling DLSS is used, and the anti-aliasing rendering output replaces the third scene color as the fourth scene color; 5) Performing post-processing material rendering “AfterTAA” rendering on the fourth scene color rendering, and the rendered output replaces the fourth scene color as the fifth scene color; 6) According to the user-defined configuration, if SZAA is selected, the fifth scene color and the semi-transparent layer are input into the SZAA anti-aliasing algorithm for rendering, and the rendered image is then rendered by temporal super-resolution (TSR), and the rendered output replaces the fifth scene color as the sixth scene color; if the SZAA anti-aliasing algorithm is not used, the fifth scene color and the semi-transparent layer are input into the temporal super-resolution (TSR) rendering, and the rendered output replaces the fifth scene color as the sixth scene color; 7) The sixth scene color is rendered in the post-processing material "AfterTSR" stage, and the rendered output replaces the sixth scene color to obtain the seventh scene color; 8) The seventh scene color is rendered in the post-processing material "SSR input" stage, and the rendered output replaces the seventh scene color as the eighth scene color; 9) The eighth scene color is subjected to motion blur rendering (optional), and the rendered output replaces the eighth scene color as the ninth scene color; 10) The ninth scene color is rendered in the post-processing material "Replace Tone Mapper" stage, and the rendered output replaces the ninth scene color as the tenth scene color; 11) The tenth scene color is subjected to fast approximate anti-aliasing (optional), and the rendered output replaces the tenth scene color as the eleventh scene color; 12) The eleventh scene color is rendered in the post-processing material "after tone mapping" stage, and the rendered output replaces the eleventh scene color as the twelfth scene color.

[0058] After these twelve steps, the advantages of TSR in processing semi-transparent layers, DLSS in processing scene colors, and SZAA in processing stable and anti-flicker images can be taken into account in post-processing rendering, greatly improving the user's viewing experience of the image.

[0059] As an embodiment disclosed in the present invention, the present invention further discloses a temporal pixel tracking anti-aliasing system, wherein the system implements the method described, and comprises the following modules: An acquisition module, used to acquire first data of a current frame and first data of a previous frame of an image; A first perspective transformation module, used for performing perspective transformation on the previous frame of first data to obtain the previous frame of second data; A second perspective transformation module, used for performing perspective transformation on the second data of the previous frame and the first data of the current frame to obtain the second data of the current frame; The processing module is used to process the first data of the current frame, the second data of the current frame and the second data of the previous frame to obtain a final processed image.

[0060] As an embodiment disclosed in the present invention, the present invention further discloses an electronic device, the electronic device comprising: A memory storing executable instructions; A processor is used to execute the executable instructions in the memory to implement the method described in the present invention.

[0061] As an embodiment disclosed in the present invention, the present invention further discloses a computer storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the method described in the present invention.

[0062] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0063] The above description shows and describes several preferred embodiments of the present invention, but as mentioned above, it should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the application concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not depart from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.

Claims

1. A temporal pixel tracking anti-aliasing method, characterized in that: The method comprises the steps of: S1. Obtain the first data of the current frame and the first data of the previous frame of the image; S2. Performing a perspective transformation on the first data of the previous frame to obtain the second data of the previous frame; S3. Performing perspective transformation on the second data of the previous frame and the first data of the current frame to obtain the second data of the current frame; S4. Process the first data of the current frame, the second data of the current frame and the second data of the previous frame to obtain a final processed image.

2. The temporal pixel tracking anti-aliasing method according to claim 1, characterized in that: The current frame first data includes the current frame camera posture, the current frame scene color image, the current frame semi-transparent layer image and / or the current frame depth information.

3. The temporal pixel tracking anti-aliasing method according to claim 1 or 2, characterized in that: The first data of the previous frame includes the camera posture of the previous frame, the scene color image of the previous frame, the semi-transparent layer image of the previous frame, the first-order rising signal of the previous frame, the first-order falling signal of the previous frame, the second-order rising signal of the previous frame, the second-order falling signal of the previous frame and / or the initialization flashing signal of the previous frame.

4. The temporal pixel tracking anti-aliasing method according to claim 3, characterized in that: The S2 specifically includes: S21. Calculate the camera pose of the previous frame and the camera pose of the current frame to obtain a perspective transformation matrix; S22. Perform a perspective transformation on the previous frame of first data using a perspective transformation matrix to obtain the previous frame of second data.

5. The temporal pixel tracking anti-aliasing method according to claim 4, characterized in that: The upper frame color image after perspective transformation, the upper frame semi-transparent layer image after perspective transformation, the upper frame first-order rising signal after perspective transformation, the upper frame first-order falling signal after perspective transformation, the upper frame second-order rising signal after perspective transformation, the upper frame second-order falling signal after perspective transformation and the upper frame initialization flashing signal after perspective transformation.

6. The temporal pixel tracking anti-aliasing method according to claim 5, characterized in that S3 include: S31. Calculate the perspective transformed previous frame color image and the current frame scene color image to obtain the current frame first-order rising signal and the current frame first-order falling signal; S32. Calculate the first-order rising signal of the previous frame after perspective transformation, the second-order rising signal of the previous frame after perspective transformation and the first-order rising signal of the current frame to obtain the second-order rising signal of the current frame; S33. Calculate the first-order descending signal of the previous frame after perspective transformation, the second-order descending signal of the previous frame after perspective transformation and the first-order descending signal of the current frame to obtain the second-order descending signal of the current frame; S34. Calculate the second-order rising signal of the current frame, the second-order falling signal of the current frame, and the flicker signal of the previous frame after perspective transformation to obtain the flicker signal of the current frame.

7. The temporal pixel tracking anti-aliasing method according to claim 6, characterized in that: S4 includes: S41. Eliminate flicker from the current frame flicker signal, depth information, current frame image, and previous frame image after perspective transformation to obtain a scene color image with flicker eliminated; S42. Perform a semi-transparent flicker removal process on the flicker-free scene color image, the semi-transparent layer image of the current frame, and the semi-transparent layer image of the previous frame after perspective transformation to obtain a final image.

8. A post-processing rendering method, characterized in that: The steps include: H1. The scene color is rendered in the "before translucent layer" stage of the post-processing material, and the rendered output replaces the scene color as the first scene color; H2. The first scene color is rendered with depth of field aperture, and the rendered output replaces the first scene color as the second scene color; H3. The second scene color is rendered in the post-processing material "before tone mapping" stage, and the rendered output replaces the second scene color as the third scene color; H4. Choose whether to use the DLSS anti-aliasing algorithm according to the user-defined configuration. If not, TAA anti-aliasing is used by default. If used, deep learning super sampling DLSS is used, and the anti-aliasing rendering output replaces the third scene color as the fourth scene color. H5. Perform post-processing material rendering "AfterTAA" on the fourth scene color rendering, and the rendered output replaces the fourth scene color as the fifth scene color; H6. According to the user-defined configuration, if SZAA is selected, the fourth scene color and the semi-transparent layer are input into the temporal pixel tracking anti-aliasing method SZAA described in any one of claims 1 to 7 for rendering, and the rendered image is then rendered by temporal super-resolution TSR, and the rendered output replaces the fifth scene color as the sixth scene color; if SZAA is not used, the fifth scene color and the semi-transparent layer are input into temporal super-resolution (TSR) rendering, and the rendered output replaces the fifth scene color as the sixth scene color; H7. Perform post-processing material rendering, motion blur rendering and fast approximate anti-aliasing on the sixth scene color to complete the post-processing rendering.

9. A temporal pixel tracking anti-aliasing system, characterized in that: The system implements the method described in any one of claims 1 to 7, and includes the following modules: An acquisition module, used to acquire first data of a current frame and first data of a previous frame of an image; A first perspective transformation module, used for performing perspective transformation on the previous frame of first data to obtain the previous frame of second data; A second perspective transformation module, used for performing perspective transformation on the second data of the previous frame and the first data of the current frame to obtain the second data of the current frame; The processing module is used to process the first data of the current frame, the second data of the current frame and the second data of the previous frame to obtain a final processed image.

10. An electronic device, characterized in that: The electronic device comprises: A memory storing executable instructions; A processor, wherein the processor runs the executable instructions in the memory to implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Capturing and processing of images using monolithic camera array with hetergeneous imagers

    CN102037717A

  • Image processing device, image processing method, program and recording medium

    CN103118224A

  • Seamless image stitching

    CN111052176A

  • Picture anti-aliasing method and device, computer readable medium and electronic equipment

    CN116934934A

  • System and method of temporal anti-aliasing

    US20070153023A1

Cited By

  • Visual anti-aliasing method, system and device based on Kalman filter and medium

    CN119583811A

  • Kalman filter based visual anti-aliasing method, system, device and medium

    CN119583811B

  • Visual sawtooth flicker suppression method, system and device based on state prediction and medium

    CN121053280A

  • A state prediction based method, system, device and medium for suppressing visual judder

    CN121053280B