Single image defogging method based on block-by-block nonlinear brightness prior

By employing a block-by-block nonlinear brightness prior model and multi-objective optimization, the problems of over-enhancement and color cast in image dehazing methods are solved, achieving efficient and stable image dehazing effects suitable for scenarios such as drone aerial photography and security monitoring.

CN121545232AActive Publication Date: 2026-02-17NANJING UNIV OF POSTS & TELECOMM

Patent Information

Application Number
CN202610067225.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-01-19
Publication Date
2026-02-17
Estimated Expiration
2046-01-19

AI Technical Summary

Technical Problem

Existing image dehazing methods suffer from over-enhancement and significant color cast in applications such as drone aerial photography and security monitoring. They also consume large amounts of computational resources, have insufficient generalization ability, and ignore the brightness consistency between blurred images and dehazed results.

Method used

A block-by-block nonlinear brightness prior model is adopted. By constructing a monotonically increasing nonlinear mapping relationship for local blocks, combined with an atmospheric scattering model and multi-objective optimization, the solution space of the dehazing result is limited. A small number of global parameters are used for unified optimization to achieve stability and naturalness of brightness restoration.

Benefits of technology

It effectively suppresses over-enhancement and color cast, reduces computational complexity and resource consumption, is suitable for deployment on edge devices, and improves image visual quality and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121545232A_ABST
    Figure CN121545232A_ABST
Patent Text Reader

Abstract

The invention discloses a single image defogging method based on block-by-block nonlinear brightness prior, which belongs to the technical field of image processing, and comprises the following steps of: dividing a fog-containing image into local blocks, calculating the average brightness of the blocks, and constructing prior block-by-block monotone increasing nonlinear mapping to represent the corresponding relationship between the brightness of fog-containing blocks and the brightness of clear blocks; an atmospheric scattering model is combined, an atmospheric light vector is modeled into a vector, the vector and a PPWF form a parameterized recovery model, three scalar parameters are taken as a core, an optimal parameter is obtained through multi-target joint optimization, alternate optimization and golden section search, and finally a defogged image is generated. The method has the advantages of few parameters, low complexity and no need of training data, the definition and global contrast of far and near scenery can be remarkably improved while the image structure is maintained, and halo, excessive enhancement and color cast are effectively inhibited; the method has good robustness for different fog densities and illumination conditions, and is suitable for real-time and embedded defogging application of single-channel or multi-channel images.
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 more specifically, to a single-image dehazing method that combines an atmospheric scattering model, block-by-block monotonic nonlinear brightness mapping, and multi-objective optimization. Background Technology

[0002] Atmospheric impurities in hazy weather degrade image quality, leading to decreased contrast, blurred details, and color distortion. This not only affects the user's visual experience but also hinders intelligent vision tasks requiring high-quality input. Existing dehazing methods still face many challenges: traditional methods based on dark channel priors rely too heavily on prior assumptions, easily producing halos and color casts in the sky or bright areas; deep learning-based methods, while performing well on specific datasets, typically rely on large-scale labeled samples, resulting in insufficient generalization ability and high computational resource consumption; and physical model-based methods, despite their sound theoretical foundation, are often susceptible to noise and texture interference due to unstable estimates of atmospheric light values ​​and transmittance, leading to block artifacts in practical applications. Furthermore, existing image dehazing methods have a fundamental drawback: they consistently ignore the brightness consistency between the blurred image and its dehazing result, resulting in widespread over-enhancement and significant color casts. These shortcomings are particularly pronounced in real-world engineering applications such as drone aerial photography and security monitoring, directly impacting the stability and practical usability of dehazing results. Summary of the Invention

[0003] To address the aforementioned problems in existing technologies, this invention, in its overall design, starts from the spatial characteristics of the impact of fog on image brightness and constructs a constrained parametric dehazing model. Specifically, this invention recognizes that statistical modeling of brightness at a local scale helps to suppress noise and texture interference while maintaining sensitivity to changes in fog distribution. Based on this, by introducing a block-by-block monotonically increasing nonlinear brightness prior, the changing trend of brightness recovery during the dehazing process is explicitly constrained, thereby limiting the solution space of the dehazing result and avoiding over-enhancement and brightness imbalance. Furthermore, by combining the above prior with an atmospheric scattering model and using a small number of global parameters for unified optimization, efficient and stable image dehazing can be achieved while ensuring structural consistency and natural brightness.

