A three-stage generative low-light image enhancement method based on brightness alignment

By employing a three-stage generative low-light image enhancement method, which utilizes lossless three-channel histogram equalization and inverse equalization global mapping, the coupling problem between global brightness alignment and local generation and restoration in existing technologies is solved, thereby improving the low-light image generation capability and perceived quality.

CN123160355APending Publication Date: 2026-11-24BEIJING NORMAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611392419.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing low-light image enhancement methods fail to effectively distinguish between global brightness alignment and local generation restoration, resulting in limited generation capabilities of diffusion models, and the value of histogram equalization as a statistical bridge is not fully utilized.

Method used

A three-stage generative low-light image enhancement method is adopted, including lossless three-channel histogram equalization, generative local restoration, and inverse equalization global mapping, which respectively handle global brightness alignment, local detail restoration, and color correction, and achieve decoupling through independent CDF mapping and inverse CDF curve mapping.

Benefits of technology

It significantly reduces the modeling difficulty of diffusion models, improves the ability to restore local details, and generates images with better perceptual quality than existing methods. It also has good interpretability and engineering deployability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160355A_ABST
    Figure CN123160355A_ABST
Patent Text Reader

Abstract

This invention discloses a three-stage generative low-light image enhancement method based on brightness alignment. The invention independently performs cumulative distribution function mapping on each of the RGB channels, effectively compressing the statistical distribution differences between the low-light and normal domains and correcting color casts. This establishes a statistically reasonable intermediate representation for subsequent generative restoration, significantly reducing the modeling difficulty of the diffusion model. By limiting the generative local restoration module to paired data in the equalization domain for adaptive training, the diffusion model is freed from the interference of global brightness regression tasks, focusing its modeling capacity on high-frequency local texture generation, dark detail completion, and noise suppression, fully releasing the advantages of generative modeling. By designing a learnable inverse equalization curve network, using the inverse cumulative distribution function curve as a priori initial estimate and performing adaptive affine correction, the curve mapping based on a one-dimensional lookup table does not change the relative texture relationships between pixels, effectively preserving the high-frequency perceptual advantages generated by the generative module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of image processing and computer vision technology, and in particular to a three-stage generative low-light image enhancement method based on brightness alignment. Background Technology

[0002] In low-light scenarios such as nighttime, dimly lit indoor environments, backlighting, and complex mixed light sources, images often suffer from low brightness, insufficient contrast, color distortion, amplified noise, and obscured texture details due to limitations imposed by insufficient ambient illumination, the limited dynamic range of imaging equipment, and sensor noise interference. This degradation not only reduces the subjective visual quality of the image but also further impacts the performance of high-level visual tasks such as object detection, image segmentation, and scene recognition. Therefore, low-light image enhancement has become a crucial research direction in image processing and computer vision.

[0003] Degradation of low-light images involves at least two different types of problems: one is the global shift in brightness distribution, dynamic range compression, and tone imbalance, which has deterministic statistical distribution shift characteristics; the other is the local level of dark noise pollution, texture weakening, and loss of structural details, which is more complex than deterministic transformation can handle and requires generative models for recovery.

[0004] Currently, deep learning-based low-light image enhancement methods have become the mainstream approach. However, most existing methods do not explicitly model the inherent dual structure of low-light degradation, and instead treat brightness adjustment, detail restoration, noise suppression, and color correction as a single model. This results in overly strong coupling of learning objectives, making it difficult to establish effective specialized restoration mechanisms for different types of degradation.

[0005] To further enhance detail recovery capabilities, diffusion models have been increasingly introduced into low-light image enhancement tasks. The core advantage of diffusion models lies in modeling complex data distributions through iterative denoising processes, demonstrating strong potential in local detail generation, high-frequency texture restoration, and perceptual quality improvement. However, most existing low-light diffusion enhancement methods still design their models as end-to-end global mappers, requiring them to simultaneously complete two vastly different tasks—global brightness statistical reconstruction and local detail generation—in a single processing step. Since global brightness restoration involves significant statistical distribution adjustments, it typically dominates loss optimization, objectively compressing the optimization resources available for local detail generation. This limits the true generative modeling capabilities of diffusion models to the inherent limitations of the task design itself.

