Multi-scale dispersion field estimation correction method, device and equipment based on deep learning

By constructing a multi-scale dispersion field estimation and correction network, and using ray tracing and coherent superposition to calculate the point spread function of the liquid prism system, combined with the physical constraints of refractive index and wavelength, the problem of dispersion distortion in liquid prism imaging is solved, thereby improving imaging quality and stability.

CN123181284APending Publication Date: 2026-11-27NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511444147.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-10
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing deep learning-based liquid prism imaging methods suffer from problems such as noise sensitivity, hysteresis risk, lack of optical physical constraints, and insufficient modeling of spatial-wavelength coupled dispersion modes when correcting dispersion distortion, resulting in low imaging quality.

Method used

A multi-scale dispersion field estimation and correction network is constructed. The point spread function of the liquid prism system is calculated by ray tracing and coherent superposition. Combined with the physical constraints of refractive index and wavelength, multi-scale dilated convolution and side window filtering techniques are used for image alignment and edge enhancement. The network parameters are optimized by generator and discriminator.

Benefits of technology

It improves the accuracy and quality of liquid prism imaging, solves the problem of RGB channel spatial offset in dispersive images, repairs the loss of high-frequency details in images, and enhances the accuracy and stability of image reconstruction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181284A_ABST
    Figure CN123181284A_ABST
Patent Text Reader

Abstract

The application relates to a multi-scale dispersion field estimation and correction method, device and equipment based on deep learning. The method comprises the following steps: inputting the imaging result of a liquid prism system into a multi-scale dispersion field estimation and correction network, in the network, performing multi-scale hole convolution on the input dispersion image according to a multi-scale dispersion field estimation module, combining the relationship between the refractive index and the wavelength in the liquid prism system as a physical constraint, and outputting a dispersion field vector; performing channel alignment on the input dispersion image and the dispersion field vector according to a channel alignment module, and outputting a preliminary enhanced image by optimizing the alignment result by using side window filtering; and performing dispersion correction on the image edge of the input preliminary enhanced image according to an edge enhancement reconstruction module, and outputting a final enhanced image. The method can eliminate the dispersion of the imaging result of the liquid prism system and improve the imaging quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image enhancement technology, and in particular to a method, apparatus and device for multi-scale dispersion field estimation and correction based on deep learning. Background Technology

[0002] In optical imaging systems, liquid prisms are widely used in zoom imaging, adaptive optics, and other fields due to their tunable optical properties. However, the chromatic aberration problem of liquid prisms severely affects image quality and limits their application in high-precision scenarios. Currently, deep learning-based image enhancement methods have become an effective means of correcting chromatic aberration, mainly including three types of methods: those based on deconvolutional networks, those based on generative adversarial networks (GANs), and those based on regression networks.

[0003] Among these methods, deconvolutional network-based approaches achieve dispersion decoupling in the frequency domain by establishing a spatially varying point spread function (PSF) model. However, these methods are sensitive to noise and easily introduce artifacts under low signal-to-noise ratio conditions. Generative adversarial network-based methods, combined with optical design parameters for adversarial training, can improve image quality, but the training process carries the risk of lag and lacks explicit modeling of optical physical constraints, potentially causing the correction results to deviate from the true optical characteristics. Regression network-based methods (such as the dual regression architecture) have high computational efficiency and enhance generalization through closed-loop constraints. However, existing network architectures are insufficient in modeling the unique spatial-wavelength coupled dispersion modes of liquid prisms and mostly rely on ideal PSF estimates or large-scale real data, making it difficult to achieve stable and efficient end-to-end correction in practical optical systems. Summary of the Invention

[0004] Therefore, it is necessary to provide a deep learning-based multi-scale dispersion field estimation and correction method, device, and equipment that can accurately estimate and correct the dispersion of liquid prism imaging and improve the imaging quality of liquid prisms, in order to address the above-mentioned technical problems.

[0005] A deep learning-based multi-scale dispersion field estimation and correction method, applied to a liquid prism system, includes the following steps: The point spread function of the liquid prism system is calculated based on ray tracing and coherent superposition. The original reference image is degraded according to the point spread function and the image signal processing flow to obtain a dispersive image. The image training dataset is obtained by matching the reference image with the dispersive image one by one. A multi-scale dispersion field estimation and correction network including a generator and a discriminator is constructed. The generator consists of a multi-scale dispersion field estimation module, a channel alignment module, and an edge enhancement and reconstruction module connected in sequence. The image training dataset is input into a multi-scale dispersion field estimation and correction network. In the network, the multi-scale dispersion field estimation module first performs multi-scale dilated convolution on the input dispersion image, using the relationship between refractive index and wavelength in a liquid prism system as a physical constraint, outputting a dispersion field vector. Then, the channel alignment module aligns the input dispersion image and dispersion field vector, and uses side-window filtering to optimize the alignment result, outputting a preliminary enhanced image. Finally, the edge enhancement and reconstruction module performs dispersion correction on the input preliminary enhanced image, outputting the final enhanced image. A discriminator compares the errors between the dispersion field vector, the final enhanced image, and the corresponding ground truth values, constructing a total loss function to optimize and train the network parameters until a well-trained network is obtained. The imaging results of the liquid prism system are input into the trained network for multi-scale dispersion field estimation and correction, and the imaging enhancement results are output.

[0006] In one embodiment, the point spread function of the liquid prism system is calculated based on ray tracing and coherent superposition, including: First, a geometric optical model of the liquid prism system is performed, including constructing the ray parameterization equation, constructing the optical lens surface equation, and calculating the ray direction vector after refraction through the optical lens surface; wherein, the ray parameterization equation is expressed as: ; in, The endpoint of the light ray. The starting point of the light ray. Let be the direction vector of light propagation. The distance at which light travels; The surface equation of an optical lens is expressed as: ; in, Radial distance, For curvature, for j One deformation coefficient; and These are the x-coordinate and y-coordinate, respectively; The equation for the aspherical surface of an optical lens; The direction vector of light rays refracted by the surface of the optical lens Represented as: ; in, and , respectively, are the refractive indices of the incident and refracting media. Indicates the direction of refraction. The normal vector of the mirror surface; Then, based on Huygens' principle, each ray is considered as a secondary wave source, and its complex amplitude on the image plane is calculated, expressed as: ; in, For wave number, For wavelength, To the secondary wave source point To the image plane observation point Spatial displacement; As the tilt factor, The optical path length. This represents the unit direction vector from the exit plane of the liquid prism system to the image plane; The amplitude coefficient represents the initial complex amplitude of the incident light wave. The diffraction intensity on the image plane is calculated by summing the complex amplitudes of all light rays. , represented as: ; in, Indicates the secondary wave source point At the image plane observation point The complex amplitude distribution, for The complex conjugate; Further integration of sensor spectral response in the liquid prism system and lens vignetting Adjusting the point spread function of the liquid prism system, expressed as: ; in, As an effective composite correction factor, it characterizes the overall optical efficiency of the liquid prism system at a specific field of view and wavelength, and is used to accurately correct the shape of the point spread function; For the field of view; The expression for the point spread function is: ; in, This represents the diffraction intensity distribution of a point light source.

[0007] In one embodiment, the original reference image is degraded according to the point spread function and the image signal processing procedure to obtain a dispersive image, including: According to the energy field transformation operation in the image signal processing flow, the reference image is converted into an energy field image; the energy field transformation operation includes gamma decompression, inverse color correction, and inverse white balance. The energy field image is divided into uniform sub-image blocks, each corresponding to a different field of view. A point spread function is selected for the corresponding field of view to simulate the optical degradation effect of the liquid prism system. Degradation processing is then applied to each sub-image block to obtain aberration energy field image blocks, which are then stitched together to obtain the aberration energy field image. The point spread function, which simulates the optical degradation effect of the liquid prism system, is expressed as: ; in, To obtain the pixel position for degradation processing aberration energy field image at the location, For pixel position Energy field image at that location, Let be the pixel intensity function of the multispectral image. Noise term; This is the convolution operator; According to the inverse energy field transformation operation in the image signal processing flow, the aberration energy field image is subjected to inverse energy field transformation to obtain a dispersive image; the inverse energy field transformation operation includes Bayer filter sampling, superposition of shot noise and readout noise, white balance, color correction and gamma compression.