[0004] To solve the above problems, the technical solution adopted by the present invention is as follows:

[0005] A single-image dehazing method based on block-by-block nonlinear brightness prior, the method comprising the following steps:

[0006] Step S1: Image acquisition and normalization. Acquire the foggy image I (single-channel or multi-channel) and normalize the pixel intensity to [0,1].

[0007] Step S2: Block division and block mean calculation. Divide I into preset blocks, traverse all local blocks of the hazy image, and calculate the average brightness of each block. To address the issues of image brightness modeling stability and spatial non-uniformity, local blocks use fixed-size non-overlapping or partially overlapping windows. The average brightness of each local block is calculated. It is obtained by the arithmetic mean of the pixels within the window.

[0008] Step S3: Constructing the prior map.

[0009] To address the issues of over-enhancement and brightness imbalance in traditional dehazing methods, a prior block-by-block monotonically increasing nonlinear function (PPWF) is constructed to characterize the mapping relationship between the average brightness of local blocks in a foggy image and the average brightness of local blocks in the corresponding clear image.

[0010] (12)

[0011] in, The coordinates of the local block center are... To correspond to the average brightness of the sharp image within this block, a and b are parameters used to control the amplitude and shape of the fitted curve, respectively. Their derivatives are:

[0012] (13)

[0013] in, for To suppress excessive enhancement and ensure numerical stability, the derivative of PPWF is constrained as follows:

[0014] Step S4: Atmospheric light estimation and parameterization model.

[0015] Traverse the local block and select The largest block is the atmospheric light region; atmospheric light A is modeled as

[0016] (14)

[0017] in, The intensity coefficient of atmospheric light A; It is the color vector of atmospheric light, which consists of three components: red, green, and blue channels; , and These represent the components of the color vector in the red, green, and blue channels, respectively, and their values ​​are the input image values ​​in the corresponding channels. The average brightness value within the local block centered on the luminance.

[0018] Atmospheric scattering model:

[0019] (15)

[0020] in, The pixel values ​​of the hazy image. The pixel values ​​of the dehazed image. Transmittance.

[0021] Combining formulas (12), (14), and (15), and through formula transformation, the coarse transmission map is obtained. and the reflected value of the restored dehazed image They are respectively:

[0022] (16)

[0023] (17)

[0024] Step S5: Multi-objective joint optimization,

[0025] To resolve the conflict between enhancing sharpness and achieving natural brightness, a multi-objective joint optimization strategy is employed to solve for the optimal parameter set. :

[0026] (18)

[0027] Where α, β, and γ are the weight coefficients of each item and are non-negative constants;

[0028] Structural consistency item for:

[0029] (19)

[0030] in, It is the KL divergence, used to measure the consistency of the local average brightness distribution between a hazy and a dehazed image. and These are the probability distributions of the local average brightness values ​​of the foggy and defoggy images, respectively, with the number of bins N ranging from 64 to 128.

[0031] Contrast Enhancement for:

[0032] (20)

[0033] in, It is the Shannon entropy, used to reflect the degree of dispersion of the brightness distribution in a dehazed image;

[0034] Brightness balance item for:

[0035] (twenty one)

[0036] in, This represents the average brightness of the dehazed image.

[0037] Alternating optimization and golden section search are used to optimize a, b, By performing a one-dimensional rotation solution, the optimal parameter set is obtained. .

