A low-light image enhancement system and method based on a state space model and double-flow constraints
By employing a state-space model and a dual-stream constraint-based low-light image enhancement method, and leveraging the synergistic effects of multi-scale illumination estimation, denoising, implicit chromaticity refinement, and gradient-guided Mamba modules, this method addresses the issues of inaccurate illumination estimation, unnatural color restoration, and loss of edge details in low-light images, achieving high-quality brightness restoration and color correction.
Patent Information
- Application Number
- CN202611373702.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-07
- Publication Date
- 2026-11-20
AI Technical Summary
Existing low-light image enhancement methods suffer from unnatural color correction, excessive smoothing of edge details, and inaccurate illumination estimation during the denoising and brightness enhancement process, especially under extreme lighting conditions.
A parallel design of a multi-scale illumination estimation module, a denoising and implicit chromaticity refinement module, and a gradient-guided Mamba module based on a state-space model is adopted. By combining multi-scale illumination perception, denoising and gradient guidance, high-quality brightness restoration and color correction are achieved through multi-scale illumination feature modulation, implicit color correction and gradient attention modulation.
It effectively solves the problems of inaccurate illumination estimation, unnatural color restoration, and loss of edge details, improves the brightness restoration effect and visual quality of low-light images, and maintains the natural colors and high-frequency structural details of the images.
Smart Images