[0008] In one embodiment, the input dispersion image is subjected to multi-scale dilated convolution based on the multi-scale dispersion field estimation module, and the relationship between refractive index and wavelength in the liquid prism system is used as a physical constraint to output a dispersion field vector, including: In the multi-scale dispersion field estimation module, a three-layer feature pyramid with progressively increasing dilation rates is constructed using multi-scale dilated convolution. The dispersion image is then extracted using convolutional layers with different dilation rates within the feature pyramid. Multi-scale features of each channel are analyzed and dispersion field prediction is performed, outputting the dispersion field vector of the dispersion image. , where the pixel in the dispersion field vector Dispersion offset at Represented as: ; Among them, dispersive images A color image with RGB channels, i.e. , For the set of real numbers, Indicates the image height. Image width; The attention weights for each channel, For the dispersive field vector pixel passage The dispersion offset; The standard deviation is Gaussian smoothing kernel; This is the convolution operator; Among them, dispersion offset The physical constraints that satisfy the relationship between refractive index and wavelength in a liquid prism system are expressed as: ,in, The center wavelength of the RGB channel. For the refractive index gradient, Used to characterize dispersion intensity Let be the refractive index of the liquid in the liquid prism system.

[0009] In one embodiment, the input dispersive image and dispersive field vector are aligned by a channel alignment module, and the alignment result is optimized using a side-window filter to output a preliminary enhanced image, including: Dispersion image With the dispersive field vector The input channel alignment module consists of a deformable convolutional layer, several side-window convolutional layers, and a 1×1 convolutional layer connected in sequence. Deformable convolutional layers combine the PReLU activation function to adjust the dispersion field vector. For dispersive images Spatial alignment of the RGB channels is performed, and the alignment process is represented as follows: ; in, For image in channels c Pixel position Alignment strength value at; Let be the coordinates of the target pixel in the dispersive image. This represents the standard sampling offset coordinates of a 3×3 convolution kernel in a deformable convolutional layer, consisting of 9 coordinates, i.e., the convolution kernel itself. , ; The weights of each convolution kernel, Dispersion field vector In coordinates The dispersion shift in the horizontal and vertical directions, For channel c The original input image intensity value; Used to adjust the sampling position of deformable convolution in dispersive images, the deformable convolution layer dynamically aligns the RGB channels of the dispersive image by adjusting the sampling position; The side-window convolutional layer is used to restrict the sampling points of the filtering window to the same side of the target pixel for convolution according to the side-window filtering technique, thereby preserving the edge features of the dispersive image. The filtering process is represented as follows: ; in, This is the dispersion field vector optimized based on side window filtering; Indicates the direction of filtering Side window filtering operation on top, This is a set of filtering directions, consisting of 8 filtering directions. It is the square of the L2 norm.

[0010] A 1×1 convolutional layer is used to fuse the outputs of each side-window convolutional layer and perform convolution to output a preliminary enhanced image of the target dimension.

[0011] In one embodiment, the edge enhancement reconstruction module performs dispersion correction on the input preliminary enhanced image to output a final enhanced image, including: Initial image enhancement The input edge enhancement and reconstruction module consists of a shearing transform unit, a high-frequency / low-frequency dual-path convolutional network, an inverse shearing transform unit, and a convolutional attention module; among which... For the set of real numbers, , , These represent the image's channels, height, and width, respectively. The shearing transform unit is used to extract the edge gradient magnitude of the initially enhanced image using the Sobel operator. E Then, the preliminarily enhanced image is divided into high-frequency edge components and low-frequency dispersion components; edge gradient magnitude E Represented as: ;in, and The convolution kernel of the Sobel operator; This is the convolution operator; The high-frequency / low-frequency dual-path convolutional network is used to extract the features of high-frequency edge components and low-frequency dispersion components separately using a convolutional neural network. In the high-frequency path, the high-frequency edge components are weighted by combining the data weighting algorithm of shear wave coefficients. The inverse shearing transform unit is used to perform weighted fusion of the output results of the high-frequency / low-frequency dual-path convolutional network; wherein, the weight coefficients of the weighted fusion are adaptively adjusted through a spatial attention mechanism; The convolutional attention module is used to sequentially apply channel attention and spatial attention weights to the weighted fusion result output by the inverse shear transform unit, and then stitch them together through residual fusion to output the final enhanced image.

[0012] In one embodiment, a discriminator compares the errors between the dispersion field vector, the final enhanced image, and the corresponding ground truth value to construct a total loss function for optimizing network parameters, including: The discriminator compares the error between the dispersion field vector of the input dispersive image and the true dispersion field in the corresponding reference image, and also compares the error between the final enhanced image and the corresponding reference image, constructing a total loss function to optimize the network parameters during training; whereby the total loss function... Represented as: ; in, They are respectively , and Weighting coefficients; The loss is based on mean square error for dispersive field reconstruction, where N is the number of dispersive images. For the first The dispersive field vector of a dispersive image. For the first The true dispersion field in the reference image corresponding to each dispersion image; The regularization coefficient is . This is a regularization term used for calculation. The gradient; The square of the L2 norm. It is an L1 norm; For the frequency domain regularization term loss based on wavelet transform, Indicates the first j Layer wavelet decomposition, For reference image, The final enhanced image output by the network. The square of the Frobenius norm; To combat the losses, For discriminator, For the expected symbol, The gradient penalty coefficient is... Indicates calculation gradient, It is an L2 norm.

[0013] In one embodiment, the method further includes: The discriminator compares the error between the final enhanced image and the corresponding reference image to construct a multi-scale loss function for the edge enhancement and reconstruction module. This multi-scale loss function is then used to optimize the parameters of the edge enhancement and reconstruction module. The multi-scale loss function is expressed as: ; in, These are the weighting coefficients for each loss term; Represents shear wave transform. For frequency domain feature loss terms; For VGG network awareness. for VGG Perceived loss term.

[0014] A deep learning-based multi-scale dispersion field estimation and correction device, applied to a liquid prism system, the device comprising: The dataset construction module is used to calculate the point spread function of the liquid prism system based on ray tracing and coherent superposition, and to degrade the original reference image according to the point spread function and the image signal processing flow to obtain the dispersive image. By matching the reference image with the dispersive image one by one, the image training dataset is obtained. The network construction module is used to build a multi-scale dispersion field estimation and correction network including a generator and a discriminator. The generator consists of a multi-scale dispersion field estimation module, a channel alignment module, and an edge enhancement and reconstruction module connected in sequence. The network training module is used to input the image training dataset into the multi-scale dispersion field estimation and correction network. In the network, firstly, the multi-scale dispersion field estimation module performs multi-scale dilated convolution on the input dispersion image, and combines the relationship between refractive index and wavelength in the liquid prism system as a physical constraint to output the dispersion field vector. Then, the channel alignment module performs channel alignment on the input dispersion image and the dispersion field vector, and optimizes the alignment result using side window filtering to output the preliminary enhanced image. Finally, the edge enhancement and reconstruction module performs dispersion correction on the input preliminary enhanced image to output the final enhanced image. The discriminator compares the errors between the dispersion field vector, the final enhanced image and the corresponding true values, constructs the total loss function to optimize the network parameters and train until the trained network is obtained. The image enhancement module is used to input the imaging results of the liquid prism system into the trained network for multi-scale dispersion field estimation and correction, and output the image enhancement results.