[0038] The parameter search range is a∈[0,1], b∈[0,1], ∈[0.8,1.2], when iterative updates cause the target to decrease and When crossing the boundary, The parameter remains within this interval; the termination condition is if the parameter change is less than 0.01 (before and after one iteration, (a,b, The maximum absolute change is less than 0.01).

[0039] Step S6: Transmission image calculation and restoration

[0040] Optimal parameter set Substitute the values ​​into formula (16) in step S4 to calculate the coarse transmission map, and then use formula (17) to calculate the reflectance of the dehazed image. Finally, the reflectivity of atmospheric light is used to reconstruct the image, generating the final dehazed image.

[0041] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the single-image dehazing method based on block-by-block nonlinear brightness prior.

[0042] A computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the single-image dehazing method based on block-by-block nonlinear brightness prior.

[0043] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0044] This invention solves the problems of over-enhancement and color cast caused by traditional dehazing techniques: existing technologies often ignore the brightness consistency between the hazy and dehazed images, leading to over-enhancement and color cast in the dehazed image. This invention innovatively proposes a block-by-block nonlinear brightness prior, explicitly modeling the monotonically increasing nonlinear mapping relationship between hazy image blocks and clear image blocks. Through this brightness consistency constraint, this invention can adaptively preserve the lighting characteristics and color fidelity of the original scene while achieving image dehazing, fundamentally suppressing over-enhancement and color cast, and significantly improving visual quality (this conclusion is supported by data in comparative experiments, see Table 1).

[0045] This invention significantly reduces model complexity and computational overhead: it reconstructs the complex single-image dehazing problem into a model containing only three scalar parameters. The parameterized recovery model of this invention significantly reduces the solution space of the dehazing problem, eliminating the need for the algorithm to rely on massive deep neural networks or paired training datasets. Combined with the "filter optimization" method proposed in this invention, the algorithm achieves high efficiency while ensuring high-quality output, making it highly suitable for deployment on edge devices with limited computing power, such as drones and security monitoring systems.

[0046] This invention constructs a multi-objective joint optimization function that includes information gain, exposure control, and pixel histogram preservation. This function dynamically balances image detail recovery and noise suppression. It maximizes the extraction of texture details hidden under fog by utilizing information entropy, prevents overexposure in highlights or complete blacking in shadows by using the exposure term, and maintains the consistency of pixel histogram distribution between input and output images by using KL divergence constraints. Furthermore, the guided filtering introduced in the final step not only smooths the transmission image but also effectively eliminates the block effect and halo artifacts caused by block processing, resulting in good performance under different fog concentrations and lighting conditions. Attached Figure Description

[0047] Figure 1 This is a flowchart of a single-image dehazing method based on block-by-block nonlinear brightness prior. Detailed Implementation

[0048] To enhance understanding of the present invention, the embodiments will be described in detail below with reference to the accompanying drawings.

[0049] Example: A single-image dehazing method based on block-by-block nonlinear brightness prior is described in detail below. Figure 1 As shown, the specific steps are as follows:

[0050] Step S1: Image acquisition and normalization.

[0051] Input: A hazy color image I with pixel intensity range [0, 255].

[0052] Preprocessing: Channel normalization from I to I∈ [0,1]; Calculation of luminance components for statistical and guided filtering. :

[0053] (twenty two)

[0054] in, , and These represent the pixel values ​​at the corresponding pixel positions in the red, green, and blue channels of the normalized input image, respectively; subsequent calculations are performed in the floating-point numerical domain [0,1].

[0055] Parameter configuration: Window size w*w = 16×16, step size s = 8; histogram binning N = 64; target weights. =5, =500, =0.01; Guided filter radius r=40, regularization Parameter search range: a∈[0,1], b∈[0,1], ∈[0.8,1.2];

[0056] Step S2: Block partitioning and calculation of block mean.

[0057] Local blocks use fixed-size non-overlapping or partially overlapping windows, calculated by arithmetic mean. Center of each block corresponding The block mean is calculated and interpolated to form a block mean map M of the same size as the original image (for subsequent reuse). The pixel values ​​of M are then statistically analyzed using N bins within the interval [0,1] and normalized to obtain the mean brightness distribution p of the foggy blocks.

[0058] Step S3: Constructing the prior map.

[0059] Based on the principle of minimizing fitting error, PPWF is defined as:

[0060] (twenty three)

[0061] Derivative constraints are used for numerical stability and to suppress over-enhancement:

[0062] (twenty four)

[0063] Step S4: Atmospheric light estimation and parameterization model.

[0064] Select from all blocks Largest block center The atmospheric light vector is estimated based on its location as follows:

[0065] (25)

[0066] Step S5: Multi-objective joint optimization (solving a, b, ),