[0006] Furthermore, the potential value of histogram equalization as a statistical bridge between the low-light and normal image domains has not been fully recognized. Histogram equalization is essentially a deterministic monotonic transformation based on the cumulative distribution function (CDF), whose output image's grayscale distribution statistically converges significantly towards the normal image domain. If this transformation is reinterpreted as a "global brightness alignment" operation, equalization is no longer limited to traditional brightness enhancement, but rather serves as a preliminary global degradation reduction step, providing a more statistically reasonable intermediate representation for subsequent generative restoration, significantly reducing the modeling difficulty of generative models. However, existing work on this utilization remains very limited.

[0007] In summary, current research on low-light image enhancement lacks a generative enhancement framework that can explicitly distinguish between global brightness alignment and local generative restoration, and build a complete closed loop based on this distinction. There is an urgent need for a novel low-light image enhancement method that can effectively utilize the equalization domain as a statistical bridge, fully unleash the local detail restoration capabilities of the generative model, and effectively revert the enhancement results to the natural image domain. Summary of the Invention

[0008] To address the shortcomings of existing low-light image enhancement methods, such as the coupling between global brightness alignment and local generative restoration, the suppression of the generative advantages of diffusion models by global regression tasks, and the underutilization of the value of the equalization domain as a statistical bridge, the present invention aims to provide a generative low-light image enhancement method that decouples the three stages of brightness alignment, generative local restoration, and inverse equalization global mapping.

[0009] To achieve the above objectives, the present invention provides a three-stage generative low-light image enhancement method based on brightness alignment, comprising: S1. Obtain the low-light image and the corresponding normal image. Perform lossless three-channel histogram equalization on the low-light image and the normal image respectively to obtain the equalized low-light image and the equalized normal image. S2. Based on the equalized low-light image and the equalized normal image, perform generative local restoration to obtain the equalized domain enhanced image; S3. Based on the enhanced image in the equalization domain and the low-light image, perform inverse equalization global mapping to obtain the final enhanced output.

[0010] Preferably, S1 includes: Obtain the low-light image and the corresponding normal image, and perform lossless three-channel histogram equalization independently on the RGB three channels respectively; For each channel, the normalized frequency histogram of all pixels in that channel is calculated, the cumulative distribution function is calculated, a 256-point CDF lookup table is constructed in the floating-point domain, and the lookup table is used to perform mapping on each pixel value in that channel to obtain an equalized low-light image. Perform the same lossless three-channel histogram equalization on the normal image to obtain the equalized normal image.

[0011] Preferably, S2 includes: Based on the equalized low-light image and the equalized normal image, construct equalization domain training pairs; The equalized low-light image and the equalized normal image are input into the pre-trained VAE encoder and mapped to the latent space to obtain the equalized low-light latent representation and the equalized normal latent representation. Using the equalized low-light latent representation as the offset endpoint, noisy samples are constructed in the latent space, and the ResShift forward diffusion process is performed. A denoising network is used to perform conditional denoising on noisy samples to predict and recover the latent representation. The recovered latent representation is restored to a pixel-domain image via a VAE decoder, resulting in an equalized domain enhanced image.

[0012] Preferably, S2 further includes: optimizing the generative local recovery module using a composite loss function, wherein the composite loss function includes L1 loss and LPIPS loss.

[0013] Preferably, S3 includes: Based on the low-light image and its equalization result, the inverse cumulative distribution function curve of the low-light image relative to the equalization result is calculated channel by channel, and used as the initial inverse mapping curve; A preliminary lookup table mapping is performed on the equalization domain enhanced image based on the initial inverse mapping curve to obtain the initial estimate of the natural domain; The equalization domain enhanced image and the natural domain initial estimate are concatenated along the channel dimension and input into the image encoder to obtain the feature vector; By regressing scaling and offset parameters from the feature vectors, bin-by-bin affine correction is performed on the initial inverse mapping curve to obtain the corrected inverse mapping curve; The equalization domain enhanced image is subjected to bilinear interpolation lookup table mapping based on the corrected inverse mapping curve to obtain the final enhanced output.

[0014] Preferably, S3 further includes: optimizing the inverse equilibrium curve network using a composite loss function, wherein the composite loss function includes L1 loss, gradient loss and color consistency loss.

[0015] Preferably, after completing the independent pre-training of S2 and S3, end-to-end joint fine-tuning is performed using a freeze-thaw strategy: initially, only the parameters of the inverse equilibrium global mapping are updated, and then some parameters of the generative local recovery module are gradually unfrozen and optimized using a joint loss function.