[0015] A computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program performing the following steps: The point spread function of the liquid prism system is calculated based on ray tracing and coherent superposition. The original reference image is degraded according to the point spread function and the image signal processing flow to obtain a dispersive image. The image training dataset is obtained by matching the reference image with the dispersive image one by one. A multi-scale dispersion field estimation and correction network including a generator and a discriminator is constructed. The generator consists of a multi-scale dispersion field estimation module, a channel alignment module, and an edge enhancement and reconstruction module connected in sequence. The image training dataset is input into a multi-scale dispersion field estimation and correction network. In the network, the multi-scale dispersion field estimation module first performs multi-scale dilated convolution on the input dispersion image, using the relationship between refractive index and wavelength in a liquid prism system as a physical constraint, outputting a dispersion field vector. Then, the channel alignment module aligns the input dispersion image and dispersion field vector, and uses side-window filtering to optimize the alignment result, outputting a preliminary enhanced image. Finally, the edge enhancement and reconstruction module performs dispersion correction on the input preliminary enhanced image, outputting the final enhanced image. A discriminator compares the errors between the dispersion field vector, the final enhanced image, and the corresponding ground truth values, constructing a total loss function to optimize and train the network parameters until a well-trained network is obtained. The imaging results of the liquid prism system are input into the trained network for multi-scale dispersion field estimation and correction, and the imaging enhancement results are output.

[0016] The aforementioned deep learning-based multi-scale dispersion field estimation and correction method, apparatus, and equipment have the following advantages compared to existing technologies: 1. By using the point spread function based on ray tracing and coherent superposition to simulate the optical degradation effect of the liquid prism system, the reference image can be subjected to the same physical degradation as the liquid prism system. This is beneficial for quickly generating large-scale dispersive images as network training samples, saving the time of manually acquiring images to build training datasets, and ensuring the homology of the training samples with the deep cavity imaging of the liquid prism system in terms of dispersion mechanism.

[0017] 2. By constructing a multi-scale dispersion field estimation and correction network, the multi-scale dispersion field estimation module adds the relationship between refractive index and wavelength in the liquid prism system as a physical constraint, which can improve the network's generalization ability with less training data and enhance the accuracy of dispersion field estimation. The channel alignment module solves the problem of RGB channel spatial offset in dispersive images, and optimizes the channel alignment results by using side window filtering, which is beneficial to the gradient propagation of image information and maintains the edge features of the image, while ensuring the stability of network training. The edge enhancement and reconstruction module can repair the loss of high-frequency details in the image by performing dispersion correction on the image edges, and solve the problem of excessive edge smoothing caused by focusing on global image processing, further improving the accuracy of image reconstruction, thereby improving the imaging quality of liquid prism. Attached Figure Description

[0018] Figure 1 This is a flowchart illustrating a deep learning-based multi-scale dispersion field estimation and correction method in one embodiment. Figure 2 This is a schematic diagram of coherent superposition in one embodiment; Figure 3 This is a schematic diagram of the generator structure in one embodiment; Figure 4 This is a schematic diagram of the feature pyramid structure in one embodiment; Figure 5 This is a schematic diagram of the channel alignment module in one embodiment; Figure 6 This is a schematic diagram of the edge enhancement and reconstruction module in one embodiment; Figure 7 This is a schematic diagram of a comparative experiment in one embodiment; wherein, Figure 7 (a) From left to right, the original imaging results of the liquid prism system are as follows: no deflection, left side deflection -8°, right side deflection +8°, ​​and right side deflection +5°. Figure 7 (b) From left to right, the imaging results are as follows: no deflection of the liquid prism system, left side deflection of -8°, right side deflection of +8°, ​​and right side deflection of +5°, and after correction based on the deconvolution network. Figure 7 (c) From left to right, the liquid prism system is not deflected, the left side is deflected by -8°, the right side is deflected by +8°, ​​and the right side is deflected by +5°, with the imaging results based on GAN enhancement. Figure 7 (d) From left to right, the images are: no deflection of the liquid prism system, left deflection of -8°, right deflection of +8°, ​​and right deflection of +5°, and the images are obtained after multi-scale fusion based on U-net. Figure 7 (e) From left to right, the liquid prism system is undeflected, deflected by -8° on the left, deflected by +8° on the right, and deflected by +5° on the right, with the imaging enhancement results after processing based on multi-scale dispersion field estimation and correction network. Figure 8 This is a schematic diagram comparing objective image quality evaluation indicators in one embodiment; wherein, Figure 8 (a) is the peak signal-to-noise ratio (PSNR). PSNR Indicator comparison; Figure 8 (b) is for structural similarity ( SSIM Indicator comparison; Figure 8 (c) is the image quality evaluation index for liquid prisms ( LPIQE Indicator comparison; Figure 9 This is a schematic diagram of the internal structure of a computer device in one embodiment. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0020] In one embodiment, such as Figure 1As shown, a multi-scale dispersion field estimation and correction method based on deep learning is presented. This method is applied to a liquid prism system and includes the following steps: Step S1: Calculate the point spread function of the liquid prism system based on ray tracing and coherent superposition. Then, degrade the original reference image according to the point spread function and the image signal processing flow to obtain a dispersive image. Finally, obtain an image training dataset by matching the reference image with the dispersive image one-to-one.

[0021] Step S2: Construct a multi-scale dispersion field estimation and correction network including a generator and a discriminator. The generator consists of a multi-scale dispersion field estimation module, a channel alignment module, and an edge enhancement and reconstruction module connected in sequence.

[0022] Generator structure as follows Figure 3 As shown.

[0023] Step S3: Input the image training dataset into the multi-scale dispersion field estimation and correction network. In the network, firstly, the multi-scale dispersion field estimation module performs multi-scale dilated convolution on the input dispersion image, and combines the relationship between refractive index and wavelength in the liquid prism system as a physical constraint to output the dispersion field vector; then, the channel alignment module performs channel alignment on the input dispersion image and the dispersion field vector, and uses side window filtering to optimize the alignment result to output the preliminary enhanced image; finally, the edge enhancement and reconstruction module performs dispersion correction on the input preliminary enhanced image to output the final enhanced image; the discriminator compares the errors between the dispersion field vector, the final enhanced image and the corresponding true values, constructs the total loss function to optimize and train the network parameters until the trained network is obtained.

[0024] Step S4: Input the imaging results of the liquid prism system into the trained network for multi-scale dispersion field estimation and correction, and output the imaging enhancement results.

[0025] The aforementioned deep learning-based multi-scale dispersion field estimation and correction method provides a fast way to construct image training datasets. By simulating the optical degradation effect of the liquid prism system through a point spread function, it can apply physical degradation consistent with the liquid prism system to the reference image, enabling rapid generation of large-scale network training samples and simplifying the cumbersome process of extensive actual shooting and registration in traditional methods. Furthermore, it constructs a multi-scale dispersion field estimation and correction network. In this network, the multi-scale dispersion field estimation module adds the relationship between refractive index and wavelength in the liquid prism system as a physical constraint, improving the network's generalization ability with less training data and enhancing the accuracy of dispersion field estimation. The channel alignment module solves the problem of RGB channel spatial offset in dispersive images and optimizes the channel alignment results using side window filtering, which is beneficial for gradient propagation of image information and preserves the image's edge features while ensuring the stability of network training. The edge enhancement and reconstruction module corrects the dispersion at image edges, repairing high-frequency detail loss and addressing the problem of excessive edge smoothing caused by focusing on global image processing, further improving the accuracy of image reconstruction and thus enhancing the imaging quality of the liquid prism.

[0026] In one embodiment, coherent superposition is as follows: Figure 2 As shown, Figure 2 In the IMA, the effective imaging region size of the image plane spot is represented. The point spread function of the liquid prism system is calculated based on ray tracing and coherent superposition, including: First, a geometric optical model of the liquid prism system is performed, including constructing the ray parameterization equation, constructing the optical lens surface equation, and calculating the ray direction vector after refraction through the optical lens surface; wherein, the ray parameterization equation is expressed as: ; in, The endpoint of the light ray. The starting point of the light ray. Let be the direction vector of light propagation. This represents the distance light travels.

[0027] The surface of an optical lens typically consists of a spherical portion and a deformation term. The equation for the surface of an optical lens is expressed as: ; in, Radial distance, For curvature, for j One deformation coefficient; and These are the x-coordinate and y-coordinate, respectively; The equation for the aspherical surface of an optical lens is given.

[0028] The intersection point of the light ray with the surface of the optical lens is obtained through iterative approximation, and the direction vector of the light ray after refraction by the surface of the optical lens is also obtained. Represented as: ; in, and , respectively, are the refractive indices of the incident and refracting media. The direction of refraction is indicated by calculations based on Snell's law. This is the normal vector of the mirror surface.

[0029] Then, based on Huygens' principle, each ray is considered as a secondary wave source, and its complex amplitude on the image plane is calculated, expressed as: ; in, For wave number, For wavelength, To the secondary wave source point To the image plane observation point Spatial displacement; As the tilt factor, The optical path length. This represents the unit direction vector from the exit plane of the liquid prism system to the image plane; is the amplitude coefficient, which characterizes the initial complex amplitude of the incident light wave. It should be understood that in optical system modeling, the image plane refers to the two-dimensional plane in which light rays are finally focused to form a clear image after passing through optical elements (such as lenses, mirrors, etc.).

[0030] The diffraction intensity on the image plane is calculated by summing the complex amplitudes of all light rays. , represented as: ; in, Indicates the secondary wave source point At the image plane observation point The complex amplitude distribution, for The complex conjugate; Since optical aberrations are wavelength-dependent, this is further combined with the sensor spectral response in the liquid prism system. and lens vignetting Adjusting the point spread function of the liquid prism system, expressed as: ; in, As an effective composite correction factor, it characterizes the overall optical efficiency of the liquid prism system at a specific field of view and wavelength, and is used to accurately correct the shape of the point spread function; For the field of view; The expression for the point spread function is: ; in, This represents the diffraction intensity distribution of a point light source.

[0031] It should be understood that traditional methods for calculating the point spread function (PSF) employ Gaussian approximation or Fast Fourier Transform. However, for optical systems with large fields of view and large apertures, traditional methods cannot accurately describe the nonlinear distribution of imaging aberrations. Therefore, this application employs a method based on ray tracing and coherent superposition to calculate the PSF. By simulating the actual optical path through ray tracing, the nonlinear aberrations and spatial variation characteristics of the optical system can be accurately captured. By simulating the wave nature of light through coherent superposition, diffraction effects that traditional methods cannot handle can be further addressed.

[0032] In one embodiment, the original reference image is degraded according to the point spread function and the image signal processing procedure to obtain a dispersive image, including: First, the reference image is converted into an energy field image according to the energy field transformation operation in the Image Signal Processing (ISP) workflow. This energy field transformation operation includes gamma decompression, inverse color correction, and inverse white balance. Specifically, gamma decompression is performed using a standard gamma curve, while the input is fixed to... The gamma curve is used to prevent numerical instability. The gamma decompression process is represented as follows: ; in, The exponential parameter of the standard gamma curve. This represents the linear light intensity value after gamma decompression. After gamma decompression, the sRGB (standard red-green-blue) image is converted to a camera RGB image, with the inverse ratio being a fixed 3×3 color correction matrix. CCM ), represented as: ; in, CCM Determined by the camera sensor, The image is then converted to its original RGB values ​​after inverse color correction. The white balance (WB) is then inverted by dividing the image by the white balance value at a random color temperature. WB values ​​for different color temperatures are obtained through calibration. In this way, an energy field image is obtained.