[0067] Objective function:

[0068] (26)

[0069] Three complementary constraints:

[0070] (27)

[0071] (28)

[0072] (29)

[0073] Atmospheric scattering model:

[0074] (30)

[0075] The parametric image restoration model is obtained by combining and transforming equations (23), (25), and (30):

[0076] (31)

[0077] (32)

[0078] Solution strategy: Alternating one-dimensional golden section search (optimizing a→b→ sequentially) (Keep the rest of the parameters fixed).

[0079] Single candidate (a, b, The search process for ) is as follows:

[0080] 1) Calculate the coarse transmission map: Substitute the current candidate parameters into formula (31) to calculate the coarse transmission map. ;

[0081] 2) Generate coarse dehazing map: Based on formula (30), perform inverse transformation on the atmospheric scattering model to generate the coarse transmission map. Inversion is performed to calculate a coarse estimate of the dehazed image. ;

[0082] 3) Statistical indicators: coarse estimation results for dehazed images The brightness channel calculation block mean map is obtained by performing histogram statistics on N equal-width bins in the interval [0,1], and then normalizing the results to obtain the brightness distribution. The average brightness distribution of the hazy block (Original patch mean distribution) and Calculate the structural consistency term using formulas (27) and (28). Entropy term ;Depend on Calculate the average brightness of the dehazed image The brightness constraint term is calculated using formula (29). The objective function value is obtained by weighting the three terms using formula (26). Comparing different candidates , choose to The largest candidate will be the next direction for updates.

