An image processing method, apparatus, device and storage medium
By iteratively optimizing the attribute parameters and multi-scale rendering strategy of the 3D Gaussian sphere in stages, and combining realistic blurred images and asynchronous event streams, high-precision reconstructed images are generated, solving the problem of insufficient accuracy in 3D scene reconstruction under motion blur scenarios and achieving efficient new perspective rendering effects.
Patent Information
- Application Number
- CN202611618455.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-19
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies lack sufficient accuracy in 3D scene reconstruction under motion-blurred conditions, failing to meet the demands for efficient and high-precision rendering from new perspectives.
By acquiring the target camera pose, a reconstructed image is generated using 3D Gaussian sputtering based on the target 3D scene model. The attribute parameters of the 3D Gaussian sphere are iteratively optimized in stages using a sample training set. Training is performed using real blurred images and asynchronous event streams. A multi-scale pyramid rendering strategy and loss function optimization are adopted to generate a high-precision reconstructed image.
In complex environments such as low light, strong motion, and significant shaking, it improves the generation efficiency and image detail accuracy of reconstructed images from new perspectives, and solves the problem of poor reconstruction quality caused by motion blur.
Smart Images

Figure CN123181741A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer vision technology, and in particular to an image processing method, apparatus, device, and storage medium. Background Technology
[0002] 3D scene reconstruction and new perspective image rendering technologies are widely used in many fields such as intelligent driving, robot navigation, augmented reality, digital twins, mobile computational photography, and perception of complex dynamic scenes.
[0003] In real-world imaging scenarios, traditional frame-based cameras integrate incident light over time within the exposure window to output discrete image frames. In low-light conditions, extended exposure times are often necessary to ensure sufficient light intake. However, camera shake or rapid movement of objects in the scene can cause spatial trajectory integration during exposure, resulting in severe motion blur. This, in turn, limits the accuracy of 3D scene reconstruction and the rendering of new perspectives.
[0004] However, existing technologies often suffer from low deblurring and reconstruction quality in motion-blurred scenes, leading to insufficient accuracy in 3D scene reconstruction and failing to meet the demand for efficient, high-precision, and clear new perspective rendering. Summary of the Invention
[0005] This invention provides an image processing method, apparatus, device, and storage medium to solve the problem of poor image quality in new perspective reconstruction under motion-blurred scenes in existing related technologies.
[0006] In a first aspect, embodiments of the present invention provide an image processing method, the method comprising: Obtain the target camera pose; Based on the target 3D scene model, a reconstructed image corresponding to the target camera pose is generated by 3D Gaussian sputtering. The target 3D scene model is obtained by iteratively optimizing the attribute parameters of a 3D Gaussian sphere in stages using a sample training set. The sample training set includes at least one sample tuple, which includes a real blurred image and an asynchronous event stream under the same exposure period.
[0007] In a second aspect, embodiments of the present invention provide an image processing apparatus, the apparatus comprising: The acquisition module is used to acquire the target camera pose; The reconstruction module is used to generate a reconstructed image corresponding to the pose of the target camera based on the target 3D scene model through 3D Gaussian sputtering. The target 3D scene model is obtained by iteratively optimizing the attribute parameters of a 3D Gaussian sphere in stages using a sample training set. The sample training set includes at least one sample tuple, which includes a real blurred image and an asynchronous event stream under the same exposure period.
[0008] Thirdly, embodiments of the present invention provide an electronic device, the electronic device comprising: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the image processing method according to any embodiment of the present invention.
[0009] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing computer instructions that are used to cause a processor to execute and implement the image processing method described in any embodiment of the present invention.
[0010] The technical solution of this invention includes: acquiring the pose of a target camera; generating a reconstructed image corresponding to the target camera pose through three-dimensional Gaussian sputtering based on a target three-dimensional scene model; wherein the target three-dimensional scene model is obtained by iteratively optimizing the attribute parameters of a three-dimensional Gaussian sphere through a sample training set in stages, the sample training set including at least one sample tuple, the sample tuple including a real blurred image and an asynchronous event stream under the same exposure time period. Using this method, based on a high-precision, high-stability target three-dimensional scene model obtained through staged iterative training, combined with the three-dimensional Gaussian sputtering rendering method, the generation efficiency, generation quality, and image detail accuracy of reconstructed images from new perspectives can be improved under complex imaging environments such as low light, strong motion, and large-amplitude shaking.
[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1A flowchart of an image processing method provided in an embodiment of the present invention; Figure 2 This is a flowchart illustrating an image processing method in one scenario. Figure 3 This is a schematic diagram illustrating the principle of the training process in an image processing method provided in an embodiment of the present invention; Figure 4 A flowchart illustrating one possible example of an image processing method in a given scenario; Figure 5 This is a schematic diagram of the structure of an image processing device provided in an embodiment of the present invention; Figure 6 A schematic diagram of an electronic device that can be used to implement embodiments of the present invention is shown. Detailed Implementation
[0014] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0015] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0016] It is understood that before using the technical methods disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0017] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose, based on the prompt message, whether to provide personal information to the software or hardware such as the electronic device, application, server, or storage medium performing the operations of this disclosed technology.
[0018] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0019] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0020] Specifically, embodiments of the present invention provide an image processing method. Figure 1 This is a flowchart of an image processing method provided by an embodiment of the present invention. The embodiment of the present invention is applicable to scenarios where new perspective rendering is performed. The method can be executed by an image processing device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, preferably a mobile terminal, desktop computer, laptop computer, or server.
[0021] like Figure 1 As shown, the image processing method provided in this embodiment of the invention may specifically include: S101, Obtain the target camera pose.
[0022] The target camera pose can be considered as a custom combination of camera observation parameters, which may include the camera's coordinate translation in three-dimensional space, lens orientation rotation angle, etc., representing the shooting position and shooting angle of the virtual camera in a specific scene. It is used to specify the observation viewpoint of the reconstructed image to be generated, so as to realize arbitrary new viewpoint rendering.
[0023] In this embodiment, the method of obtaining the target camera pose may include user input, system customization, etc., and is not limited here.
[0024] S102. Based on the target 3D scene model, generate the reconstructed image corresponding to the target camera pose through 3D Gaussian sputtering; wherein, the target 3D scene model is obtained by iteratively optimizing the attribute parameters of the 3D Gaussian sphere in stages through a sample training set, and the sample training set includes at least one sample tuple, which includes a real blurred image and an asynchronous event stream under the same exposure period.
[0025] The target 3D scene model can be considered as a scene representation model based on a large number of 3D Gaussian spheres, obtained through complete iterative convergence of a sample training set for a specific scene. The target 3D scene model has reduced geometric and texture distortions caused by long-exposure motion blur through joint constraints of realistic blurred images and asynchronous event flows. It fully stores information such as the real 3D spatial structure, color, light transmission, and shape of the corresponding scene, supporting the reconstruction and generation of clear images from any viewpoint. A 3D Gaussian sphere can be considered as a basic modeling unit used to discretely represent spatial points of a 3D scene. Each Gaussian sphere has independent learnable attribute parameters, and the scene's shape, color, and light transmission features are fully restored through the distribution and superposition of a large number of Gaussian spheres. 3D Gaussian sputtering can be understood as a rendering algorithm based on explicit 3D Gaussian sphere parameterization of the scene, combined with differentiable rasterization technology. For example, the attribute parameters of the 3D Gaussian sphere may include parameters such as position, covariance, opacity, and color. The reconstructed image can be understood as the scene imaging result rendered and output under a new viewpoint indicated by the target camera pose. The scene imaging result can be a clear 2D image without long-exposure motion blur and with complete edge details.
[0026] Optionally, one method for obtaining the sample tuples is as follows: For degraded physical scenes containing severe motion blur and low-light environments, acquire a real blurred image within an exposure time window from a traditional frame-based image sensor, and simultaneously acquire an asynchronous event stream within the corresponding exposure time period from an event camera. The real blurred image may contain pixel-level motion blur, edge blurring, or other issues. For example, it can be physically connected to an APS+EVS fusion vision camera via a USB / PCIe bus, and logically receive image and event data streams.
[0027] For example, degraded physical scenes including severe motion blur and low-light environments can be: scenes of head-mounted displays, handheld scanning devices, and spatial computing terminals when rapidly turning their heads, violently shaking, or dynamically acquiring images; scenes of mobile phones, action cameras, drones, and wearable devices when taking long exposures in night scenes, handheld shaking, and dynamic capture; and scenes of vehicles and robots acquiring images at night, in tunnels, underground spaces, low-light factory areas, and high-speed moving environments.
[0028] It's important to note that an event camera is an asynchronous sensor inspired by the biological retina. Instead of outputting a complete frame at fixed intervals, it independently detects logarithmic brightness changes for each pixel; when the change exceeds a preset threshold, it immediately outputs an event containing pixel coordinates, a timestamp, and polarity. Event cameras offer advantages such as microsecond-level temporal resolution, high dynamic range, low redundancy, and sensitivity to moving edges.
[0029] In this embodiment, a trained target 3D scene model can be invoked, and the target camera pose can be used as a projection reference. 3D Gaussian sputtering based on a differentiable rasterizer is used to render all 3D Gaussian spheres in the target 3D scene model to generate and output a clear reconstructed image that matches the observation viewpoint indicated by the target camera pose.
[0030] In this embodiment, to ensure the quality of the reconstructed image from the new perspective, the target 3D scene model is pre-trained in stages using a combination of real blurred images and asynchronous event streams. For example, for one iteration, the real blurred image and asynchronous event stream from a sample tuple can be used as input. The real blurred image is processed by motion recovery structure algorithms such as COLMAP to extract an initial sparse point cloud, which is then used to initialize a 3D Gaussian sphere. Based on the current stage of the iteration, the rendering scale of the 3D Gaussian sphere is determined, and the 3D Gaussian sphere is rendered based on this scale, generating multiple discrete sharp image subframes. These sharp image subframes are used, on the one hand, to synthesize a predicted blurred image and compare it with the real blurred image to calculate the corresponding loss function value; on the other hand, two frames are randomly selected from these sharp image subframes or selected according to a preset rule to generate a predicted event accumulation, which is then compared with the real event accumulation detected by the sensor extracted by the asynchronous event stream to determine the corresponding loss function value. Furthermore, the asynchronous event stream is also used to generate an event intensity mask, which, combined with the error between the predicted blurred image and the real blurred image, determines the corresponding loss function value. The joint optimization of the three-dimensional Gaussian sphere is guided by the values of the aforementioned loss functions.
[0031] It should be noted that the total iteration cycle can be divided into multiple stages in advance based on experience and / or experiments. Different stages correspond to different rendering scales, with earlier stages corresponding to smaller rendering scales and vice versa. This allows for the restoration of macroscopic geometry first, followed by the supplementation of local details, thereby reducing the risk of local optima under severe ambiguity conditions. In addition, different weights can be assigned to each loss function value for each stage. For example, when the geometry is not yet stable in the early stages of training, the weight corresponding to the event-guided loss function value can be set to 0 to avoid premature intervention of high-frequency event constraints that could disrupt the formation of the 3D structure, thereby alleviating cold start conflicts and stabilizing the overall optimization process.
[0032] The image processing method provided in this invention includes: acquiring the pose of a target camera; generating a reconstructed image corresponding to the target camera pose using three-dimensional Gaussian sputtering based on a target three-dimensional scene model; wherein the target three-dimensional scene model is obtained by iteratively optimizing the attribute parameters of a three-dimensional Gaussian sphere through a sample training set in stages, the sample training set including at least one sample tuple, and the sample tuple including a real blurred image and an asynchronous event stream under the same exposure time period. Using this method, based on a high-precision, high-stability target three-dimensional scene model obtained through staged iterative training, combined with the three-dimensional Gaussian sputtering rendering method, the generation efficiency, generation quality, and image detail accuracy of reconstructed images from new perspectives can be improved under complex imaging environments such as low light, strong motion, and significant shaking.
[0033] Figure 2 This is a flowchart illustrating an image processing method under one scenario. This embodiment refines the training steps for the target 3D scene model based on the previous embodiment. The technical solution in this scenario can be combined with specific scenarios in other scenarios; for identical or related parts, descriptions of other scenarios can be used, and will not be repeated here. Figure 2 As shown, the method in this case may specifically include: S201. Obtain sample pairs from the sample training set.
[0034] In this embodiment, a set of sample pairs from the sample training set can be obtained as the input for this round of iterative training.
[0035] S202. Based on the real blurred images in the sample binary tuples, obtain multiple three-dimensional Gaussian spheres.
[0036] One implementation method is to obtain multiple three-dimensional Gaussian spheres from the real blurred image in the sample binary. Specifically, the optimization is as follows: perform feature matching on the real blurred image using the structure-of-motion-recovery algorithm to obtain an initial sparse point cloud; based on the initial sparse point cloud, generate three-dimensional Gaussian spheres with independent attribute parameters point by point to obtain multiple three-dimensional Gaussian spheres.
[0037] In this embodiment, feature matching can be performed on the real blurred image using the Structure for Motion Reconstruction (SMR) algorithm to extract the initial sparse point cloud corresponding to the scene, and a rough long-exposure camera pose sequence can also be obtained. Based on the initial sparse point cloud, a three-dimensional Gaussian sphere is initialized for each sparse point. The display parameters (attribute parameters) of this three-dimensional Gaussian sphere include at least: the coordinate vector of the three-dimensional spatial center, the covariance matrix for describing the shape, the scalar for describing the opacity, and the spherical harmonic function coefficients for describing the viewpoint-related color. It is known that at this stage, the Gaussian distribution of the scene is random and inaccurate, serving as the starting point for subsequent optimization.
[0038] The above-described technical solution in this embodiment initializes a three-dimensional Gaussian sphere point by point in a one-to-one manner with sparse point clouds, ensuring that the three-dimensional Gaussian sphere fits the spatial point distribution of the real scene, avoiding the initial geometric deviation of the scene caused by the random arrangement of Gaussian spheres, shortening the model convergence iteration steps, and configuring a complete set of independent and optimizable attribute parameters for each Gaussian sphere to support subsequent fine restoration of the size, occlusion, and reflection differences of different objects in the scene, thereby improving the detail accuracy of deblurring reconstruction and new perspective rendering.
[0039] S203. Based on each three-dimensional Gaussian sphere combined with a multi-scale pyramid rendering strategy, the predicted blurred image and the pixel-level cumulative amount of predicted events are obtained.
[0040] In this embodiment, in each iteration of the forward rendering and gradient backpropagation training process of 3D Gaussian sputtering, in order to solve the problem that ill-conditioned fuzzy observations cause the 3D Gaussian sphere to easily fall into local optimization traps, the rendering resolution can be dynamically scheduled to perform fuzzy integration and error calculation from coarse to fine.
[0041] In this embodiment, the multi-scale pyramid rendering strategy can be considered a phased, progressive rendering training mechanism. In the early stages of training, a large downsampling scaling factor is used to obtain low-resolution images for coarse training. As the number of iterations increases, the downsampling scaling factor is gradually reduced, and the rendering resolution is increased. This process, from coarse to fine, completes the optimization of the 3D Gaussian sphere parameters, forming a pyramid-shaped training process with progressively increasing resolution levels. The predicted blurred image can be understood as a blurred image generated based on the rendering results, used to compare the error with the real blurred image to optimize the attribute parameters of the 3D Gaussian sphere. The pixel-level predicted event accumulation can be considered as the theoretically expected event accumulation amount that a single pixel should generate within a certain time period, estimated based on the light-sensing response law of the event camera, using the rendered clear image subframes as a basis.
[0042] As one implementation method, the prediction of blurred images and pixel-level cumulative prediction events can be obtained by combining each three-dimensional Gaussian sphere with a multi-scale pyramid rendering strategy, and further optimized into the following steps: a1) Based on the current number of training iterations and the resolution improvement step threshold set for the total iteration cycle, and combined with a multi-scale pyramid rendering strategy, a target scaling factor is determined from a preset set of downsampling scaling factors. The target scaling factor gradually decreases as the current number of training iterations increases.
[0043] The set of downsampling scaling factors may include multiple downsampling scaling factors arranged in descending order. For example, a preset set of downsampling scaling factors... It can be The values and number of downsampling scaling factors in the downsampling scaling factor set are not limited to the examples mentioned above. They can be flexibly set according to actual needs, such as using continuous downsampling scaling factors, pyramid-shaped downsampling scaling factors with more stages, frequency pyramid-shaped downsampling scaling factors based on low-pass filtering, or adaptive downsampling scaling factor scheduling, as long as it can achieve the idea of stabilizing the macroscopic geometry from coarse to fine in explicit reconstruction. The resolution enhancement step threshold can be understood as the threshold for indicating the number of iteration steps to enhance the image resolution (i.e., the downsampling scaling factor).
[0044] In this embodiment, a resolution upscaling step threshold can be pre-set for the total iteration cycle based on experience, experiments, and / or algorithms. For example, two different resolution upscaling step thresholds can be set to divide the total iteration cycle into three stages to match the downsampling scaling factor set, and these stages are chronologically labeled as the first stage, the second stage, and the third stage. If the current training iteration step is in the first stage, the target scaling factor is determined to be 4.0 based on a multi-scale pyramid rendering strategy; if the current training iteration step is in the second stage, the target scaling factor is determined to be 2.0 based on a multi-scale pyramid rendering strategy; and if the current training iteration step is in the third stage, the target scaling factor is determined to be 1.0 based on a multi-scale pyramid rendering strategy.
[0045] b1) Determine the target resolution based on the target scaling factor and the size of the real blurred image, and obtain multiple consecutive discrete sub-poses, each of which is obtained by uniformly dividing the continuous exposure time window of the camera.
[0046] For example, the method of determining the target resolution based on the target scaling factor and the size of the real blurred image can be expressed as follows: ; in, and These are the width and height scalars of the real blurred image, respectively; This represents the current training iteration number; Increase the number of steps threshold for the resolution used to divide the first and second stages; The resolution enhancement step threshold used to divide the second and third stages; This represents the target resolution corresponding to the current training iteration step. This indicates that the current training iteration step is in the first stage, at which point the target scaling factor is 4.0. The target resolution corresponding to the current training iteration step is the product of the target scaling factor and the size of the real blurred image, that is... And so on, the current training iteration is in the second stage (…). ) and in the third stage ( The method for determining the target resolution will not be elaborated here. The target resolution applies to the sharp image subframes in the rendered output and the corresponding ground truth annotation images.
[0047] c1) At the target resolution, for each discrete sub-pose, generate a corresponding clear image sub-frame based on each of the three-dimensional Gaussian spheres.
[0048] In this embodiment, at the target resolution of the current scale, for each discrete sub-pose within the exposure time window, a corresponding clear image sub-frame can be rendered based on all three-dimensional Gaussian spheres using a rasterization renderer.
[0049] d1) Based on each of the clear image subframes, determine the predicted blurred image and the pixel-level cumulative amount of predicted events.
[0050] Optionally, one implementation of determining the predicted blurred image and the pixel-level cumulative amount of predicted events based on each of the clear image subframes can be: d11) Based on the average value of each of the clear image subframes, obtain a predicted blurred image that matches the target resolution.
[0051] In this embodiment, the predicted blurred image is obtained by averaging the values of each sharp image subframe. It is known that since each sharp image subframe is generated at the target resolution, i.e., its resolution is the target resolution, the resolution of the predicted blurred image obtained by averaging is also the target resolution.
[0052] For example, if the exposure time window contains One method for obtaining a predicted blurred image matching the target resolution based on the average value of each of the sharp image sub-frames in a discrete sub-pose can be: ; in, The predicted blurred image with a resolution equal to the target resolution; For the first A clear image subframe corresponding to a discrete sub-pose.
[0053] d12) Select two clear image subframes as the first estimation reference subframe and the second estimation reference subframe, respectively. The time corresponding to the first estimation reference subframe is less than the time corresponding to the second estimation reference subframe.
[0054] The first estimated reference subframe can be considered as the earlier-timed sharp image subframe among the two selected sharp image subframes. The second estimated reference subframe can be understood as the later-timed sharp image subframe among the two selected sharp image subframes.
[0055] In this embodiment, two clear image subframes can be selected randomly or at fixed intervals.
[0056] d13) For each pixel, extract the first grayscale value of the pixel in the first estimated reference subframe and the second grayscale value in the second estimated reference subframe.
[0057] d14) The first grayscale brightness value and the second grayscale brightness value are converted by linear and logarithmic mapping functions respectively to obtain a first converted value and a second converted value. The difference between the second converted value and the first converted value is used to obtain the brightness difference value corresponding to the pixel.
[0058] For example, one way to represent the brightness difference corresponding to a pixel can be: ;in, For linear and logarithmic mapping functions; For pixels in The first grayscale value in the first estimated reference subframe corresponding to the given time; For pixels in The second grayscale value in the second estimated reference subframe corresponding to the given time. ; This is the first conversion value; This is the second conversion value.
[0059] d15) If the first grayscale brightness value is greater than the second grayscale brightness value, then the ratio of the brightness difference to the preset negative polarity contrast threshold is determined as the predicted event accumulation at the pixel; if the first grayscale brightness value is less than or equal to the second grayscale brightness value, then the ratio of the brightness difference to the preset positive polarity contrast threshold is determined as the predicted event accumulation at the pixel.
[0060] For example, determine pixels Cumulative amount of predicted events at the location The method can be expressed as: ; in, The negative polarity contrast threshold; This is the positive polarity contrast threshold.
[0061] It is known that, in order to ensure the stability of numerical calculations, positive and negative polarity events will be separated into two independent branches for mask constraint calculation in the actual code implementation, so as to avoid the error cancellation caused by the simultaneous accumulation of positive and negative events.
[0062] The technical solution described in this embodiment introduces a multi-scale pyramid rendering strategy during training. This strategy dynamically switches the downsampling scaling factor with each iteration step, progressively increasing the target resolution. This allows the 3D Gaussian sphere to prioritize the recovery of the scene's macroscopic geometric skeleton based on low-frequency smoothed images in the early stages of training. Then, by gradually increasing the resolution, high-frequency edges and local textures are gradually recovered. This avoids the underlying cloning and splitting mechanisms being misled by blurred high-frequency gradients, thereby reducing the risk of local optima under severe blurring conditions and significantly improving the ability to escape local optima. Compared to existing related technologies that optimize based on depth constraints and keyframe weighted averaging, or rely on the quality of the preceding point cloud and subsequent alignment optimization, this solution is more conducive to stably establishing macroscopic geometry under severe blurring conditions, reducing the interference of erroneous Gaussian densification and local erroneous details on overall optimization. By accurately determining the predicted blurred image and the pixel-level cumulative amount of predicted events, it provides support for subsequent comprehensive and high-quality optimization of the 3D Gaussian sphere's attribute parameters.
[0063] S204. Based on the asynchronous event stream in the sample tuple, obtain the event intensity mask and the pixel-level actual event accumulation.
[0064] In this embodiment, the event intensity mask can be considered as a two-dimensional mask reflecting the intensity of events occurring at a pixel. The more frequently events occur at a pixel within the exposure time window, the larger the value of the corresponding event intensity mask. The pixel-level accumulation of real events can be understood as the sum of the polarities of all real events on a single pixel of the imaging plane within a fixed exposure time interval.
[0065] It is known that for event stream data, the basic physical triggering mechanism is: when a pixel... At any moment The logarithmic brightness compared to the previous trigger reference time The logarithmic change in brightness exceeds the contrast threshold. At that time, a discrete event (i.e., a real event) is generated. ,in This indicates the polarity of brightness increase or decrease.
[0066] Alternatively, pixel-level real event accumulation can be obtained based on the asynchronous event stream captured from the event camera.
[0067] One implementation method is to obtain the event intensity mask based on the asynchronous event stream in the sample tuple, which can be specified as the following steps: a2) Obtain a first time window, which is determined based on the time interval between adjacent discrete sub-poses. Each discrete sub-pose is obtained by uniformly dividing the continuous exposure time window of the camera.
[0068] The first time window can be understood as a short exposure interval defined by a set of adjacent discrete sub-poses. Each window corresponds to a short period of camera movement during the exposure process and is the smallest sequential unit accumulated by the asynchronous event stream buckets.
[0069] In this embodiment, the complete continuous exposure time window is evenly divided into multiple ordered discrete sub-poses, and the time span covered between any two adjacent sub-poses is a first time window.
[0070] b2) The asynchronous event stream is bucketed and accumulated according to the first time window to form a two-dimensional event counting graph corresponding to each first time window. By integrating all the two-dimensional event counting graphs, an event volume tensor is formed. The two-dimensional event counting graph includes the event counting result corresponding to each pixel.
[0071] In this embodiment, asynchronous event streams are filtered using each first time window as a boundary. All events whose timestamps fall within the same first time window are then combined with the event polarity values of the pixels where the event occurred to generate a two-dimensional event count map corresponding to that first time window. The two-dimensional event count map can be considered a two-dimensional graph used to count the cumulative amount of brightness changes based on actual events. Each pixel in the two-dimensional event count map stores the total amount of events superimposed at its own position during that time period, i.e., the event counting result. The two-dimensional event count maps corresponding to each first time window are stacked and integrated along the temporal dimension to form an event volume tensor, completely preserving the statistical data of brightness changes of all pixels in each time period throughout the entire exposure process.
[0072] For example, a single pixel within a single first time window Corresponding event count results One way to determine this can be expressed as: ; in, For a single first-time window; The first occurrence within that first time window A true story ; For the first time The pixel corresponding to each real event; For the first The occurrence timestamps of a real event can be determined according to the occurrence timestamps included in the real event. This real event is categorized into the corresponding first-time window; For the first The polarity corresponding to a real event, pixel Brighten by +1, darken by -1; For the Dirac impulse function, only if the current pixel Equal to the pixel where the event occurred It takes the value 1 when it is active, and 0 otherwise.
[0073] This step transforms unstructured asynchronous event streams into multi-channel event volume tensors, ensuring that they are spatially aligned with the pixel grid of the real blurred image and temporally correspond one-to-one with each discrete sub-pose.
[0074] c2) For each pixel, extract the values of the pixel in the temporal dimension of the event volume tensor, determine the absolute value of each value, add the absolute values to obtain a first summation result; determine the maximum first summation result based on each first summation result, add the maximum first summation result to a minimum constant to obtain a second summation result, and determine the ratio of the first summation result to the second summation result as the event intensity mask of the pixel.
[0075] For example, determine pixels Event intensity mask One implementation method can be specifically represented as: ; in, For pixels The first in the temporal dimension of the event volume tensor The values in each time sequence position; This is the first summation result; This is the result of the largest first sum. It is a very small constant; This is the result of the second summation.
[0076] In this embodiment, by first determining the absolute value of each value and then summing them, the pixel is uniformly counted as a valid motion signal regardless of whether it brightens or darkens. Only the total number of brightness changes of the pixel is considered, and the direction of change is not considered, thereby accurately assessing the intensity of the pixel's motion throughout the entire exposure period.
[0077] As we know, since real physical motion inevitably triggers dense and continuous real events, the event intensity mask naturally highlights the real physical contours and motion edges in the scene, thus providing support for efficient and accurate optimization of the attribute parameters of the three-dimensional Gaussian sphere and realizing spatial selective constraints.
[0078] S205. Based on the real blurred image, the predicted blurred image, the predicted cumulative event amount, the event intensity mask, and the real cumulative event amount, and combined with the target loss function and the loss weight adjustment strategy, determine the target loss value.
[0079] As one implementation method, the target loss function is composed of a fuzzy reconstruction loss function, an event consistency loss function, and an event-aware edge loss function.
[0080] The fuzzy reconstruction loss function includes L1 pixel loss and SSIM structure loss constructed based on the real labeled image and the predicted fuzzy image; the event consistency loss function includes average error loss constructed based on the cumulative amount of predicted events and the cumulative amount of real events; and the event-aware edge loss function includes edge error constructed based on the real labeled image and the predicted fuzzy image and an event intensity mask used for spatial weighting.
[0081] Accordingly, the target loss value can be determined by combining the real blurred image, the predicted blurred image, the predicted cumulative event amount, the event intensity mask, and the real cumulative event amount with the target loss function and loss weight adjustment strategy, and further optimized as follows: a3) Process the real blurred image based on the target resolution to obtain the real labeled image, and determine the first loss function value of the blurred reconstruction loss function based on the real labeled image and the predicted blurred image.
[0082] The ground truth image can be understood as a real blurred image with the target resolution, used for comparison with the predicted blurred image. The first loss function value can be understood as the calculation result of the blur reconstruction loss function, used to quantify the global deviation between the predicted blurred image obtained based on the target 3D scene model and the real truth image with long exposure obtained based on real shooting.
[0083] In this embodiment, the original high-resolution real blurred image is scaled and sampled according to the target resolution corresponding to the current round of multi-scale rendering to obtain a real labeled image with the same size as the predicted blurred image.
[0084] For example, one way to determine the first loss function value of the blurred reconstruction loss function based on the real labeled image and the predicted blurred image can be expressed as: ; in, For real-world labeled images; This is the value of the first loss function; It is an L1 norm; The structural similarity index has a value range of [0,1]. The more similar the two images are, the closer the structural similarity index value is to 1. These are weighting coefficients used to balance the proportion of L1 pixel loss and SSIM structure loss.
[0085] In this embodiment, by using the dual constraints of L1 pixel loss and SSIM structural loss, the grayscale distribution and object structure are simultaneously constrained, which reduces motion blur and edge distortion. It also avoids abrupt changes in a single loss gradient, making the convergence more stable when updating the attribute parameters of the 3D Gaussian sphere through backpropagation, and less prone to oscillation and non-convergence problems.
[0086] b3) Determine the second loss function value of the event consistency loss function based on the actual event accumulation and the predicted event accumulation.
[0087] The second loss function value can be understood as the calculation result of the event consistency loss function, which is used to quantify the dynamic deviation between the predicted event accumulation obtained based on the target 3D scene model and the real event accumulation collected by the event camera sensor.
[0088] In this embodiment, the mean squared error of the predicted cumulative event amount and the actual cumulative event amount can be calculated to obtain the second loss function value. The actual cumulative event amount collected by the event camera is used to supervise the target 3D scene model, forcing the target 3D scene model to accurately reproduce the brightness and darkness change pattern of each pixel during the exposure process, and correcting the scene fitting deviation caused by motion blur.
[0089] For example, one way to determine the second loss function value of the event consistency loss function based on the cumulative amount of actual events and the cumulative amount of predicted events can be expressed as follows: ; in, This is the value of the second loss function; This represents the cumulative amount of real events. It is an L2 norm.
[0090] c3) Determine the third loss function value of the event-aware edge loss function based on the event intensity mask and the absolute error between the real labeled image and the predicted blurred image.
[0091] Among them, the third loss function value can be regarded as the calculation result of the event-aware edge loss function. It relies on the event intensity mask to weight the image pixel error, so as to amplify the image reconstruction deviation of the dynamic motion edge region and strengthen the dynamic detail constraint.
[0092] In this embodiment, in order to suppress the fitting of color high-frequency artifacts caused by dark current and thermal noise of the event camera in areas lacking high-frequency texture, such as smooth background, when the target resolution used for rendering is restored to the resolution of the real blurred image, the event intensity mask can be used as a spatial attention weighting coefficient and multiplied pixel by pixel with the L1 absolute error between the predicted blurred image and the real labeled image to obtain the event-guided third loss function value.
[0093] For example, one way to determine the third loss function value of the event-aware edge loss function based on the event intensity mask and the absolute error between the ground truth labeled image and the predicted blurred image can be expressed as follows: ; in, This is the value of the third loss function.
[0094] Alternatively, the L1 loss can be replaced by Charbonnier loss, Huber loss, edge-aware loss, or gradient consistency loss, etc.
[0095] In this embodiment, the absolute value of the grayscale brightness difference between the predicted blurred image and the ground truth labeled image is calculated for each pixel individually, representing the magnitude of the deviation in brightness and texture at that pixel location. Next, the pixel error is multiplied by the corresponding event intensity mask. This amplifies the pixel error in dynamic motion regions (object edges, moving objects) based on the larger event intensity mask value, thereby specifically correcting the blur distortion in that region during subsequent training. In static background regions, the event intensity mask value approaches 0, and the error contributes almost nothing to the loss, requiring no unnecessary constraints. Based on this, 3D Gaussian sputtering can be forced to allocate gradients only to desharpen edges at motion boundaries with strong event intensity mask responses, while suppressing gradient updates in smooth regions where the event intensity mask is close to 0. This effectively cuts off the path for background random noise to participate in the geometry construction of the 3D Gaussian sphere.
[0096] d3) Based on the current number of training iterations and the loss weight adjustment strategy, determine the event loss weight corresponding to the second loss function value and the gating weight corresponding to the third loss function value.
[0097] The event loss weight can be considered as a weight used to control the proportion of the second loss function value in the total loss, and it changes dynamically with the number of training iterations. The gating weight can be understood as a weight used to control the proportion of the event-aware edge loss in the total loss, so as to adaptively adjust the strength of the dynamic edge constraint.
[0098] In this embodiment, when calculating the second loss function value and backpropagating to update the attribute parameters of the three-dimensional Gaussian sphere, in order to solve the serious geometric cold start tearing problem that occurs between the high-frequency event gradient and the low-frequency fuzzy photometric constraint in the early training stage, the weight of the second loss function value, i.e. the event loss weight, can be dynamically controlled.
[0099] For example, one way to determine the event loss weight corresponding to the second loss function value based on the current training iteration step and the loss weight adjustment strategy is: based on the current training iteration step... The event loss weights that take effect in the current training iteration step are determined by a piecewise nonlinear function. This method can be specifically represented as: ; in, This is the maximum upper limit of the preset event loss weight; and These are the start and end steps of the preheating process, respectively, indicating the starting point when the event loss weight begins to increase and the ending point when the event loss weight reaches its maximum value. For example, and It can be pre-configured based on experience, experimentation, algorithms, and / or models. and The total iteration cycle can be divided into three stages, sequentially from earliest to latest: stage one, stage two, and stage three, corresponding to the stages of rendering resolution adjustment. In the third stage, that is, from... From the start to the end of the iteration, the target resolution is full resolution, which is the same as the resolution of the real blurred image.
[0100] This loss weighting strategy ensures that... At that time, high-frequency event constraints are completely disabled to protect the initial macroscopic geometry from being torn apart by anomalies.
[0101] Optionally, the loss weight adjustment strategy can also be based on an exponential function, a sigmoid function, a piecewise constant function, or a function that is adaptively scheduled according to the validation error to determine the event loss weight corresponding to the current training iteration step. Any function that can weaken the value of the second loss function in the early stage of training and strengthen the value of the second loss function in the later stage is acceptable and is not restricted here.
[0102] In this embodiment, one way to determine the gate weight corresponding to the third loss function value based on the current training iteration step and the loss weight adjustment strategy is as follows: when the current training iteration step is in a stage where the corresponding target resolution is less than the resolution of the real blurred image (such as the first stage and the second stage), the gate weight is set to 0; when the current training iteration step is in a stage where the corresponding target resolution is equal to the resolution of the real blurred image (such as the third stage), the gate weight is set to a preset constant.
[0103] e3) Add the first loss function value, the first product value, and the second product value to obtain the target loss value. The first product value is obtained by multiplying the second loss function value by the event loss weight, and the second product value is obtained by multiplying the third loss function value by the gating weight.
[0104] In this embodiment, the second loss function value is weighted based on event loss weights, and the third loss function value is weighted based on gating weights. Then, the two weighted loss function values are added to the first loss function value to obtain the target loss value. This target loss value will be used as a learning metric to update the attribute parameters of all three-dimensional Gaussian spheres through gradient backpropagation.
[0105] For example, the method of linearly combining three parallel loss function values according to their respective dynamic weights to obtain the target loss value can be expressed as follows: ; in, The target loss value; The current training iteration step Effective gating weights.
[0106] The technical solution described in this embodiment dynamically schedules the event loss weights corresponding to the event consistency loss function according to the number of training iterations, enabling a smooth transition between high-frequency event constraints and low-frequency blurred image constraints, thus alleviating the gradient tearing problem in the geometric cold start phase. By accumulating and normalizing the absolute value of the event volume tensor along the time dimension, an event intensity mask is obtained. This mask is then used to spatially selectively weight edge errors to determine the value of the third loss function, strengthening supervision only in real motion edge regions. This suppresses noise fitting in smooth background regions, thereby improving the effective utilization rate of event information and reducing the adverse effects of background noise and invalid responses on the 3D reconstruction results. By combining the blurred reconstruction loss function, the event consistency loss function, and the event-aware edge loss function, and combining the event loss weights and gating weights determined based on the loss weight adjustment strategy to determine the target loss value for iterative optimization, premature interference of high-frequency event gradients with the still unstable 3D structure is avoided. This reduces the risk of geometric tearing, levitation artifacts, and optimization oscillations in the early stages of training, ensuring that explicit 3D Gaussian sputtering maintains efficient rendering while also considering macroscopic geometric stability, high-frequency temporal consistency, and edge noise resistance.
[0107] To better understand the multi-scale pyramid rendering strategy and loss weight adjustment strategy described in the embodiments of the present invention, a specific example is given here. Figure 3 This is a schematic diagram illustrating the principle of the training process in an image processing method provided in an embodiment of the present invention. Figure 3 As shown, a multi-scale pyramid rendering strategy and a loss weight adjustment strategy were implemented in conjunction during the training process of the target 3D scene model. The relationship between the horizontal axis (number of training steps (equivalent to the number of training iterations)) and the vertical axis (event loss weights) in the figure is illustrated: the current training iteration number is the same as the initial warm-up step number. Previously (i.e., in the first stage), 3D Gaussian sputtering used target resolution, for example... During rendering, the event loss weight is zero, which means the gating weight is also zero. This is equivalent to activating only the "fuzzy reconstruction loss function," where each loss function in the diagram is abbreviated as loss. At the start of the warm-up steps... Number of steps until the end of preheating In the intermediate stage (i.e., the second stage), increase the rendering resolution, such as increasing the target resolution used for rendering to [a higher resolution]. Meanwhile, the event loss weights increase linearly and smoothly. It can be seen that the gating weights are still 0 at this stage, equivalent to activating the "fuzzy reconstruction loss function" and the "event consistency loss function"; at the end of the warm-up steps... Then, at the maximum iteration cycle (i.e., the third stage), the target resolution used for rendering is restored to [the previous resolution]. At full resolution, the event loss weights reach their maximum upper limit (denoted as the target weights) and remain constant. During this stage, the gating weights are preset constants, which is equivalent to simultaneously activating the "fuzzy reconstruction loss function," the "event consistency loss function," and the "event-aware edge loss function." This process effectively prevents high-frequency gradient tearing in the early stages of training.
[0108] S206. Update the attribute parameters of each 3D Gaussian sphere according to the target loss value, return to obtain the sample pairs in the sample training set, and execute the relevant steps of obtaining multiple 3D Gaussian spheres based on the real blurred images in the sample pairs until the training end condition is met. Output the target 3D scene model according to each 3D Gaussian sphere after training.
[0109] In this embodiment, during the gradient update phase of the current training iteration, based on the target loss value, a backpropagation method is used to call an optimizer such as Adam to update the gradients of all 3D Gaussian spheres' spatial position, covariance scale, rotation quaternion, opacity, and color parameters using independent, time-decreasing adaptive learning rates, thereby reducing the overall deviation between the model prediction and the actual collected data. If the training termination condition is not met, steps S201-S206 are re-executed. When the training termination condition is met, training stops, and a converged target 3D scene model is output based on the optimized attribute parameters of each 3D Gaussian sphere. This target 3D scene model can be rendered in real-time at a very high frame rate using a differentiable rasterizer to produce a clear target image (reconstructed image) from any new perspective.
[0110] For example, training termination conditions may include reaching the maximum number of iterations and / or the target loss value reaching a preset threshold multiple times.
[0111] The above-described technical solution in this embodiment, while retaining the advantages of explicit representation and fast rendering of 3D Gaussian sputtering, introduces asynchronous event streams to provide high temporal resolution supervision, and combines multi-scale pyramid rendering strategy, target loss function and progressive loss weight adjustment strategy for training. This enables the dynamic deblurring reconstruction task to take into account both efficiency and temporal constraints, thereby obtaining a target 3D scene model that can simultaneously take into account geometric stability, detail recovery ability and noise resistance, thus better meeting the needs of 3D deblurring reconstruction in real complex scenes.
[0112] Figure 4 This is a flowchart illustrating one possible example of an image processing method in a given scenario. Figure 4 As shown, for one iteration, the input can be a real blurred image from a sample tuple and an asynchronous event stream. The real blurred image is processed by the Structure for Motion Reconstruction algorithm to extract an initial sparse point cloud, which is then used to initialize a 3D Gaussian sphere. Depending on the stage of the current iteration, the 3D Gaussian sphere is rendered at multiple scales, S1, S2, and S3, where S1, S2, and S3 correspond to rendering scales when the target scaling factor is 4.0, 2.0, and 1.0, respectively, generating multiple discrete sharp image subframes (e.g., sharp image subframes). to Drawings are abbreviated as subframes to These clear image subframes are used, on the one hand, to synthesize the predicted blurred image and compare it with the real blurred image to calculate the first loss function value corresponding to the blur reconstruction loss function; on the other hand, two frames are randomly or selected from these clear image subframes according to a preset rule (e.g., clear image subframes). and The system generates a predicted event accumulation and compares it with the actual event accumulation detected by the sensors, extracted from the asynchronous event stream, to determine the second loss function value corresponding to the event consistency loss function. Furthermore, the asynchronous event stream is used to generate an event intensity mask, which, combined with the error between the predicted blurred image and the actual blurred image, is spatially attention-weighted to calculate the third loss function value corresponding to the event perception edge loss function. The first, second, and third loss function values ultimately guide the joint optimization of the 3D Gaussian sphere attribute parameters.
[0113] Figure 5 This is a schematic diagram of the structure of an image processing apparatus provided in an embodiment of the present invention. Figure 5 As shown, the device includes an acquisition module 51 and a reconstruction module 52.
[0114] Among them, the acquisition module 51 is used to acquire the target camera pose; Reconstruction module 52 is used to generate a reconstructed image corresponding to the pose of the target camera based on the target 3D scene model by 3D Gaussian sputtering; The target 3D scene model is obtained by iteratively optimizing the attribute parameters of a 3D Gaussian sphere in stages using a sample training set. The sample training set includes at least one sample tuple, which includes a real blurred image and an asynchronous event stream under the same exposure period.
[0115] The image processing device provided in this embodiment of the invention, based on a high-precision and high-stability target 3D scene model obtained through phased iterative training, combined with a 3D Gaussian sputtering rendering method, can improve the generation efficiency, generation quality, and image detail accuracy of reconstructed images from new perspectives under complex imaging environments such as low light, strong motion, and large jitter.
[0116] Furthermore, the image processing apparatus further includes: The data acquisition module is used to acquire sample pairs from the training set. A Gaussian sphere determination module is used to obtain multiple three-dimensional Gaussian spheres based on the real blurred images in the sample binary; The Gaussian sphere processing module is used to obtain the predicted blurred image and the pixel-level cumulative amount of predicted events based on the three-dimensional Gaussian spheres combined with a multi-scale pyramid rendering strategy. An asynchronous event stream processing module is used to obtain an event intensity mask and pixel-level real event accumulation based on the asynchronous event stream in the sample tuple; The loss value determination module is used to determine the target loss value based on the real blurred image, the predicted blurred image, the predicted event accumulation, the event intensity mask, and the real event accumulation, combined with the target loss function and the loss weight adjustment strategy. The determination and output module is used to update the attribute parameters of each of the three-dimensional Gaussian spheres according to the target loss value, return to obtain the sample tuples in the sample training set, and perform the relevant steps of obtaining multiple three-dimensional Gaussian spheres according to the real blurred images in the sample tuples until the training end condition is met, and output the target three-dimensional scene model according to each three-dimensional Gaussian sphere after the training ends.
[0117] Furthermore, the Gaussian sphere determination module can specifically be used for: The initial sparse point cloud is obtained by feature matching of the real blurred image using the structure-of-motion reconstruction algorithm. Based on the initial sparse point cloud, multiple three-dimensional Gaussian spheres are obtained by generating corresponding three-dimensional Gaussian spheres with independent attribute parameters point by point. The attribute parameters include a three-dimensional spatial center coordinate vector, a covariance matrix describing the shape, a scalar describing the opacity, and spherical harmonic function coefficients describing viewpoint-related colors.
[0118] Furthermore, the Gaussian sphere processing module may specifically include: The first determining unit is used to determine a target scaling factor from a preset set of downsampling scaling factors based on the current number of training iterations and a resolution improvement step threshold set for the total iteration cycle, combined with a multi-scale pyramid rendering strategy. The target scaling factor gradually decreases as the current number of training iterations increases. The second determining unit is used to determine the target resolution based on the target scaling factor and the size of the real blurred image, and to obtain multiple consecutive discrete sub-poses, each of which is obtained by uniformly dividing the continuous exposure time window of the camera. A clear image subframe generation unit is used to generate a corresponding clear image subframe based on each of the three-dimensional Gaussian spheres for each discrete sub-pose at the target resolution. A clear image subframe processing unit is used to determine the predicted blurred image and the pixel-level cumulative amount of predicted events based on each of the clear image subframes.
[0119] Furthermore, the clear image subframe processing unit can specifically be used for: Two clear image subframes are selected as the first estimation reference subframe and the second estimation reference subframe, respectively, and the time corresponding to the first estimation reference subframe is shorter than the time corresponding to the second estimation reference subframe. For each pixel, extract the first grayscale value of the pixel in the first estimated reference subframe and the second grayscale value in the second estimated reference subframe; The first grayscale brightness value and the second grayscale brightness value are converted by linear and logarithmic mapping functions respectively to obtain a first converted value and a second converted value. The difference between the second converted value and the first converted value is then calculated to obtain the brightness difference value corresponding to the pixel. If the first grayscale brightness value is greater than the second grayscale brightness value, then the ratio of the brightness difference to the preset negative polarity contrast threshold is determined as the predicted event accumulation at the pixel. If the first grayscale brightness value is less than or equal to the second grayscale brightness value, then the ratio of the brightness difference to the preset positive polarity contrast threshold is determined as the predicted event accumulation at the pixel.
[0120] Furthermore, the asynchronous event stream processing module can specifically be used for: A first time window is obtained, which is determined based on the time interval between adjacent discrete sub-poses. Each discrete sub-pose is obtained by uniformly dividing the continuous exposure time window of the camera. The asynchronous event stream is bucketed and accumulated according to the first time window to form a two-dimensional event counting graph corresponding to each first time window. By integrating all the two-dimensional event counting graphs, an event volume tensor is formed. The two-dimensional event counting graph includes the event counting result corresponding to each pixel. For each pixel, extract the values of the pixel in the temporal dimension of the event volume tensor, determine the absolute value of each value, and add the absolute values to obtain the first summation result; Based on each of the first summation results, a maximum first summation result is determined. The maximum first summation result is added to a minimum constant to obtain a second summation result. The ratio of the first summation result to the second summation result is determined as the event intensity mask of the pixel.
[0121] Furthermore, the target loss function is composed of a fuzzy reconstruction loss function, an event consistency loss function, and an event-aware edge loss function; The loss value determination module can specifically be used for: The real blurred image is processed based on the target resolution to obtain a real labeled image. The first loss function value of the blurred reconstruction loss function is determined based on the real labeled image and the predicted blurred image. Based on the cumulative amount of actual events and the cumulative amount of predicted events, determine the second loss function value of the event consistency loss function; The third loss function value of the event-aware edge loss function is determined based on the event intensity mask and the absolute error between the real labeled image and the predicted blurred image. Based on the current number of training iterations and the loss weight adjustment strategy, determine the event loss weight corresponding to the second loss function value and the gating weight corresponding to the third loss function value. The target loss value is obtained by adding the first loss function value, the first product value, and the second product value. The first product value is obtained by multiplying the second loss function value by the event loss weight, and the second product value is obtained by multiplying the third loss function value by the gating weight.
[0122] The image processing apparatus provided in the embodiments of the present invention can execute the image processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0123] Figure 6A schematic diagram of an electronic device 60 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0124] like Figure 6 As shown, the electronic device 60 includes at least one processor 61 and a memory, such as a read-only memory (ROM) 62 and a random access memory (RAM) 63, communicatively connected to the at least one processor 61. The memory stores computer programs executable by the at least one processor. The processor 61 can perform various appropriate actions and processes based on the computer program stored in the ROM 62 or loaded from storage unit 68 into the RAM 63. The RAM 63 can also store various programs and data required for the operation of the electronic device 60. The processor 61, ROM 62, and RAM 63 are interconnected via a bus 64. An input / output (I / O) interface 65 is also connected to the bus 64.
[0125] Multiple components in electronic device 60 are connected to I / O interface 65, including: input unit 66, such as keyboard, mouse, etc.; output unit 67, such as various types of monitors, speakers, etc.; storage unit 68, such as disk, optical disk, etc.; and communication unit 69, such as network card, modem, wireless transceiver, etc. Communication unit 69 allows electronic device 60 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0126] Processor 61 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 61 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 61 performs the various methods and processes described above, such as image processing methods.
[0127] In some embodiments, the image processing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 68. In some embodiments, part or all of the computer program may be loaded and / or mounted on electronic device 60 via ROM 62 and / or communication unit 69. When the computer program is loaded into RAM 63 and executed by processor 61, one or more steps of the image processing method described above may be performed. Alternatively, in other embodiments, processor 61 may be configured to perform the image processing method by any other suitable means (e.g., by means of firmware).
[0128] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0129] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0130] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0131] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0132] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0133] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0134] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0135] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. An image processing method, characterized in that, include: Obtain the target camera pose; Based on the target 3D scene model, a reconstructed image corresponding to the target camera pose is generated by 3D Gaussian sputtering. The target 3D scene model is obtained by iteratively optimizing the attribute parameters of a 3D Gaussian sphere in stages using a sample training set. The sample training set includes at least one sample tuple, which includes a real blurred image and an asynchronous event stream under the same exposure period.
2. The method according to claim 1, characterized in that, The training steps for the target 3D scene model include: Obtain sample pairs from the training set; Based on the real blurred images in the sample binary, multiple three-dimensional Gaussian spheres are obtained; Based on the aforementioned three-dimensional Gaussian spheres combined with a multi-scale pyramid rendering strategy, the predicted blurred image and the pixel-level cumulative amount of predicted events are obtained. Based on the asynchronous event stream in the sample tuple, obtain the event intensity mask and the pixel-level actual event accumulation. Based on the real blurred image, the predicted blurred image, the predicted event accumulation, the event intensity mask, and the real event accumulation, the target loss value is determined by combining the target loss function and the loss weight adjustment strategy. Update the attribute parameters of each of the three-dimensional Gaussian spheres according to the target loss value, return to obtain the sample pairs in the sample training set again, and perform the relevant steps of obtaining multiple three-dimensional Gaussian spheres according to the real blurred images in the sample pairs until the training end condition is met. Output the target three-dimensional scene model according to each three-dimensional Gaussian sphere after the training ends.
3. The method according to claim 2, characterized in that, The process of obtaining multiple three-dimensional Gaussian spheres based on the real blurred images in the sample binary tuples includes: The initial sparse point cloud is obtained by feature matching of the real blurred image using the structure-of-motion reconstruction algorithm. Based on the initial sparse point cloud, multiple three-dimensional Gaussian spheres are obtained by generating corresponding three-dimensional Gaussian spheres with independent attribute parameters point by point. The attribute parameters include a three-dimensional spatial center coordinate vector, a covariance matrix describing the shape, a scalar describing the opacity, and spherical harmonic function coefficients describing viewpoint-related colors.
4. The method according to claim 2, characterized in that, The method for obtaining the predicted blurred image and pixel-level cumulative predicted events based on the three-dimensional Gaussian spheres combined with a multi-scale pyramid rendering strategy includes: Based on the current number of training iterations and the resolution improvement step threshold set for the total iteration cycle, combined with a multi-scale pyramid rendering strategy, a target scaling factor is determined from a preset set of downsampling scaling factors. The target scaling factor gradually decreases as the current number of training iterations increases. The target resolution is determined based on the target scaling factor and the size of the real blurred image, and multiple consecutive discrete sub-poses are obtained. Each discrete sub-pose is obtained by uniformly dividing the continuous exposure time window of the camera. At the target resolution, for each discrete sub-pose, a corresponding clear image sub-frame is generated based on each of the three-dimensional Gaussian spheres; Based on each of the described clear image subframes, determine the predicted blurred image and the pixel-level cumulative amount of predicted events.
5. The method according to claim 4, characterized in that, The step of determining the predicted blurred image and the pixel-level cumulative amount of predicted events based on each of the clear image subframes includes: Based on the average value of each of the clear image subframes, a predicted blurred image matching the target resolution is obtained; Two clear image subframes are selected as the first estimation reference subframe and the second estimation reference subframe, respectively, and the time corresponding to the first estimation reference subframe is shorter than the time corresponding to the second estimation reference subframe. For each pixel, extract the first grayscale value of the pixel in the first estimated reference subframe and the second grayscale value in the second estimated reference subframe; The first grayscale brightness value and the second grayscale brightness value are converted by linear and logarithmic mapping functions respectively to obtain a first converted value and a second converted value. The difference between the second converted value and the first converted value is then calculated to obtain the brightness difference value corresponding to the pixel. If the first grayscale brightness value is greater than the second grayscale brightness value, then the ratio of the brightness difference to the preset negative polarity contrast threshold is determined as the predicted event accumulation at the pixel. If the first grayscale brightness value is less than or equal to the second grayscale brightness value, then the ratio of the brightness difference to the preset positive polarity contrast threshold is determined as the predicted event accumulation at the pixel.
6. The method according to claim 2, characterized in that, The step of obtaining the event intensity mask based on the asynchronous event stream in the sample binary includes: A first time window is obtained, which is determined based on the time interval between adjacent discrete sub-poses. Each discrete sub-pose is obtained by uniformly dividing the continuous exposure time window of the camera. The asynchronous event stream is bucketed and accumulated according to the first time window to form a two-dimensional event counting graph corresponding to each first time window. By integrating all the two-dimensional event counting graphs, an event volume tensor is formed. The two-dimensional event counting graph includes the event counting result corresponding to each pixel. For each pixel, extract the values of the pixel in the temporal dimension of the event volume tensor, determine the absolute value of each value, and add the absolute values to obtain the first summation result; Based on each of the first summation results, a maximum first summation result is determined. The maximum first summation result is added to a minimum constant to obtain a second summation result. The ratio of the first summation result to the second summation result is determined as the event intensity mask of the pixel.
7. The method according to claim 2, characterized in that, The target loss function is composed of a fuzzy reconstruction loss function, an event consistency loss function, and an event-aware edge loss function; The step of determining the target loss value based on the real blurred image, the predicted blurred image, the predicted event accumulation, the event intensity mask, and the real event accumulation, combined with the target loss function and loss weight adjustment strategy, includes: The real blurred image is processed based on the target resolution to obtain a real labeled image. The first loss function value of the blurred reconstruction loss function is determined based on the real labeled image and the predicted blurred image. Based on the cumulative amount of actual events and the cumulative amount of predicted events, determine the second loss function value of the event consistency loss function; The third loss function value of the event-aware edge loss function is determined based on the event intensity mask and the absolute error between the real labeled image and the predicted blurred image. Based on the current number of training iterations and the loss weight adjustment strategy, determine the event loss weight corresponding to the second loss function value and the gating weight corresponding to the third loss function value. The target loss value is obtained by adding the first loss function value, the first product value, and the second product value. The first product value is obtained by multiplying the second loss function value by the event loss weight, and the second product value is obtained by multiplying the third loss function value by the gating weight.
8. An image processing apparatus, characterized in that, include: The acquisition module is used to acquire the target camera pose; The reconstruction module is used to generate a reconstructed image corresponding to the pose of the target camera based on the target 3D scene model through 3D Gaussian sputtering. The target 3D scene model is obtained by iteratively optimizing the attribute parameters of a 3D Gaussian sphere in stages using a sample training set. The sample training set includes at least one sample tuple, which includes a real blurred image and an asynchronous event stream under the same exposure period.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the image processing method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the image processing method according to any one of claims 1-7.