[0033] After the energy field image is generated, an optical degradation effect is applied using a partitioned convolution algorithm. This algorithm first divides the energy field image into uniform sub-image blocks, with different sub-image blocks corresponding to different field-of-view angles. A point spread function corresponding to the field-of-view angle is selected to simulate the optical degradation effect of the liquid prism system, and degradation processing is applied to each sub-image block to obtain aberration energy field image blocks. These blocks are then stitched together to obtain the aberration energy field image. Specifically, because the point spread function of the liquid prism has significant spatial variation characteristics, 31 sets of point spread functions need to be calculated for different wavelengths (400-700nm range, spaced 10nm apart). The point spread function simulates the optical degradation effect of the liquid prism system and is expressed as: ; in, To obtain the pixel position for degradation processing aberration energy field image at the location, For pixel position Energy field image at that location, Let be the pixel intensity function of the multispectral image. Noise term; This represents the convolution operator. Thirty-one sets of point spread functions are discretized in the 400-700nm wavelength range at 10nm intervals, and the Gauss-Legendary integration method is used to ensure the accuracy of the wavelength integral calculation. The convolution kernels are generated by Monte Carlo ray tracing, and the deviation between their full width at half maximum (FWHM) and the measured data is controlled within 3%.

[0034] Furthermore, based on the inverse energy field transformation operation in the image signal processing flow, the aberration energy field image is subjected to inverse energy field transformation to obtain a dispersive image. The inverse energy field transformation operation includes Bayer filter sampling, superposition of shot noise and readout noise, white balance, color correction, and gamma compression. Bayer filter sampling refers to using Bayer color filters to arrange RGB color filters on a grid of light-sensing components to form a mosaic color filter array.

[0035] It should be understood that the above-mentioned dispersive image generation method combines the optical degradation effect of the liquid prism system with the parameters of the ISP, so that the physical parameters of the simulated imaging result are accurate and the visual effect is very similar to that of the real liquid prism system imaging, ensuring the homology of the dispersive image and the liquid prism system imaging in terms of dispersive mechanism.

[0036] Specifically, this application utilizes the publicly available DIV2K dataset to construct an image training dataset that corresponds one-to-one with reference images and dispersive images. The DIV2K dataset contains a total of 810 pairs of dispersive and non-dispersive images, and its optical characteristics cover high-frequency edges (building structures), complex textures (animal fur), and wide color gamut (natural scenery), which can comprehensively evaluate the network's ability to correct different spatial frequency dispersive modes.

[0037] In one embodiment, the multi-scale dispersion field estimation module models the dispersion effect by combining hierarchical feature extraction with physical constraints. The input of this module is a dispersion image. The output is a pixel-level dispersive field vector. ,in, It indicates three channels.

[0038] like Figure 4 As shown, in the multi-scale dispersion field estimation module, a three-layer feature pyramid with progressively increasing dilation rates is constructed using multi-scale dilated convolution to simultaneously capture local dispersion details and global dispersion distribution patterns. Specifically, the first convolutional layer uses standard convolution (dilation=1) to extract pixel-level offset features. The receptive field is progressively expanded in the second (dilation=2) and third (dilation=4) convolutional layers to simulate the nonlinear diffusion process of dispersion with wavelength. Each convolutional layer consists of convolutional units, batch normalization (BN) units, and ReLU activation units.

[0039] Extracting dispersive images using convolutional layers with different hole ratios in the feature pyramid Multi-scale features of each channel are analyzed and dispersion field prediction is performed, outputting the dispersion field vector of the dispersion image. , where the pixel in the dispersion field vector Dispersion offset at Represented as: ; Among them, dispersive images A color image with RGB channels, i.e. , For the set of real numbers, Indicates the image height. Image width; The attention weights for each channel, For the dispersive field vector pixel passage The dispersion offset; The standard deviation is Gaussian smoothing kernel; This is the convolution operator. It should be understood that... The dispersion shift extracted by convolutional layers with different porosity (dilation=1,2,4) can be dynamically adjusted. The contribution ratio of high-frequency edge (dilation=1) to low-frequency dispersion (dilation=4) is 2.3:1, effectively matching the spatial distribution characteristics of dispersion; Gaussian smoothing kernel Scale-adaptive smoothing makes the fused While maintaining correction accuracy, the PSNR of edge artifacts was improved.