[0083] 4) Termination and Boundary: If the parameter change is less than 0.01 (before and after one iteration, (a,b, If the maximum absolute change is less than 0.01, the search stops; if the search results indicate an out-of-bounds error... And after crossing the boundary If it's lower, then... Fixing to the nearest boundary value (0.8 or 1.2) is equivalent to the optimal solution in that direction falling on the boundary;

[0084] Step S6: Final transmission image and restoration.

[0085] The optimal parameter set output in step S5 Substituting into formula (31) yields the final coarse transmission map. At this point, guided filtering is used for refinement (guide filter takes...). ), to obtain a fine transmission map with well-preserved edges .

[0086] Finally, transmittance ( Substituting into formula (32), we obtain the reflectance of a high-quality dehazed image. The image was reconstructed based on atmospheric light to generate the final dehazed image. The evaluation results are shown in Table 1.

[0087] Table 1 provides a quantitative comparison of dehazing methods for different datasets.

[0088]

[0089] It should be noted that the above embodiments are not intended to limit the scope of protection of the present invention. Equivalent transformations or substitutions made based on the above technical solutions all fall within the scope of protection of the claims of the present invention.

Claims

1. A single image defogging method based on block-wise nonlinear brightness prior, characterized in that, The method comprises the following steps: Step S1: image acquisition and normalization, acquiring a fog image I, I is a single-channel or multi-channel image, and pixel intensity is normalized to [0, 1]; Step S2: block division and calculation of block mean, I is divided according to a preset block, all local blocks of the fog image are traversed, and the average brightness of each block is calculated; Step S3: prior mapping construction, a prior block-wise monotonically increasing nonlinear function PPWF is constructed, which is used to represent the mapping relationship between the average brightness of a local block of the fog image and the average brightness of a corresponding local block of a clear image; Step S4: atmospheric light estimation and parameterized model, modeling atmospheric light, and combining atmospheric scattering model ASM, establishing a parameterized image restoration model with a, b, three scalar core optimization variables, where a and b are parameters for controlling the amplitude and shape of the fitting curve, is the intensity coefficient of the atmospheric light A; Step S5: multi-objective joint optimization, an optimal parameter set is solved by using a multi-objective joint optimization strategy, and three constraints of structural consistency, contrast enhancement and brightness balance are considered; Step S6: transmission map calculation and restoration, the optimal parameter set is substituted into the model in step S4 to calculate a coarse transmission map, the coarse transmission map is optimized by guided filtering GF, and finally a final defogging image is generated.

2. The single image dehazing method based on block-wise nonlinear brightness prior according to claim 1, characterized in that, The local blocks of step S2 employ fixed-size non-overlapping or partially overlapping windows, the average luminance of each local block being obtained by the arithmetic mean of the pixels within the window.

3. The single image dehazing method based on block-wise nonlinear brightness prior according to claim 2, characterized in that, According to the MATLAB fitting SOTS dataset clear hazy image in a single local patch curve and I-Haze data set in 10 representative block-wise fitting curve, based on the principle of minimizing fitting error, the prior block-wise monotonically increasing nonlinear function PPWF in step S3 is defined as: (1) wherein, is the local block center coordinate, is the average luminance of the corresponding sharp image within the block; a and b are parameters for controlling the amplitude and shape of the fitted curve, respectively, and the PPWF derivative is: (2) where is a shorthand for suppressing overenhancement and ensuring numerical stability, the derivative of PPWF is imposed with the following constraint: .

4. The single image defogging method based on block-wise nonlinear brightness prior according to claim 3, characterized in that, The atmospheric light A estimation in step S4 comprises: Step S41: Selecting average brightness The maximum local block is selected as the pure atmosphere light region, and the coordinates are: (3) Step S42: the atmospheric light A is modeled as: (4) wherein is an intensity coefficient of the atmospheric light A; is a color vector of the atmospheric light, composed of three components in the red, green and blue channels; , and denote the components of the color vector in the red, green and blue channels, respectively.

5. The single image dehazing method based on block-wise nonlinear brightness prior according to claim 4, characterized in that, The parameterized image restoration model in step S4 is derived from the atmospheric scattering model: (5) The coarse transmission map is obtained by formula transformation of formula (1), formula (4), and the formula is as follows: The calculation of the restored defogging image reflectivity is as follows: (6) (7) wherein, is a pixel value of the foggy image, is a pixel value of the de-fogged image, is a transmittance, CR(·) denotes a guided filter operator to optimize the smoothness and edge preservation of the coarse transmission map.

6. The single image dehazing method based on block-wise nonlinear brightness prior according to claim 5, characterized in that, The multi-objective joint optimization in step S5 aims to maximize the following formula: (8) wherein, is the optimal parameter set, a, b, g are weight coefficients of each term and are non-negative constants, the structural consistency term is: (9) wherein, is the KL divergence, used to measure the consistency of the local average intensity distribution of the hazy image and the dehazed image, and are the probability distribution of the local average intensity value of the hazy image and the dehazed image, respectively, with the bin number N being 64–128; Contrast enhancement term is: (10) wherein, is the Shannon entropy, used to reflect the discrete degree of the brightness distribution of the defogged image; Brightness balance term is: (11) wherein is the average luminance of the defogged image.

7. The single image dehazing method based on block-wise nonlinear brightness prior according to claim 6, characterized in that, The solution of step S5 adopts an alternating optimization combined with golden section search strategy, which comprises: Step S51: initialize parameter search range a∈[0,1], b∈[0,1], ∈[0.8,1.2], and the initial value of b is set as the midpoint of its search range; Step S52: Fixing any two parameters, searching the third parameter by golden section optimization, three parameters rotation iteration, searching the When exceeding [0.8, 1.2] and causing the objective function to decrease, maintaining in the interval; Step S53: terminate iteration when the parameter variation is less than 0.01, output the optimal parameter set .

8. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the program to realize the single image defogging method based on block-wise nonlinear brightness prior according to any one of claims 1 to 7.

9. A computer readable storage medium having stored thereon computer instructions, wherein, The computer instructions are executed by the processor to realize the single image defogging method based on block-wise nonlinear brightness prior according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Image defogging method based on multi-scale fusion and total variational optimization

    CN106530240A

  • Single-image defogging method based on extreme scattering channel

    CN111598814A

  • Depth picture authentic identification method and system based on facial region attention mechanism

    CN114973364A

  • Deep forgery detection method based on self-mixing

    CN119672816A

  • Low-light image enhancement method based on multi-scale perception enhancement structure block decomposition

    CN120450976A

Cited By

  • High bit-depth remote sensing image downscaling and enhancement method based on three-level optimization

    CN122434803A

  • High bit-depth remote sensing image downscaling and enhancement method based on three-level optimization

    CN122434803B