Figure CN123141218A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer vision and image processing technology, specifically to a low-light image enhancement system and method based on a state-space model and two-stream constraints. Background Technology
[0002] In natural and real-world shooting environments, images often suffer from low brightness, low contrast, severe noise, and color distortion due to insufficient ambient light, limited sensor dynamic range, and restricted exposure time. These low-light images not only severely impact the human visual experience but also significantly reduce the accuracy and robustness of subsequent computer vision tasks such as object detection, semantic segmentation, autonomous driving, and security monitoring. Therefore, researching efficient and high-quality methods for brightness enhancement, noise reduction, and detail restoration of low-light images has significant academic value and practical application prospects.
[0003] In recent years, techniques for enhancing low-light images have been continuously evolving, mainly covering traditional methods based on Retinex theory and methods based on deep learning.
[0004] First, traditional methods based on the Retinex principle assume that an image is composed of the reflection component and the illumination component, and brightness restoration is achieved by estimating the illumination map. Representative methods include single-scale Retinex (SSR) and multi-scale Retinex (MSR). However, most of these methods rely on hand-designed prior assumptions, making it difficult to accurately estimate local complex illumination in complex scenes with extreme low light and high-intensity noise. Furthermore, they are prone to over-enhancement, artifacts, and severe color deviation in the enhanced image. Retinex-Net ("Deep Retinex Decomposition for Low-Light Enhancement", BMVC 2018), proposed by Wei et al. in 2018, was the first to combine Retinex theory with deep learning, estimating the illumination and reflection components by decomposing the network. However, it still suffers from noise amplification and color shift under extremely low light conditions.
[0005] Second, deep learning-based methods have made significant progress in recent years. Methods based on convolutional neural networks (CNNs), such as MBLLEN ("MBLLEN: Low-Light Image / Video Enhancement Using CNNs", BMVC 2018) proposed by Lv et al. in 2018 and RUAS ("RUAS: Retinex-Based Unrolling with Architecture Search for Low-Light Image Enhancement", TPAMI 2022) proposed by Lim et al. in 2022, have achieved joint optimization of brightness enhancement and denoising through end-to-end learning. However, CNNs are limited by their local receptive field, resulting in shortcomings in maintaining global illumination consistency.
[0006] Third, methods based on the Transformer architecture, such as Restormer ("Restormer: Efficient Transformer for High-Resolution Image Restoration", CVPR 2022) proposed by Wang et al. in 2022 and Retinexformer ("Retinexformer: One-Stage Retinex-Based Transformer for Low-Light Image Enhancement", ICCV 2023) proposed by Cai et al. in 2023, utilize a self-attention mechanism to achieve global context modeling. However, the computational complexity of Transformers increases quadratically with image resolution, making it difficult to efficiently process high-resolution images.
[0007] Fourth, methods based on the State Space Model (SSM) and its specific implementations, such as Mamba proposed by Gu and Dao in 2023 ("Mamba: Linear-Time Sequence Modeling with Selective State Spaces", arXiv:2312.00752, 2023), achieve long-range dependency modeling with linear complexity through a selective state space model. Recently, researchers have introduced Mamba into the field of low-light image enhancement, such as Retinexmamba proposed by Bai et al. in 2024 ("Retinexmamba: Retinex-based Mamba for Low-light Image Enhancement", arXiv:2405.03349, 2024) and Wave-Mamba proposed by Zou et al. in 2024 ("Wave-Mamba: Wavelet State Space Model for Ultra-High-Definition Low-Light Image Enhancement", arXiv:2408.01276, ACMMM2024, 2024). However, existing Mamba-based low-light enhancement methods still have the following significant drawbacks:
[0008] (a) In the process of noise reduction and brightness enhancement, existing networks lack a dedicated color correction mechanism and rely more on explicit physical color space conversion (such as RGB and LAB space conversion). Under low light intensity and noise conditions, numerical singularity is easily generated, resulting in unnatural color restoration and serious tone shift.
[0009] (b) While suppressing strong noise, a single backbone network tends to over-smooth high-frequency edges and texture details. Furthermore, the existing Mamba module fails to introduce gradient information for adaptive guidance during the scanning process, thus failing to effectively restore the edge steepness and structural details of the image.
[0010] (c) Existing methods often use simple convolutional structures for their illumination estimation modules, which lack the ability to jointly perceive multi-scale illumination context and channel-space dimensions, resulting in inaccurate illumination guidance in complex lighting scenarios. Summary of the Invention
[0011] The purpose of this invention is to provide a low-light image enhancement system and method based on a state-space model and dual-stream constraints. Through the synergistic effect of multi-scale illumination sensing, implicit chromaticity refinement of denoising backbone features, and parallel multi-operator gradient-guided Mamba modules, high-quality brightness restoration, color correction, and high-frequency structure reconstruction of low-light images are achieved, thus solving the problems mentioned in the background art.
[0012] To achieve the above objectives, the present invention provides the following technical solution: a low-light image enhancement system based on a state-space model and two-stream constraints, comprising:
[0013] The multi-scale illumination estimation module is used to extract multi-scale illumination features from the input low-illumination image and generate an illumination map, and to perform illumination modulation by dividing the low-illumination image and the illumination map element by element to obtain a modulated image.
[0014] The denoising and implicit chroma refinement module includes a denoiser backbone and an implicit chroma refinement module located at the end of the denoiser backbone. The denoiser backbone is used to perform feature denoising on the modulated image and output a preliminary denoised image and end features. The implicit chroma refinement module is used to perform feature-level color correction on the end features through latent space mapping and dynamic channel gating, and output the first enhanced feature.
[0015] The gradient-guided Mamba module, set up in parallel with the denoising backbone, is used to extract gradient attention and modulate multi-scale selective scanning features, outputting a second enhanced feature;
[0016] The feature fusion and output module is used to fuse the first enhancement feature and the second enhancement feature, and to overlay the fusion result with the preliminary denoised image to output the final enhanced image.
[0017] Another technical problem to be solved by the present invention is to provide a low-light image enhancement method based on a state-space model and dual-stream constraints, comprising the following steps:
[0018] S1: The input low-light image to be enhanced is sent to the multi-scale illumination estimation module, multi-scale illumination features are extracted and an illumination map is generated, and the low-light image is modulated according to the illumination map to obtain the modulated image.
[0019] S2: Input the modulated image and illumination features into the denoiser backbone for feature denoising. The denoiser backbone outputs the preliminary denoised image and end features. The end features are then processed by the implicit chroma refinement module for feature-level color correction and output as the first enhanced feature.
[0020] S3: The illumination features and low-light images obtained in step S1 are fed in parallel into the gradient-guided Mamba module connected in parallel with the denoising backbone. The gradient attention mechanism is used to modulate the multi-scale selective scanning features and output the second enhanced features.
[0021] S4: Fuse the first enhancement feature and the second enhancement feature to obtain the fused output feature, and add the fused output feature to the preliminary denoised image element by element to output the final enhanced image.
[0022] Preferably, the multi-scale illumination estimation module performs the following steps:
[0023] S11: After concatenating the low-light image with its channel mean, the basic features are extracted through a convolutional layer;
[0024] S12: The basic features are fed into multiple grouped convolutional branches of different sizes. After fusing the outputs of each branch, the dynamic channel attention vector is predicted by global average pooling and fully connected layers. The dynamic channel attention vector is used to weight the fused features by channels to generate channel-weighted illumination features.
[0025] S13: Construct spatial features based on the channel mean and channel maximum of the basic features, predict the spatial attention map through convolutional layers and activation functions, and use the spatial attention map to spatially weight the basic features to generate spatially weighted illumination features;
[0026] S14: Adaptively fuse channel-weighted illumination features and spatial-weighted illumination features through a fusion gating network to output illumination features, and generate a single-channel illumination map from the illumination features using convolutional layers and activation functions.
[0027] Preferably, in step S12, the multiple grouped convolutional branches of different sizes include three parallel branches with convolutional kernel sizes of 3×3, 5×5 and 7×7, respectively.
[0028] Preferably, in step S2, the implicit chroma refining module performs the following steps:
[0029] S21: Map the terminal features to the latent space through convolution to obtain the latent space features;
[0030] S22: Global channel statistics based on end features to predict dynamic tone balance gating weights;
[0031] S23: Multiply the latent space features and dynamic tone balance gating weights channel by channel, reconstitute them by convolution, and add them element by element to the terminal features to complete feature-level color correction and output the first enhanced feature.
[0032] Preferably, in step S21, mapping to the latent space is achieved through pointwise convolution and depthwise separable convolution; in step S22, the dynamic tone balance gating weights are obtained by sequentially performing global average pooling, a fully connected network containing activation functions, and Sigmoid function processing for prediction.
[0033] Preferably, in step S3, the gradient-guided Mamba module performs the following steps:
[0034] S31: Align the features of the illumination features and the low-light image respectively, and downsample the aligned features to construct a multi-scale feature pyramid;
[0035] S32: Input the low-light image into the multi-operator gradient attention unit to generate a multi-scale gradient attention map;
[0036] S33: Input the features of each layer of the multi-scale feature pyramid into the selective scanning unit, and use the gradient attention map of the corresponding scale to modulate the features in the selective scanning process;
[0037] S34: The modulated multi-scale features are upsampled stepwise from deep to shallow layers and then fused by convolution to generate the second enhanced feature.
[0038] Preferably, in step S32, the multi-operator gradient attention unit performs the following steps:
[0039] S321: Preset multiple gradient operators to calculate the gradient magnitude map of the low-light image under each gradient operator;
[0040] S322: Predicting the fusion weights of each gradient operator using an adaptive gating network;
[0041] S323: The gradient magnitude maps are weighted and summed according to the fusion weights, and then mapped by the activation function to obtain the gradient attention map.
[0042] Preferably, the multiple gradient operators include the Sobel operator, the Prewitt operator, and the Scharr operator; the adaptive gating network sequentially performs global average pooling, fully connected layer processing, and Softmax function mapping on each of the stitched gradient magnitude maps to predict the fusion weights of each gradient operator.
[0043] Preferably, the selective scanning unit rearranges the input two-dimensional features into a one-dimensional sequence along four scanning directions: horizontal, vertical, reverse horizontal, and reverse vertical. After selectively scanning the sequences in each direction using the state-space equation, the sequences are recombined into two-dimensional features.
[0044] Compared with the prior art, the beneficial effects of the present invention are:
[0045] (1) This invention constructs a multi-scale illumination estimator with spatial-channel attention, uses multi-scale grouped convolution to capture the illumination context under different receptive fields, and combines the adaptive fusion gating mechanism of dynamic channel attention and spatial attention to achieve high-precision illumination estimation and modulation in complex low-light environments, effectively solving the problem of inaccurate illumination guidance under extreme illumination conditions in existing methods.
[0046] (2) The present invention introduces an implicit color refinement module at the end of the denoising backbone. The feature is mapped to a high-dimensional latent space through pointwise convolution and depthwise separable convolution. The feature-level color correction is performed using dynamic channel gating, which avoids the numerical singularity and color bias problems caused by noise in traditional explicit color space conversion, and significantly improves the color realism of the enhanced image.
[0047] (3) The present invention designs the denoising backbone and the Mamba module based on multi-operator gradient guidance in parallel to form a dual-stream constraint architecture with complementary functions. The denoising backbone is responsible for semantic integrity and noise suppression, while the Mamba branch effectively enhances the ability to capture high-frequency edges and structural details through multi-operator gradient attention. The two streams share information through illumination features.
[0048] (4) The present invention combines a composite loss function of pixel-level loss, color loss, structural similarity loss, smoothness loss and gradient loss for dual-stream constraint optimization, which effectively enhances the edge steepness and structural detail fidelity while maintaining image smoothness. Attached Figure Description
[0049] Figure 1 This is a flowchart of the steps of a low-light image enhancement method based on a state-space model and dual-stream constraints according to the present invention.
[0050] Figure 2 This is a schematic diagram of the overall network architecture of the present invention;
[0051] Figure 3 This is a schematic diagram of the structure of the multi-scale illumination estimator of the present invention;
[0052] Figure 4 This is a schematic diagram of the implicit chromaticity refining module of the present invention;
[0053] Figure 5 This is a schematic diagram of the gradient-guided Mamba module of the present invention;
[0054] Figure 6 This is a schematic diagram of the structure of the multi-operator gradient attention mechanism of the present invention;
[0055] Figure 7 This is a schematic diagram comparing the visual enhancement effects of the method of this invention with other existing methods on the LOL-V1 dataset.
[0056] In the figure: 100, Multi-scale illumination estimator; 110, Basic feature extraction unit; 120, Multi-scale grouped convolution unit; 130, Dynamic channel attention unit; 140, Spatial attention unit; 150, Fusion gated network; 200, Implicit chromaticity refinement module; 210, Latent space mapping unit; 220, Dynamic gated prediction unit; 230, Feature recombination and residual connection unit; 300, Gradient-guided Mamba module; 310, Multi-operator gradient attention unit; 320, Feature alignment and multi-scale pyramid construction unit; 330, Selective scanning unit; 340, Multi-scale feature fusion unit. Detailed Implementation
[0057] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. 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 are within the scope of protection of the present invention.
[0058] like Figures 1-7 As shown, a low-light image enhancement system based on a state-space model and two-stream constraints according to the present invention includes:
[0059] In this embodiment, the multi-scale illumination estimation module is a multi-scale illumination estimator 100. Specifically, the multi-scale illumination estimator 100 includes a basic feature extraction unit 110, a multi-scale grouped convolution unit 120, a dynamic channel attention unit 130, a spatial attention unit 140, and a fusion gating network 150. The input low-light image to be enhanced is input into the multi-scale illumination estimator 100, multi-scale illumination features are extracted and an illumination map is generated, and the low-light image is then subjected to illumination modulation.
[0060] The denoising and implicit chroma refinement module is used to feed the modulated image and illumination features into the denoiser backbone for feature denoising, and at the end of the denoiser, the implicit chroma refinement module 200 performs feature-level color correction based on latent space mapping and dynamic channel gating, outputting the first enhanced feature and the denoised image. In this embodiment, the implicit chroma refinement module 200 is... Figure 4 The ICR module 200 includes a latent space mapping unit 210, a dynamic gating prediction unit 220, and a feature recombination and residual connection unit 230 connected in sequence.
[0061] The gradient-guided Mamba module, connected in parallel with the denoising backbone, is used to input illumination features and low-light images in parallel. It modulates multi-scale selective scanning features using a multi-operator gradient attention mechanism and outputs a second enhanced feature. In this embodiment, the gradient-guided Mamba module corresponds to… Figure 5 The SAGE-Mamba module 300 and the gradient-guided Mamba module 300 include several SAGEMamba branches. Each SAGEMamba branch is equipped with a multi-operator gradient attention unit 310 and a selective scanning unit 330. Outside the SAGEMamba branch, there are feature alignment and multi-scale pyramid construction units 320 and multi-scale feature fusion units 340 connected to it.
[0062] The feature fusion and output module is used to fuse the first enhancement feature and the second enhancement feature, and add the fused feature to the denoised image to output the final enhanced image.
[0063] like Figure 1 and Figure 2 As shown, this invention proposes a low-light image enhancement method based on a state-space model and two-stream constraints, comprising the following steps:
[0064] Step 1: Multi-scale illumination estimation and modulation
[0065] like Figure 2 and Figure 3 As shown, the input low-light image to be enhanced is... (dimension is) Input the multi-scale illumination estimation module to extract multi-scale illumination features and generate an illumination map, and then use this map to modulate the low-illuminance image to obtain a modulated image.
[0066] The processing procedure of the multi-scale illumination estimator 100 is as follows:
[0067] First, input the low-light image. It is concatenated with its mean feature along the channel dimension, and processed through the basic feature extraction unit 110. Convolutional layers extract initial basic features .
[0068] Secondly, in order to capture the lighting context under different receptive fields, The kernels are fed into 120 multi-scale grouped convolutional units, with a kernel size of [missing information]. , and The three parallel grouped convolutional branches extract multi-scale spatial features. After element-wise summing of the three features, the dynamic channel attention weights are predicted sequentially through global average pooling (GAP) and two layers of multilayer perceptron (MLP). The channel illumination features are then generated by weighting the dynamic channel attention units 130 times. .
[0069] Simultaneously, in the spatial attention unit 140, extraction The mean and maximum value plots along the channel dimension are stitched together. Convolutional layers and the Sigmoid activation function generate spatial attention maps Used for Spatial illumination characteristics are obtained by spatial weighting. .
[0070] Subsequently, an adaptive scalar weight is predicted using a fusion-gated network of 150, and the channel illumination features and spatial illumination features are adaptively fused to output multi-scale illumination features. and further through Convolution and Sigmoid activation generate single-channel illumination maps .
[0071] Finally, illumination modulation of low-light images is achieved through element-wise division, expressed by the following formula:
[0072]
[0073] in, This represents the modulated image. The input is a low-light image. For the estimated illumination map, To prevent the smoothing term from being divided by zero, the value is taken as... .
[0074] Step Two: Noise Reduction and Implicit Chromaticity Refinement
[0075] like Figure 4 As shown, the modulated image With light characteristics The data is fed into the main body of the denoiser for feature denoising, and at the end of the denoiser, the implicit chroma refinement module 200 performs feature-level color correction based on latent space mapping and dynamic channel gating, outputting the first enhanced feature. and denoised images .
[0076] When extracting features from low-light images through a denoising backbone, local color shifts and reduced color saturation are easily generated due to high noise interference. Traditional explicit color space conversions (such as RGB to LAB) are prone to numerical singularities under noise. Therefore, this invention designs an implicit chromaticity refinement module 200 at the end of the denoising backbone, and its processing procedure is as follows:
[0077] Features at the output end of the noise reduction backbone (dimension is) The input to the ICR module 200 is first processed through pointwise convolution in the latent space mapping unit 210. Convolution) and Depthwise separable convolution implicitly maps it to a high-dimensional latent space of color, generating latent space features. .
[0078] Subsequently, in the dynamic gating prediction unit 220, the prediction is obtained based on global average pooling (GAP). The global channel statistics are obtained and processed through a fully connected network (MLP) containing the GELU activation function and the Sigmoid activation function (denoted as ). Predicting dynamic tone balance gating weights , represented as:
[0079]
[0080] Latent space features With dynamic gating weights Perform element-wise channel multiplication (denoted as ) ), through feature recombination and residual connection unit 230 convolution( After adjusting the number of channels, the input features are compared. By performing element-wise addition, implicit color fine-tuning at the feature level is achieved. The formula is expressed as follows:
[0081]
[0082] in, This is the first enhancement feature output by the ICR module 200. The denoising backbone simultaneously outputs the preliminary denoised image. .
[0083] Step 3: Gradient-guided Mamba branch feature extraction
[0084] like Figure 5 and Figure 6 As shown, the lighting characteristics Low-light images The gradient-guided Mamba module 300, connected in parallel with the denoising backbone, is fed into the module. A multi-operator gradient attention mechanism, incorporating multiple gradient operators, is used to modulate multi-scale selective scanning features, outputting a second enhanced feature. .
[0085] A single denoising backbone, while smoothing noise, is prone to losing edge details. Therefore, this invention introduces parallel SAGEMamba branches. The processing procedure of the gradient-guided Mamba module 300 is as follows:
[0086] S31: Multi-operator gradient magnitude calculation
[0087] In the multi-operator gradient attention unit 310, the input low-light image is... Multi-operator gradient calculation is performed, with pre-defined convolution kernels for Sobel, Prewitt, and Scharr operators in the horizontal and vertical directions, respectively acting on... Three gradient magnitude maps were calculated. , and .
[0088] S32: Adaptive Multi-Operator Fusion
[0089] The three gradient magnitude maps are concatenated along the channel dimension and then input into an adaptive gating network. The adaptive fusion weights of the three operators are predicted based on global average pooling and the Softmax function. The multi-operator gradient attention map is obtained by weighted summation and Sigmoid mapping. , represented as:
[0090]
[0091] S33: Multiscale Feature Pyramid and Selective Scan Modulation
[0092] In feature alignment and multi-scale pyramid building block 320, illumination features are incorporated. Low-light images After projection and semantic alignment, a multi-scale feature pyramid is constructed. At each level of the multi-scale pyramid, the features are input into a selective scanning unit 330 (SS2D). The SS2D rearranges the input two-dimensional features into a one-dimensional sequence along four scanning directions: horizontal, vertical, reverse horizontal, and reverse vertical. Selective scanning is then performed using the state-space equation, and the features are reassembled into two-dimensional features. The gradient attention map is downsampled to the corresponding scale. by The multiplication-gated form is introduced to perform spatial high-frequency structure modulation on the four-directional scanning features of SS2D.
[0093] S34: Multi-scale feature fusion
[0094] In the multi-scale feature fusion unit 340, the modulated multi-scale features are upsampled and fused across layers from deep to shallow layers to output the second enhanced feature. .
[0095] Step 4: Dual-stream feature fusion and image output
[0096] The first enhancement feature With the second enhancement feature Concat along the channel dimension. Convolution and Convolutional processing performs interactive fusion of two-stream features to obtain comprehensive enhanced features. Finally, via the output convolutional layer ( The generated residual features and the denoised image Perform element-wise addition to output the final enhanced image. , represented as:
[0097]
[0098] Model training
[0099] During the model training phase, a two-stream network containing a denoising backbone and a gradient-guided Mamba module 300 is constructed, and a composite loss function is used. Perform end-to-end optimization. The composite loss function is expressed as:
[0100]
[0101] in, Represents pixel level Absolute error loss; This represents the cosine color loss, used to constrain the angle between the enhanced image and the real image in the RGB color space; This represents the structural similarity loss; This represents the total variational smoothing loss; This represents the gradient loss with directional weights.
[0102] In the preferred configuration of this embodiment, the weight coefficients of each loss function are obtained by optimization on the validation set through grid search, and are respectively set as follows: , , , , The loss function is calculated using pixel mean normalization. Training uses the Adam optimizer, with an initial learning rate set to... The learning rate scheduler uses a cosine annealing scheduler, with a total of 200 training rounds and a batch size of 8 to ensure stable convergence of the two-stream network during multi-stage training.
[0103] To verify the technical effectiveness of the present invention, a visual and objective metric comparison experiment was conducted on standard low-light datasets (LOL-V1, LOL-V2-Real, LOL-V2-Syn).
[0104] Figure 7 The paper presents a comparison of the visual enhancement effects of the method of this invention with other existing methods on the LOL-V1 dataset. As can be seen from the figures, the method of this invention effectively eliminates noise and artifacts in extremely low-light areas, while restoring rich color fidelity and steep edge structure.
[0105] Table 1. Quantitative comparison of different methods on the LOL-V1, LOL-V2-Real, and LOL-V2-Syn datasets.
[0106]
[0107] As shown in Table 1, under the constraints of approximately 4.6M model parameters and a computational complexity of approximately 48.2 GMac, the method of this invention achieves a peak signal-to-noise ratio (PSNR) of 24.04 dB and a structural similarity (SSIM) of 0.829 on the LOL-V1 dataset; a PSNR of 21.78 dB and an SSIM of 0.850 on the LOL-V2-Real dataset; and a PSNR of 25.55 dB and an SSIM of 0.942 on the LOL-V2-Syn dataset. Compared with existing mainstream enhancement algorithms, this invention achieves optimal or near-optimal quantitative indicators on multiple datasets, while effectively eliminating noise and artifacts in extremely low-light areas and restoring rich color fidelity and steep edge structures in terms of visual effects.
[0108] This invention can be applied to fields such as smartphone photo enhancement, security monitoring image enhancement, autonomous driving nighttime image preprocessing, medical image enhancement, and remote sensing image processing, and has broad industrial application prospects.
[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention. The sequence numbers of the above embodiments of the present invention are merely for description and do not represent the superiority or inferiority of the embodiments.
[0110] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A low-light image enhancement system based on a state-space model and two-stream constraints, characterized in that, include: The multi-scale illumination estimation module is used to extract multi-scale illumination features from the input low-illumination image and generate an illumination map, and to perform illumination modulation by dividing the low-illumination image and the illumination map element by element to obtain a modulated image. The denoising and implicit chroma refinement module includes a denoiser backbone and an implicit chroma refinement module located at the end of the denoiser backbone. The denoiser backbone is used to perform feature denoising on the modulated image and output a preliminary denoised image and end features. The implicit chroma refinement module is used to perform feature-level color correction on the end features through latent space mapping and dynamic channel gating, and output the first enhanced feature. The gradient-guided Mamba module, set up in parallel with the denoising backbone, is used to extract gradient attention and modulate multi-scale selective scanning features, outputting a second enhanced feature; feature The fusion and output module is used to fuse the first enhancement feature and the second enhancement feature, and to overlay the fusion result with the preliminary denoised image to output the final enhanced image.
2. A low-light image enhancement method based on a state-space model and two-stream constraints, implemented using the system described in claim 1, characterized in that... Includes the following steps: S1: The input low-light image to be enhanced is sent to the multi-scale illumination estimation module, multi-scale illumination features are extracted and an illumination map is generated, and the low-light image is modulated according to the illumination map to obtain the modulated image. S2: Input the modulated image and illumination features into the denoiser backbone for feature denoising. The denoiser backbone outputs the preliminary denoised image and end features. The end features are then processed by the implicit chroma refinement module for feature-level color correction and output as the first enhanced feature. S3: The illumination features and low-light images obtained in step S1 are fed in parallel into the gradient-guided Mamba module connected in parallel with the denoising backbone. The gradient attention mechanism is used to modulate the multi-scale selective scanning features and output the second enhanced features. S4: Fuse the first enhancement feature and the second enhancement feature to obtain the fused output feature, and add the fused output feature to the preliminary denoised image element by element to output the final enhanced image.
3. The low-light image enhancement method based on state-space model and two-stream constraints according to claim 2, characterized in that, The multi-scale illumination estimation module performs the following steps: S11: After concatenating the low-light image with its channel mean, the basic features are extracted through a convolutional layer; S12: The basic features are fed into multiple grouped convolutional branches of different sizes. After fusing the outputs of each branch, the dynamic channel attention vector is predicted by global average pooling and fully connected layers. The dynamic channel attention vector is used to weight the fused features by channels to generate channel-weighted illumination features. S13: Construct spatial features based on the channel mean and channel maximum of the basic features, predict the spatial attention map through convolutional layers and activation functions, and use the spatial attention map to spatially weight the basic features to generate spatially weighted illumination features; S14: Adaptively fuse channel-weighted illumination features and spatial-weighted illumination features through a fusion gating network to output illumination features, and generate a single-channel illumination map from the illumination features using convolutional layers and activation functions.
4. The low-light image enhancement method based on state-space model and two-stream constraint according to claim 3, characterized in that, In step S12, the multiple grouped convolutional branches of different sizes include three parallel branches with convolutional kernel sizes of 3×3, 5×5 and 7×7, respectively.
5. The low-light image enhancement method based on state-space model and two-stream constraints according to claim 2, characterized in that, In step S2, the implicit color refining module performs the following steps: S21: Map the terminal features to the latent space through convolution to obtain the latent space features; S22: Global channel statistics based on end features to predict dynamic tone balance gating weights; S23: Multiply the latent space features and dynamic tone balance gating weights channel by channel, reconstitute them by convolution, and add them element by element to the terminal features to complete feature-level color correction and output the first enhanced feature.
6. The low-light image enhancement method based on state-space model and two-stream constraints according to claim 5, characterized in that, In step S21, mapping to the latent space is achieved through pointwise convolution and depthwise separable convolution; in step S22, the dynamic tone balance gating weights are obtained by sequentially performing global average pooling, a fully connected network containing activation functions, and Sigmoid function processing for prediction.
7. The low-light image enhancement method based on state-space model and two-stream constraints according to claim 2, characterized in that, In step S3, the gradient-guided Mamba module performs the following steps: S31: Align the features of the illumination features and the low-light image respectively, and downsample the aligned features to construct a multi-scale feature pyramid; S32: Input the low-light image into the multi-operator gradient attention unit to generate a multi-scale gradient attention map; S33: Input the features of each layer of the multi-scale feature pyramid into the selective scanning unit, and use the gradient attention map of the corresponding scale to modulate the features in the selective scanning process; S34: The modulated multi-scale features are upsampled stepwise from deep to shallow layers and then fused by convolution to generate the second enhanced feature.
8. The low-light image enhancement method based on state-space model and two-stream constraint according to claim 7, characterized in that, In step S32, the multi-operator gradient attention unit performs the following steps: S321: Preset multiple gradient operators to calculate the gradient magnitude map of the low-light image under each gradient operator; S322: Predicting the fusion weights of each gradient operator using an adaptive gating network; S323: The gradient magnitude maps are weighted and summed according to the fusion weights, and then mapped by the activation function to obtain the gradient attention map.
9. The low-light image enhancement method based on state-space model and two-stream constraint according to claim 8, characterized in that, The various gradient operators include the Sobel operator, the Prewitt operator, and the Scharr operator; the adaptive gating network sequentially performs global average pooling, fully connected layer processing, and Softmax function mapping on the stitched gradient magnitude maps to predict the fusion weights of each gradient operator.
10. The low-light image enhancement method based on state-space model and two-stream constraints according to claim 7, characterized in that, The selective scanning unit rearranges the input two-dimensional features into a one-dimensional sequence along four scanning directions: horizontal, vertical, reverse horizontal, and reverse vertical. After selectively scanning each direction sequence using the state-space equation, it recombines the two-dimensional features.