[0040] Among them, dispersion offset The physical constraints satisfying the relationship between refractive index and wavelength in a liquid prism system are derived from the Cauchy dispersion formula, and are specifically expressed as follows: ,in, This is the center wavelength of the RGB channel (usually 650nm, 550nm, or 450nm). For the refractive index gradient, Used to characterize dispersion intensity Let be the refractive index of the liquid in the liquid prism system. This constraint can be incorporated into the loss function using the Lagrange multiplier method. Experiments show that this physically guided constraint can reduce dispersion correction errors.

[0041] It should be understood that in the low-frequency regions of a dispersive image, dominated by a smooth background, the dispersion shift is relatively uniform. However, in the high-frequency regions dominated by edges or textures, the dispersion shift exhibits large local variations. Therefore, a feature pyramid composed of multiple convolutional layers is used to estimate the dispersion field vector. This allows for the effective combination of dispersion shift characteristics at different scales, enabling a better capture of the spatial variation characteristics of the dispersion effect.

[0042] In one embodiment, considering that in liquid prism imaging, chromatic aberration mainly manifests as spatial offset of the image's RGB channels and color distortion in image edge regions, this application utilizes a channel alignment module. This module incorporates deformable convolution and side-window filtering techniques to better fit the image's geometric structure, thus solving the problem of spatial offset in the image's RGB channels. The input to the channel alignment module is the chromatic aberration image. With the dispersive field vector The output is a preliminary enhanced image.

[0043] like Figure 5 As shown, the channel alignment module consists of a deformable convolutional layer, several side-window convolutional layers, and a 1×1 convolutional layer connected in sequence.

[0044] Deformable convolutional layers combine the PReLU activation function to adjust the dispersion field vector. For dispersive images Spatial alignment of the RGB channels is performed, and the alignment process is represented as follows: ; in, For image in channels c Pixel position Alignment strength value at; Let be the coordinates of the target pixel in the dispersive image. This represents the standard sampling offset coordinates of a 3×3 convolution kernel in a deformable convolutional layer, consisting of 9 coordinates, i.e., the convolution kernel itself. , ; The weights of each convolution kernel, Dispersion field vector In coordinates The dispersion shift in the horizontal and vertical directions, For channel c The original input image intensity value; This is used to adjust the sampling position of deformable convolutions in dispersive images. The deformable convolutional layer dynamically aligns the RGB channels of the dispersive image by adjusting the sampling position. It should be understood that this dynamic sampling mechanism can effectively capture the nonlinear spatial shift caused by dispersivity, especially at edges and in high-frequency regions.

[0045] Compared to the traditional ReLU activation function, PReLU allows negative values ​​to pass through, and its mathematical expression is: ; in, This is a learnable parameter, typically initialized to 0.25. Introducing this activation function into the channel alignment module can better handle negative values ​​that may appear during convolution, avoiding image edge blurring caused by the loss of negative information.

[0046] Side-window convolutional layers are used to restrict the sampling points of the filtering window to the same side of the target pixel for convolution according to the side-window filtering (SWF) technique, thereby preserving the edge features of the dispersive image. The filtering process is represented as follows: ; in, This is the dispersion field vector optimized based on side window filtering; Indicates the direction of filtering Side window filtering operation on top, This is a set of filtering directions, consisting of 8 filtering directions. This is the square of the L2 norm. It should be understood that this is achieved through the set of constrained filtering directions. Local linear approximation in eight principal directions (0°~315°) reduces the dispersion field estimation error in edge regions, especially significantly improving the fidelity of 45° diagonal textures; the arg min optimization process dynamically selects the optimal filtering direction. It complements the multi-scale dispersion field estimation module—the low-frequency region tends to choose a 90° smooth direction, while the high-frequency region prefers a 45° / 135° direction to maintain edge continuity; The operation explicitly introduces the point spread function prior of the imaging system, making... It simultaneously satisfies the requirements of wavelength correlation and spatial continuity of optical dispersion.

[0047] A 1×1 convolutional layer is used to fuse the outputs of each side-window convolutional layer and perform convolution to output a preliminary enhanced image of the target dimension.

[0048] In one embodiment, the edge enhancement and reconstruction module performs dispersion correction on image edges using a high-frequency / low-frequency dual-path convolutional network and an attention mechanism. The input to the edge enhancement and reconstruction module is the preliminary enhanced image. ,like Figure 6 As shown, the edge enhancement and reconstruction module consists of a shearing transform unit, a high-frequency / low-frequency dual-path convolutional network, an inverse shearing transform unit, and a convolutional attention module.

[0049] The shearing transform unit is used to extract the edge gradient magnitude of the preliminary enhanced image using the Sobel operator (edge ​​detection operator). E Then, the preliminarily enhanced image is divided into high-frequency edge components (high-frequency coefficients) and low-frequency dispersion components (low-frequency coefficients); edge gradient magnitude E Represented as: ;in, and For the convolution kernel of the Sobel operator, this expression is obtained through and Directional differentiation quantizes the image in... x , y The gradient intensity in the direction provides accurate geometric features for subsequent edge enhancement; This is the convolution operator. Furthermore, energy normalization can be applied to the edge gradient magnitudes, ensuring that the edge enhancement process matches the point spread function characteristics of the optical system, thus reducing artifact rates in network testing. The Sobel operator, as the core of the edge enhancement and reconstruction module, significantly improves the recognition rate of micron-level defects in liquid prism system imaging.

[0050] The high-frequency / low-frequency dual-path convolutional network is used to extract the features of high-frequency edge components and low-frequency dispersion components separately using a convolutional neural network. In the high-frequency path, a data weighting algorithm for shear wave coefficients is combined to weight the high-frequency edge components.

[0051] The inverse shearing transform unit is used to perform weighted fusion of the outputs of the high-frequency / low-frequency dual-path convolutional network. This fusion process improves the edge sharpness (MTF50) of the reconstructed image while suppressing the additional computational overhead of the traditional shearing transform. The weight coefficients of the weighted fusion are adaptively adjusted through a spatial attention mechanism. Experiments show that when the weight coefficient is 0.7, the edge sharpening effect is optimal and no artifacts are introduced.

[0052] The convolutional attention module is used to sequentially apply channel attention and spatial attention weights to the weighted fusion result output by the inverse shear transform unit, and then stitch them together through residual fusion to output the final enhanced image.

[0053] Furthermore, the channel and spatial attention mechanism employed in this application adopts an improved CBAM (channel and spatial attention) scheme, but with two optimizations specifically for dispersion characteristics: First, in the channel attention path, the parallel structure of average pooling and max pooling is changed to serial connection to enhance the recognition capability of dispersion-sensitive channels; second, a self-attention mechanism is introduced in the spatial attention path to establish long-range dependencies through non-local similarity calculation. The complete attention process is described as follows: ; ; ; in, The result of channel attention weighting. For spatial attention weighting results, and These are the weights for the fully connected layer. This represents the channel attention weighting result and the edge gradient magnitude. E The weighted fusion result, and These are the weighting coefficients; Q , K , V For query, key, value matrix. r The channel compression factor for the fully connected layer. This is the activation function. It should be understood that the channel attention weighting process achieves adaptive enhancement of channel attention through a dual-pooling feature fusion mechanism (AvgPool + MaxPool). The spatial attention weighting process, combined with the side-window filtering direction constraint of the channel alignment module, matches the attention weight distribution with the point spread function characteristics of the optical system, and the softmax-normalized attention weights... The relationship between different spatial locations and wavelength channels was explicitly established. Through Q , K , VThe matrix decomposes the eigenvalues ​​into d = 64-dimensional subspace, with significant effect on the recovery of 45° diagonal texture.

[0054] In one embodiment, a discriminator compares the error between the dispersion field vector of the input dispersive image and the true dispersion field in the corresponding reference image, and compares the error between the final enhanced image and the corresponding reference image, constructing a total loss function to optimize the network parameters during training; wherein, the total loss function... Represented as: ; in, They are respectively , and The weighting coefficients. Specifically, they can be determined through a grid search. .