[0016] The present invention also provides a three-stage generative low-light image enhancement system based on brightness alignment, the system being used to implement the above method, comprising: The acquisition module is used to acquire low-light images and corresponding normal images, and to perform lossless three-channel histogram equalization on the low-light images and normal images respectively to obtain equalized low-light images and equalized normal images. The enhancement module is used to perform generative local restoration based on the equalized low-light image and the equalized normal image to obtain the equalized domain enhanced image; The output module performs inverse equalization global mapping based on the equalization domain enhanced image and the low-light image to obtain the final enhanced output. Compared with the prior art, the beneficial effects of the present invention are as follows: 1. This invention proposes a lossless three-channel histogram equalization method (L3HE), which performs CDF mapping independently on the three RGB channels. While compressing the statistical distribution differences between the low-light domain and the normal domain, it effectively corrects the color shift between channels, establishing a statistically more reasonable equalization domain intermediate representation for subsequent generative restoration. This significantly reduces the modeling difficulty of the diffusion model and is a core prerequisite for the effective operation of the three-stage framework.

[0017] 2. This invention limits the generative local restoration module to training on equalization domain paired training data, thereby freeing the ResShift diffusion model from the interference of global brightness regression tasks. It concentrates the modeling capacity entirely on high-frequency local texture generation, dark detail completion, and noise suppression, fully releasing the generative modeling advantages of the diffusion model. It achieves results superior to all existing comparative methods on the perceptual quality index LPIPS.

[0018] 3. This invention designs a learnable inverse equalization curve network (IECNet), which uses the inverse CDF curve of a low-light image as a priori initial estimate and performs only image adaptive affine correction on it. This design efficiently maps the equalization domain enhancement results back to the natural image domain. The curve mapping based on 1D LUT does not change the relative texture relationship between pixels, effectively preserving the high-frequency perceptual advantages generated by the generative module and avoiding the detail smoothing problem caused by pixel-by-pixel regression.

[0019] 4. This invention provides a complete three-stage decoupled enhancement framework of "pre-global alignment - intermediate local generation - post-natural regression". Each of the three stages has its own function and clear boundaries. The intermediate results can be directly visualized and have good interpretability. The lightweight LUT inference structure of IECNet contributes negligibly to the total system latency. Combined with the efficient inference of the generative recovery module, which only requires 15 steps of diffusion sampling, the overall framework has good engineering deployability. Attached Figure Description

[0020] To more clearly illustrate the technical solution of the present invention, the drawings used in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a flowchart illustrating the overall three-stage process framework of the method of the present invention; Figure 2 This is a comparison chart of the effects of lossless three-channel histogram equalization (L3HE), showing a visual comparison with brightness normalization, mean alignment and traditional grayscale histogram equalization; Figure 3 The training framework diagram for the equalization domain generative local recovery module is shown, illustrating the construction of the equalization training pairs at both ends and the backbone structure of DiffSwinUnet. Figure 4 This is a diagram of the Inverse Equalization Curve Network (IECNet) architecture, which includes a six-channel encoder, an affine correction module, and a lookup table mapping process. Figure 5 A visualization of the inverse equalization mapping curve, showing a comparison between the initial ICDF curve and the output curve after affine correction; Figure 6 The image shows the visual quality of the method of the present invention on typical LOL-v1 samples; where (a) represents the CIDNet output result; (b) represents the output result of the present method; and (c) represents the GT image. Figure 7 The ablation visualization comparison charts are shown for the absence of each module in the three stages; where (a) represents the output result without brightness alignment; (b) represents the output result without diffusion model; (c) represents the output result without equalization curve network; and (d) represents the output result of this invention. Figure 8 The following are visualizations of the intermediate results for each of the three stages; where (a) represents the low-light input image; (b) represents the L3HE equalized output image; (c) represents the generative recovery output image; (d) represents the final natural domain result; and (e) represents the GT map. Specific implementation methods 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.

[0022] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0023] Example 1 like Figure 1 The diagram shown is a three-stage flowchart of this embodiment, and its steps include: S1. Obtain the low-light image and the corresponding normal image. Perform lossless three-channel histogram equalization on the low-light image and the normal image respectively to obtain the equalized low-light image and the equalized normal image.

[0024] For each pair of low-light-normal image samples in the dataset L3HE is executed independently on each of the three RGB channels. Taking the red channel R as an example, the specific implementation is as follows: First, the probability distribution of all pixels in channel R is statistically analyzed. Calculate the cumulative distribution function: Where j represents the pixel value, P R This represents the probability distribution of pixels.