[0055] The dispersion field reconstruction loss based on mean square error directly constrains the estimation accuracy of the RGB channel offsets. The first term in this loss is calculated... and The L2 norm error between them, the second term introduces TV (total variation) regularization (regularization coefficient) This enhances the spatial smoothness of the dispersive field, suppresses high-frequency noise, and incorporates gradient constraints to adapt to the continuity characteristics of liquid prism dispersion. Here, N represents the number of dispersive images. For the first i The dispersive field vector of a dispersive image. For the first i The true dispersion field in the reference image corresponding to each dispersion image; The regularization coefficient is . This is a regularization term used for calculation. The gradient; The square of the L2 norm. It is an L1 norm.

[0056] The frequency domain regularization loss is based on wavelet transform, which forces the network to maintain structural consistency across multiple scales. Indicates the first j Layer wavelet decomposition, the output of which includes low-frequency approximation coefficients and high-frequency detail coefficients in three directions: horizontal, vertical and diagonal; For reference image, The final enhanced image output by the network. This is the square of the Frobenius norm. Experiments show that when the number of decomposition layers... At the same time, it can effectively balance the needs of edge sharpening and artifact suppression.

[0057] To address the adversarial loss, the Wasserstein GAN (Wasserstein Generative Adversarial Network) framework is employed, where the discriminator is constrained by Lipschitz constraints (gradient penalty coefficient). Improve training stability. Among these, As a discriminator, its output scalar value represents the probability of an image being real; For the expected symbol, Indicates calculation gradient, It is an L2 norm.

[0058] Specifically, when optimizing network parameters using the total loss function, the optimization algorithm employs a modified SGD (stochastic gradient descent) that introduces a momentum term. With adaptive learning rate decay: ; in, For the first t Weights after +1 iteration, learning rate The cosine annealing strategy can reduce the value from the initial value of 0.1 to 0.0001; It is a constant between 0 and 1, used to balance the weights of historical gradients and current gradients; This represents the weight update amount from the previous iteration. Influenced by both momentum and historical gradients, the batch size during training can be set to 128 to balance memory consumption and gradient variance. To address the wavelength dependence of liquid prism dispersion, a 1.2-fold weighting can be applied to the gradient of the blue channel (450nm) during backpropagation to compensate for the nonlinear effects of short-wavelength dispersion. Furthermore, with PReLU parameter updates, the negative slope parameters of each activation layer in the network... The expression for adaptive adjustment using the chain rule is: ; in, It is the PReLU activation function with a negative slope parameter. Initialized to 0.25, and dynamically optimized within the range of 0.18-0.35 during training; These are the input feature values ​​for the PReLU activation function.

[0059] In one embodiment, the method further includes: comparing the error between the final enhanced image and the corresponding reference image using a discriminator, constructing a multi-scale loss function for the edge enhancement reconstruction module, and using the multi-scale loss function to optimize the training of the edge enhancement reconstruction module parameters; wherein, the multi-scale loss function is expressed as: ; in, These are the weighting coefficients for each loss term; Represents shear wave transform. For frequency domain feature loss terms; For VGG network awareness. for VGG Perceptual loss term. Experiments show that, in Under the weighted ratio, this multi-scale loss function can effectively coordinate the optimization directions of features at different scales: the shear wave transform term focuses on repairing the geometric integrity of high-frequency structures. VGG Perceptual loss ensures the coherence of intermediate semantic features, while adversarial loss guides the output image to conform to the statistical distribution characteristics of natural images through the discriminator. This loss achieves 29.26 PSNR on the DIV2K validation set, demonstrating the effectiveness of multi-scale constraints.

[0060] To verify the dispersion elimination and image enhancement performance of the multi-scale dispersion field estimation and correction network (hereinafter referred to as MDFEC-Net) constructed in this application, comparative experiments were conducted. For example... Figure 7 As shown, four original images (arranged in order as Image 1, Image 2, Image 3, and Image 4) were selected, showing no deflection, a left deflection of -8°, a right deflection of +8°, ​​and a right deflection of +5° using the liquid prism system. Enhancement was then performed using deconvolutional networks, GANs, U-net multi-scale fusion, and U-net multi-scale fusion, respectively. Figure 7 It is evident that deconvolutional network-based correction and GAN enhancement do not significantly improve image quality. GAN enhancement methods, to some extent, introduce artificial textures into the image. Deconvolutional network-based correction is largely unable to identify chromatic aberration at image edges, only correcting it in cases of high contrast, while also introducing noticeable noise. The U-net multi-scale fusion-based correction method is inaccurate in identifying spatial offsets in the RGB channels, easily leading to tonal shifts across the entire image. The MDFEC-Net network proposed in this application eliminates chromatic aberration to some extent and also has denoising, sharpening, and brightness adjustment effects.

[0061] The imaging enhancement effect of the comparative experiment was further evaluated using objective image quality evaluation metrics. The specific objective image quality evaluation metrics used were: (1) Peak signal-to-noise ratio (PSNR) is a metric used to compare the original image with the processed image, using the original image as a reference. It is expressed as: ,in MAX This represents the maximum pixel value of the image. MSE The mean squared error between the processed image and the original image. ,in, m , nIndicates the length and width of the image. , These represent the processed image and the original image, respectively. The pixel values ​​at each point. The comparison results of the peak signal-to-noise ratio are shown in Table 1.

[0062] Table 1 Comparison of Peak Signal-to-Noise Ratio (PSNR) Indicators

[0063] (2) Structural similarity index, used to measure brightness Contrast ,structure The similarity between the processed image and the original image can be measured from three aspects as follows: ; ; ; ; in Representing image blocks respectively The mean and standard deviation, Representing image blocks covariance, Representing image blocks variance represents a constant used to prevent the divisor from being zero. The comparison results of the structural similarity indices are shown in Table 2.

[0064] Table 2 Comparison results of structural similarity indices

[0065] (3) Liquid prism image quality evaluation index, which is used to evaluate the quality of liquid prism images by linearly combining three indices: image sharpness (S), contrast (C), and color saturation (V). The specific expression of this index is as follows: ,in These represent the coefficients of the linear combination. The image sharpness should be specifically set during the comparative experiment. S The weighting factor is 0.4, and the contrast ratio is... C The weighting coefficient for is 0.3, and the weighting coefficient for color saturation V is 0.3. The comparison results of the liquid prism image quality evaluation indicators are shown in Table 3.

[0066] Table 3 Comparison of Image Quality Evaluation Indicators for Liquid Prisms

[0067] Tables 1 to 3 present the comparative results of different methods under objective quality evaluation metrics. The experimental data show that, under the LPIQE metric, the proposed MDFEC-Net outperforms all other methods compared. Under the PSNR and SSIM metrics, the proposed MDFEC-Net also outperforms other methods, with an average PSNR of 26.4787 dB, an average SSIM of 0.9317, and an average LPIQE of 36.7089, all significantly higher than other methods, especially in LPIQE. This indicates that MDFEC-Net has significant advantages in image quality restoration and detail preservation, while traditional methods and deep learning-based methods perform relatively weaker in all metrics. Some methods, such as GAN enhancement, show large fluctuations in the SSIM metric, indicating stability issues. To better compare the experimental data, Figure 8 The results of comparing different methods under objective quality evaluation indicators are presented using a line graph. For example... Figure 8 As shown, the three performance metrics of MDFEC-Net consistently rank at the top with the smallest standard deviation, demonstrating its stable and reliable performance. This comprehensive advantage stems from the synergistic effect of multi-scale dispersion field estimation and physical constraints in the network architecture, particularly the channel alignment mechanism guided by the Cauchy dispersion formula, which enables the algorithm to achieve enhanced performance while maintaining optical consistency.

[0068] In one embodiment, a deep learning-based multi-scale dispersion field estimation and correction device is provided, which is applied to a liquid prism system and includes: The dataset construction module is used to calculate the point spread function of the liquid prism system based on ray tracing and coherent superposition, and to degrade the original reference image according to the point spread function and the image signal processing flow to obtain the dispersive image. By matching the reference image with the dispersive image one by one, the image training dataset is obtained. The network construction module is used to build a multi-scale dispersion field estimation and correction network including a generator and a discriminator. The generator consists of a multi-scale dispersion field estimation module, a channel alignment module, and an edge enhancement and reconstruction module connected in sequence. The network training module is used to input the image training dataset into the multi-scale dispersion field estimation and correction network. In the network, firstly, the multi-scale dispersion field estimation module performs multi-scale dilated convolution on the input dispersion image, and combines the relationship between refractive index and wavelength in the liquid prism system as a physical constraint to output the dispersion field vector. Then, the channel alignment module performs channel alignment on the input dispersion image and the dispersion field vector, and optimizes the alignment result using side window filtering to output the preliminary enhanced image. Finally, the edge enhancement and reconstruction module performs dispersion correction on the input preliminary enhanced image to output the final enhanced image. The discriminator compares the errors between the dispersion field vector, the final enhanced image and the corresponding true values, constructs the total loss function to optimize the network parameters and train until the trained network is obtained. The image enhancement module is used to input the imaging results of the liquid prism system into the trained network for multi-scale dispersion field estimation and correction, and output the image enhancement results.

[0069] Specific limitations regarding the deep learning-based multi-scale dispersion field estimation and correction device can be found in the limitations of the deep learning-based multi-scale dispersion field estimation and correction method described above, and will not be repeated here. Each module in the aforementioned deep learning-based multi-scale dispersion field estimation and correction device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.

[0070] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 9 As shown, the computer device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a deep learning-based multi-scale dispersion field estimation and correction method. The display screen can be a liquid crystal display (LCD) or an e-ink display. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.

[0071] Those skilled in the art will understand that Figure 9The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0072] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, the processor executing the computer program to perform the following steps: The point spread function of the liquid prism system is calculated based on ray tracing and coherent superposition. The original reference image is degraded according to the point spread function and the image signal processing flow to obtain a dispersive image. The image training dataset is obtained by matching the reference image with the dispersive image one by one. A multi-scale dispersion field estimation and correction network including a generator and a discriminator is constructed. The generator consists of a multi-scale dispersion field estimation module, a channel alignment module, and an edge enhancement and reconstruction module connected in sequence. The image training dataset is input into a multi-scale dispersion field estimation and correction network. In the network, the multi-scale dispersion field estimation module first performs multi-scale dilated convolution on the input dispersion image, using the relationship between refractive index and wavelength in a liquid prism system as a physical constraint, outputting a dispersion field vector. Then, the channel alignment module aligns the input dispersion image and dispersion field vector, and uses side-window filtering to optimize the alignment result, outputting a preliminary enhanced image. Finally, the edge enhancement and reconstruction module performs dispersion correction on the input preliminary enhanced image, outputting the final enhanced image. A discriminator compares the errors between the dispersion field vector, the final enhanced image, and the corresponding ground truth values, constructing a total loss function to optimize and train the network parameters until a well-trained network is obtained. The imaging results of the liquid prism system are input into the trained network for multi-scale dispersion field estimation and correction, and the imaging enhancement results are output.

[0073] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0074] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0075] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application.

Claims

1. A multi-scale dispersion field estimation and correction method based on deep learning, characterized in that, The method is applied to a liquid prism system, and the method includes: The point spread function of the liquid prism system is calculated based on ray tracing and coherent superposition. The original reference image is degraded according to the point spread function and the image signal processing flow to obtain a dispersive image. The image training dataset is obtained by matching the reference image with the dispersive image one by one. A multi-scale dispersion field estimation and correction network including a generator and a discriminator is constructed. The generator consists of a multi-scale dispersion field estimation module, a channel alignment module, and an edge enhancement and reconstruction module connected in sequence. The image training dataset is input into the multi-scale dispersion field estimation and correction network. In the network, the input dispersion image is first subjected to multi-scale dilated convolution by the multi-scale dispersion field estimation module, and the relationship between refractive index and wavelength in the liquid prism system is used as a physical constraint to output the dispersion field vector. Then, the input dispersion image and dispersion field vector are aligned by the channel alignment module, and the alignment result is optimized by side window filtering to output the preliminary enhanced image. Finally, the image edge dispersion is corrected by the edge enhancement and reconstruction module to output the final enhanced image. The discriminator compares the error between the dispersion field vector, the final enhanced image and the corresponding true value, and constructs the total loss function to optimize the network parameters until the trained network is obtained. The imaging results of the liquid prism system are input into the trained network for multi-scale dispersion field estimation and correction, and the imaging enhancement results are output.

2. The deep learning-based multi-scale dispersion field estimation and correction method according to claim 1, characterized in that, The point spread function of a liquid prism system is calculated based on ray tracing and coherent superposition, including: First, a geometric optical model of the liquid prism system is performed, including constructing the ray parameterization equation, constructing the optical lens surface equation, and calculating the ray direction vector after refraction through the optical lens surface; wherein, the ray parameterization equation is expressed as: ; in, The endpoint of the light ray. The starting point of the light ray. Let be the direction vector of light propagation. The distance at which light travels; The surface equation of the optical lens is expressed as: ; in, Radial distance, For curvature, for One deformation coefficient; and These are the x-coordinate and y-coordinate, respectively; The equation for the aspherical surface of an optical lens; The direction vector of light rays refracted by the surface of the optical lens Represented as: ; in, and , respectively, are the refractive indices of the incident and refracting media. Indicates the direction of refraction. The normal vector of the mirror surface; Then, based on Huygens' principle, each ray is considered as a secondary wave source and its complex amplitude on the image plane is calculated, expressed as: ; in, For wave number, For wavelength, To the secondary wave source point To the image plane observation point Spatial displacement; As the tilt factor, The optical path length. This represents the unit direction vector from the exit plane of the liquid prism system to the image plane; The amplitude coefficient represents the initial complex amplitude of the incident light wave. The diffraction intensity on the image plane is calculated by summing the complex amplitudes of all light rays. , is represented as: ; in, Indicates the secondary wave source point At the image plane observation point The complex amplitude distribution, for The complex conjugate; Further integration of sensor spectral response in the liquid prism system and lens vignetting Adjusting the point spread function of the liquid prism system, expressed as: ; in, As an effective composite correction factor, it characterizes the overall optical efficiency of the liquid prism system at a specific field of view and wavelength, and is used to accurately correct the shape of the point spread function; For the field of view; The expression for the point spread function is: ; in, This represents the diffraction intensity distribution of a point light source.

3. The multi-scale dispersion field estimation and correction method based on deep learning according to claim 2, characterized in that, The original reference image is degraded according to the point spread function and image signal processing procedure to obtain a dispersive image, including: According to the energy field transformation operation in the image signal processing flow, the reference image is converted into an energy field image; wherein, the energy field transformation operation includes gamma decompression, inverse color correction, and inverse white balance; The energy field image is divided into uniform sub-image blocks, with different sub-image blocks corresponding to different field of view angles. A point spread function corresponding to the field of view angle is selected to simulate the optical degradation effect of the liquid prism system, and degradation processing is performed on each sub-image block to obtain aberration energy field image blocks. These blocks are then stitched together to obtain the aberration energy field image. The point spread function, which simulates the optical degradation effect of the liquid prism system, is expressed as: ; in, To obtain the pixel position for degradation processing aberration energy field image at the location, For pixel position Energy field image at that location, Let be the pixel intensity function of the multispectral image. Noise term; This is the convolution operator; According to the inverse energy field transformation operation in the image signal processing flow, the aberration energy field image is subjected to inverse energy field transformation to obtain a dispersive image; wherein, the inverse energy field transformation operation includes Bayer filter sampling, superposition of shot noise and readout noise, white balance, color correction, and gamma compression.