[0025] Construct a 256-point CDF lookup table in the floating-point field (instead of the integer field), and use this lookup table to perform mapping on each pixel value in channel R: , Among them, C R This represents the cumulative distribution function of a pixel.

[0026] Channels G and B are processed independently using the same process.

[0027] Because the CDF increases strictly monotonically within the effective pixel value range, and floating-point precision ensures that different input values ​​correspond to different output values, this mapping guarantees the complete preservation (lossless) of the relative order of pixel intensity within the channel. The complete quantitative verification results are as follows: Forward Mapping With reverse mapping When a strict bijective is formed, the pixel-by-pixel reconstruction error is zero (maximum error = 0), which is generalized to the continuous floating-point domain. In practice, it can be considered as non-destructive.

[0028] For low-light images Equalized low-light image obtained after L3HE processing For the corresponding normal image Synchronous processing , forming a balanced training domain This is used for training the generative recovery module of S2. The original pairings are preserved. Used for S3IECNet training.

[0029] like Figure 2 As shown, compared with brightness normalization (linear scaling, which cannot change the distribution pattern), mean alignment (linear shift, which may introduce overexposure in bright areas) and traditional grayscale histogram equalization (forcing three channels to share grayscale CDF, introducing systematic color shift), L3HE achieves the best results by equalizing the CDF of each channel independently, while compressing the differences in the first-order Wasserstein distribution and maintaining the color balance between channels.

[0030] S2. Based on the equalized low-light image and the equalized normal image, perform generative local restoration to obtain the equalized domain enhanced image.

[0031] Training pairs based on equalization domain constructed using S1 Training generative local recovery modules, such as Figure 3 As shown. The specific implementation is as follows: (1) Data preprocessing: During training, low-light images are processed with a 20% probability. Random brightness scaling is applied to enhance the model's robustness to different levels of brightness degradation; random horizontal flipping, random rotation, and fixed-size random cropping are performed on all inputs. Normalization to .

[0032] (2) VAE Latent Spatial Coding: Equalizing low-light images Compared with equalized normal images The pre-trained VAE encoder and decoder are input separately and mapped to a 4-channel latent representation. Let the VAE encoder and decoder be denoted as and , respectively. and , Spatial resolution downsampling by 8 times.

[0033] (3) ResShift forward diffusion process: using equalization of low-light potential representation To determine the endpoint of the offset, noisy samples are constructed in the latent space. Residual offset factor Linear noise scheduling, number of diffusion steps step.

[0034] (4) Forward inference of the denoising network: DiffSwinUnet backbone with As a condition, for noisy samples Perform conditional denoising and predict and recover the latent representation. The image is restored to an equalized domain pixel-domain enhanced image by the VAE decoder. .

[0035] (5) Optimization of composite loss The optimization objective is: in, , This represents the latent representation recovered by the denoising network. This represents the normal latent representation of the equalization process. This represents the perceptual consistency loss of the pre-trained VGG features. The AdamW optimizer is used, with an initial learning rate of... Cosine annealing learning rate scheduling, batch size 24, total number of iterations 300,000, EMA decay rate 0.999; trained on NVIDIA RTX 3090 / 4090 (24GB VRAM) using the PyTorch framework with mixed precision.

[0036] During inference, equalize the low-light image. As a conditional input, ResShift from The process begins with 15 steps of inverse denoising, outputting an image enhanced by equalization domain. Its local textures have been restored, but the overall style is still in the equalization range.

[0037] S3. Based on the enhanced image in the equalization domain and the low-light image, perform inverse equalization global mapping to obtain the final enhanced output.

[0038] S2-based pre-computation inference output set and original pairing Training IECNet, such as Figure 4 As shown. The specific implementation is as follows: (1) Initial ICDF curve calculation: for low-light images and its equalization results Calculate channel by channel Compared to inverse cumulative distribution function curve The known prior structure is directly passed into the network, transforming the problem into a residual correction of the initial theoretical estimate.

[0039] (2) Preliminary table lookup mapping: based on Output to S2 Perform a preliminary table lookup mapping to obtain an initial estimate of the natural domain. .Will and The images are stitched together along the channel dimension to form a six-channel image, which is then input into the image encoder.

[0040] (3) Image encoder: 5-layer convolutional downsampling module with stride of 2 (number of channels) The feature vector is compressed into a 256-dimensional feature vector through global average pooling. .

[0041] (4) Affine parameter regression and curve correction: Two independent fully connected layers respectively from Regression scaling parameters and offset parameters Perform bin-by-bin affine correction The corrected inverse mapping curve is obtained. (like Figure 5 (As shown).

[0042] (5) Lookup table mapping output: for Perform bilinear interpolation lookup table mapping on each pixel value To obtain the final enhanced output And perform mean brightness normalization for the entire image.

[0043] (6) Optimization of composite loss The optimization objective is: in, , This represents the quantile vector of the c-th channel within a preset set of quantiles. The AdamW optimizer is used with a fixed learning rate. Batch size 48, total number of iterations 60000, EMA decay rate 0.999.

[0044] (7) Freeze-Unfreeze Joint Fine-Tuning: After the independent pre-training of IECNet converges, two stages are connected to perform end-to-end joint fine-tuning using a freeze-unfreeze strategy: initially, only the IECNet parameters are updated with a large learning rate, and then the latter part of the second stage is gradually unfrozen with one-tenth of the pre-training learning rate to minimize the joint loss. To prevent catastrophic forgetting and misalignment of task locations in each module.

[0045] Example 2 To verify the effectiveness of the method of this invention, a systematic comparison was conducted under a standard experimental environment. The experimental hardware consisted of a computer equipped with NVIDIA RTX 3090 and RTX 4090 GPUs (each with 24 GB of VRAM), and the software was based on the PyTorch framework, with cuDNN benchmark mode enabled and mixed-precision training employed. Quantitative evaluation was performed on the LOL-v1 paired benchmark (485 pairs of training images, 15 pairs of test images). The current state-of-the-art algorithm for this dataset (CVPR 2025) – CIDNet – was used as the comparison method. The comparison method used the officially released code and pre-trained weights, re-evaluating on the same test set to ensure fairness. The evaluation metrics used were PSNR, SSIM, and LPIPS, with LPIPS being the core reference metric for the generative method of this invention. The experimental results are shown below: In terms of quantitative results, on the LOL-v1 test set, the method of this invention achieved PSNR = 27.85 dB, SSIM = 0.845, and LPIPS = 0.068. In terms of the perceived quality metric LPIPS, the method of this invention outperforms the CIDNet comparison method (0.079), directly verifying the effectiveness of the core claim of "luminance-aligned release diffusion model generation capability." Figure 6 As shown, the method of the present invention exhibits good balance in dark texture restoration, noise suppression and color naturalness, especially in the edge and texture clarity of dark areas, which is significantly better than the comparison method and highly consistent with the quantitative conclusion of LPIPS.

[0046] In ablation experiments, removing the L3HE bridge resulted in a sharp increase in LPIPS from 0.068 to 0.108, while PSNR decreased by approximately 3 dB, verifying that brightness alignment is a key prerequisite for reducing the modeling difficulty of the diffusion model. Removing the generative restoration module and replacing it with UNet degraded LPIPS to 0.107, verifying the irreplaceable role of the diffusion model in local high-frequency texture restoration. Replacing IECNet with pixel-wise UNet degraded LPIPS to 0.101 (while SSIM slightly increased to 0.880), verifying the perceptual advantage of 1D-LUT curve mapping over pixel-wise regression—curve mapping does not change the relative texture relationship between pixels and preserves the high-frequency details generated by the generative module, while pixel-wise UNet forced fitting systematically smooths high-frequency textures, demonstrating the superiority of 1D-LUT curve mapping over pixel-wise regression. Figure 7 The three ablation studies together demonstrate that each module in the three stages is indispensable.

[0047] Figure 8 The visualization of the intermediate results of the three stages is shown: the L3HE output has an overall increase in brightness but the tone is hard; the output of the generative restoration stage restores a large number of local textures and edge details, and the dark structure is obviously clear, but it still has the characteristics of the equalization domain style; the final output restores the brightness, contrast and color to the natural visual state while maintaining the details, intuitively verifying the functional division and interpretability of the three stages.

[0048] Example 3 This embodiment also provides a three-stage generative low-light image enhancement system based on brightness alignment, including: The acquisition module is used to acquire low-light images and corresponding normal images, and to perform lossless three-channel histogram equalization on the low-light images and normal images respectively to obtain equalized low-light images and equalized normal images. The enhancement module is used to perform generative local restoration based on the equalized low-light image and the equalized normal image to obtain the equalized domain enhanced image; The output module performs inverse equalization global mapping based on the equalization domain enhanced image and the low-light image to obtain the final enhanced output.

[0049] The embodiments described above are merely preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Various modifications and improvements made to the technical solutions of the present invention by those skilled in the art without departing from the spirit of the present invention should fall within the protection scope defined by the claims of the present invention.

Claims

1. A three-stage generative low-light image enhancement method based on brightness alignment, characterized in that, include: S1. Obtain the low-light image and the corresponding normal image. Perform lossless three-channel histogram equalization on the low-light image and the normal image respectively to obtain the equalized low-light image and the equalized normal image. S2. Based on the equalized low-light image and the equalized normal image, perform generative local restoration to obtain the equalized domain enhanced image; S3. Based on the enhanced image in the equalization domain and the low-light image, perform inverse equalization global mapping to obtain the final enhanced output.

2. The three-stage generative low-light image enhancement method based on brightness alignment according to claim 1, characterized in that, S1 includes: Obtain the low-light image and the corresponding normal image, and perform lossless three-channel histogram equalization independently on the RGB three channels respectively; For each channel, the normalized frequency histogram of all pixels in that channel is calculated, the cumulative distribution function is calculated, a 256-point CDF lookup table is constructed in the floating-point domain, and the lookup table is used to perform mapping on each pixel value in that channel to obtain an equalized low-light image. Perform the same lossless three-channel histogram equalization on the normal image to obtain the equalized normal image.

3. The three-stage generative low-light image enhancement method based on brightness alignment according to claim 1, characterized in that, S2 includes: Based on the equalized low-light image and the equalized normal image, construct equalization domain training pairs; The equalized low-light image and the equalized normal image are input into the pre-trained VAE encoder and mapped to the latent space to obtain the equalized low-light latent representation and the equalized normal latent representation. Using the equalized low-light latent representation as the offset endpoint, noisy samples are constructed in the latent space, and the ResShift forward diffusion process is performed. A denoising network is used to perform conditional denoising on noisy samples to predict and recover the latent representation. The recovered latent representation is restored to a pixel-domain image via a VAE decoder, resulting in an equalized domain enhanced image.

4. The three-stage generative low-light image enhancement method based on brightness alignment according to claim 3, characterized in that, The S2 further includes: optimizing the generative local recovery module using a composite loss function, wherein the composite loss function includes L1 loss and LPIPS loss.

5. The three-stage generative low-light image enhancement method based on brightness alignment according to claim 1, characterized in that, S3 includes: Based on the low-light image and its equalization result, the inverse cumulative distribution function curve of the low-light image relative to the equalization result is calculated channel by channel, and used as the initial inverse mapping curve; A preliminary lookup table mapping is performed on the equalization domain enhanced image based on the initial inverse mapping curve to obtain the initial estimate of the natural domain; The equalization domain enhanced image and the natural domain initial estimate are concatenated along the channel dimension and input into the image encoder to obtain the feature vector; By regressing scaling and offset parameters from the feature vectors, bin-by-bin affine correction is performed on the initial inverse mapping curve to obtain the corrected inverse mapping curve; The equalization domain enhanced image is subjected to bilinear interpolation lookup table mapping based on the corrected inverse mapping curve to obtain the final enhanced output.

6. The three-stage generative low-light image enhancement method based on brightness alignment according to claim 5, characterized in that, The S3 further includes: optimizing the inverse equilibrium curve network using a composite loss function, which includes L1 loss, gradient loss, and color consistency loss.

7. The three-stage generative low-light image enhancement method based on brightness alignment according to claim 1, characterized in that, After completing the independent pre-training of S2 and S3, end-to-end joint fine-tuning is performed using a freeze-thaw strategy: initially, only the parameters of the inverse equilibrium global mapping are updated, and then some parameters of the generative local recovery module are gradually unfrozen and optimized using a joint loss function.

8. A three-stage generative low-light image enhancement system based on brightness alignment, the system being used to implement the method according to any one of claims 1-7, characterized in that, include: The acquisition module is used to acquire low-light images and corresponding normal images, and to perform lossless three-channel histogram equalization on the low-light images and normal images respectively to obtain equalized low-light images and equalized normal images. The enhancement module is used to perform generative local restoration based on the equalized low-light image and the equalized normal image to obtain the equalized domain enhanced image; The output module performs inverse equalization global mapping based on the equalization domain enhanced image and the low-light image to obtain the final enhanced output.