4. The multi-scale dispersion field estimation and correction method based on deep learning according to claim 1, characterized in that, The multi-scale dispersion field estimation module performs multi-scale dilated convolution on the input dispersion image and incorporates the relationship between refractive index and wavelength in the liquid prism system as a physical constraint to output a dispersion field vector, including: In the multi-scale dispersion field estimation module, a three-layer feature pyramid with progressively increasing void ratios is constructed using multi-scale dilated convolution. The dispersion image is then extracted using convolutional layers with different void ratios within the feature pyramid. Multi-scale features of each channel are analyzed and dispersion field prediction is performed, outputting the dispersion field vector of the dispersion image. , where the pixels in the dispersion field vector Dispersion offset at Represented as: ; Among them, dispersive images A color image with RGB channels, i.e. , For the set of real numbers, Indicates the image height. Image width; The attention weights for each channel, For the dispersive field vector pixel passage The dispersion offset; The standard deviation is Gaussian smoothing kernel; This is the convolution operator; Wherein, the dispersion offset The physical constraints that satisfy the relationship between refractive index and wavelength in a liquid prism system are expressed as: ,in, The center wavelength of the RGB channel. For the refractive index gradient, Used to characterize dispersion intensity Let be the refractive index of the liquid in the liquid prism system.

5. The multi-scale dispersion field estimation and correction method based on deep learning according to claim 4, characterized in that, The channel alignment module performs channel alignment on the input dispersive image and dispersive field vector, and optimizes the alignment result using side-window filtering, outputting a preliminary enhanced image, including: Dispersion image With the dispersive field vector The channel alignment module is input, which consists of a deformable convolutional layer, several side-window convolutional layers, and a 1×1 convolutional layer connected in sequence. The deformable convolutional layer, by incorporating the PReLU activation function, is used to adjust the dispersion field vector. For dispersive images Spatial alignment of the RGB channels is performed, and the alignment process is represented as follows: ; in, For the image in channels c Pixel position Alignment strength value at; Let be the coordinates of the target pixel in the dispersive image. This represents the standard sampling offset coordinates of the 3×3 convolution kernel in the deformable convolutional layer, totaling 9 coordinates, i.e., the convolution kernel. , ; The weights of each convolution kernel, Dispersion field vector In coordinates The dispersion shift in the horizontal and vertical directions, For channel c The original input image intensity value; Used to adjust the sampling position of deformable convolution in a dispersive image, the deformable convolution layer dynamically aligns the RGB channels of the dispersive image by adjusting the sampling position; The side-window convolutional layer is used to restrict the sampling points of the filtering window to the same side of the target pixel for convolution according to the side-window filtering technique, thereby preserving the edge features of the dispersive image. The filtering process is represented as follows: ; in, This is the dispersion field vector optimized based on side window filtering; Indicates the direction of filtering Side window filtering operation on top, This is a set of filtering directions, consisting of 8 filtering directions. The square of the L2 norm; The 1×1 convolutional layer is used to fuse the output of each side-window convolutional layer and perform convolution to output a preliminary enhanced image of the target dimension.

6. The deep learning-based multi-scale dispersion field estimation and correction method according to claim 5, characterized in that, The edge enhancement and reconstruction module performs dispersion correction on the input preliminary enhanced image to output the final enhanced image, including: Initial image enhancement The edge enhancement and reconstruction module is input, and the edge enhancement and reconstruction module consists of a shearing transform unit, a high-frequency / low-frequency dual-path convolutional network, an inverse shearing transform unit, and a convolutional attention module; wherein, For the set of real numbers, , , These represent the image's channels, height, and width, respectively. The shearing transformation unit is used to extract the edge gradient magnitude of the preliminary enhanced image using the Sobel operator. E Then, the preliminary enhanced image is divided into high-frequency edge components and low-frequency dispersion components; edge gradient magnitude E Represented as: ;in, and The convolution kernel of the Sobel operator; This is the convolution operator; The high-frequency / low-frequency dual-path convolutional network is used to extract the features of high-frequency edge components and low-frequency dispersion components respectively using a convolutional neural network, and in the high-frequency path, the high-frequency edge components are weighted by combining the data weighting algorithm of shear wave coefficients. The inverse shearing transform unit is used to perform weighted fusion of the output results of the high-frequency / low-frequency dual-path convolutional network; wherein, the weight coefficients of the weighted fusion are adaptively adjusted through a spatial attention mechanism; The convolutional attention module is used to sequentially apply channel attention and spatial attention weights to the weighted fusion result output by the inverse shear transform unit, and then stitch them together using residual fusion to output the final enhanced image.

7. The multi-scale dispersion field estimation and correction method based on deep learning according to claim 1, characterized in that, The discriminator compares the errors between the dispersion field vector, the final enhanced image, and the corresponding ground truth value to construct a total loss function for optimizing network parameters, including: The discriminator compares the error between the dispersion field vector of the input dispersive image and the true dispersion field in the corresponding reference image, and also compares the error between the final enhanced image and the corresponding reference image, constructing a total loss function to optimize the network parameters during training; whereby the total loss function... Represented as: ; in, They are respectively , and Weighting coefficients; The loss is based on mean square error for dispersive field reconstruction, where N is the number of dispersive images. For the first i The dispersive field vector of a dispersive image. For the first i The true dispersion field in the reference image corresponding to each dispersion image; The regularization coefficient is . This is a regularization term used for calculation. The gradient; The square of the L2 norm. It is an L1 norm; For the frequency domain regularization term loss based on wavelet transform, Indicates the first j Layer wavelet decomposition, For reference image, The final enhanced image output by the network. The square of the Frobenius norm; To combat the losses, For discriminator, For the expected symbol, The gradient penalty coefficient is... Indicates calculation gradient, It is an L2 norm.

8. The multi-scale dispersion field estimation and correction method based on deep learning according to claim 7, characterized in that, The method further includes: The discriminator compares the error between the final enhanced image and the corresponding reference image to construct a multi-scale loss function for the edge enhancement and reconstruction module, and uses this multi-scale loss function to optimize the parameters of the edge enhancement and reconstruction module; wherein, the multi-scale loss function is expressed as: ; in, These are the weighting coefficients for each loss term; Represents shear wave transform. For frequency domain feature loss terms; For VGG network awareness. for VGG Perceived loss term.

9. A multi-scale dispersion field estimation and correction device based on deep learning, characterized in that, The device is used in a liquid prism system, and the device includes: The dataset construction module is used to calculate the point spread function of the liquid prism system based on ray tracing and coherent superposition, and to perform degradation processing on the original reference image according to the point spread function and the image signal processing flow to obtain a dispersive image. By matching the reference image with the dispersive image one by one, an image training dataset is obtained. The network construction module is used to construct a multi-scale dispersion field estimation and correction network including a generator and a discriminator. The generator consists of a multi-scale dispersion field estimation module, a channel alignment module, and an edge enhancement and reconstruction module connected in sequence. The network training module is used to input the image training dataset into the multi-scale dispersion field estimation and correction network. In the network, firstly, the multi-scale dispersion field estimation module performs multi-scale dilated convolution on the input dispersion image, and combines the relationship between refractive index and wavelength in the liquid prism system as a physical constraint to output a dispersion field vector. Then, the channel alignment module performs channel alignment on the input dispersion image and the dispersion field vector, and optimizes the alignment result using side window filtering to output a preliminary enhanced image. Finally, the edge enhancement and reconstruction module performs dispersion correction on the input preliminary enhanced image to output a final enhanced image. The discriminator compares the errors between the dispersion field vector, the final enhanced image, and the corresponding true values, constructs a total loss function, and optimizes the network parameters until a well-trained network is obtained. The image enhancement module is used to input the imaging results of the liquid prism system into the trained network for multi-scale dispersion field estimation and correction, and output the imaging enhancement results.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 8.