Underwater image enhancement method and system based on image adaptive structured correction
By employing an image adaptive structured correction method, which utilizes RGB thumbnail prediction parameters and performs multi-level correction in the YCbCr space, the problems of computational efficiency and quality in high-resolution underwater image enhancement are solved, achieving lightweight and efficient image enhancement results.
Patent Information
- Application Number
- CN202611402847.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-24
AI Technical Summary
Existing underwater image enhancement methods struggle to simultaneously achieve enhancement quality, computational efficiency, and differentiated modeling of brightness and chromaticity under high-resolution conditions. Furthermore, they require additional depth sensors or depth estimation networks, which limits the deployment of monocular RGB cameras.
An image adaptive structured correction method is adopted, which separates the prediction of fixed-size parameters from the original resolution structured execution. The image adaptive correction parameters are predicted by RGB thumbnails, and multi-level correction calibration is performed in YCbCr space, including luminance space correction, nonlinear mapping, joint chromaticity mapping and global calibration, and finally converted back to RGB space.
While preserving the original high-frequency details, it achieves lightweight and efficient high-resolution underwater image enhancement, reducing computational load and inference time, making it suitable for underwater robots and edge devices.
Smart Images

Figure CN123160401A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of underwater image processing and computer vision technology, specifically to an underwater image enhancement method and system based on adaptive structured correction. Background Technology
[0002] During underwater imaging, the propagation of light in water is affected by wavelength-selective absorption and scattering. Different color channels attenuate to varying degrees with propagation distance. Simultaneously, backscattering from suspended particles creates a fogging effect, resulting in color casts, low contrast, and reduced detail in underwater images. Underwater image enhancement is a crucial preprocessing step in underwater robot vision systems for environmental perception, target detection, feature matching, localization and mapping, ocean observation, and underwater operations. As underwater camera resolution continues to improve, practical systems also require enhancement methods to maintain low model size and inference latency even at high-resolution inputs such as 1080P and 4K.
[0003] Existing deep learning-based underwater image enhancement methods typically employ convolutional networks, Transformers, state-space models, or diffusion models to directly perform dense pixel-to-pixel reconstruction of the input image. While these methods can learn complex color and texture mappings, their feature extraction and reconstruction processes often increase in tandem with the input resolution. In high-resolution scenarios, this significantly increases computational cost, memory usage, and inference time, making them unsuitable for real-time deployment on embedded platforms, edge computing devices, and underwater robots.
[0004] On the other hand, some efficient image enhancement methods predict transformation parameters by inputting them at low resolution and then applying the transformation to high-resolution images to reduce computational overhead at the prediction end. However, existing schemes typically use a single color space to simultaneously perform degradation estimation and image correction, which easily leads to the mixed modeling of attenuation information, overall brightness, and chromaticity variations in different color channels. The RGB color space can directly preserve the attenuation response of each color channel, while the YCbCr color space explicitly separates brightness and chromaticity, making it more suitable for performing brightness correction and coupled chromaticity mapping separately. How to utilize the complementary properties of the two representations while preserving the original resolution details is a key issue in high-resolution underwater image enhancement.
[0005] Furthermore, underwater attenuation is significantly correlated with scene distance, and depth information can be used to constrain degradation modeling; however, if the deployment phase continues to rely on depth maps, depth sensors, or additional depth estimation networks, it will increase system complexity and computational overhead, and limit the use of platforms with only a monocular RGB camera.
[0006] Therefore, existing underwater image enhancement schemes still struggle to simultaneously achieve enhancement quality, computational efficiency, differentiated modeling of brightness and chromaticity, and deployment requirements without additional depth dependence under high-resolution input conditions. Summary of the Invention
[0007] To address the aforementioned problems, this invention proposes an underwater image enhancement method and system based on adaptive structured correction. This method separates the prediction of fixed-size parameters from the structured execution at the original resolution, thereby essentially decoupling the prediction computation from the input resolution. This achieves lightweight, high-resolution underwater image enhancement while preserving the original high-frequency details.
[0008] According to some embodiments, the present invention adopts the following technical solution: Underwater image enhancement methods based on adaptive structured correction include: Obtain the original resolution underwater RGB image to be enhanced, scale the RGB image to a preset fixed size, and extract image-level color statistics from the obtained RGB thumbnail; The RGB thumbnail and the image-level color statistics are input together into the structured correction predictor to obtain a set of image adaptive correction parameters; The original resolution underwater RGB image is converted to YCbCr space to obtain a YCbCr representation including luminance and chrominance channels; Based on the obtained set of image adaptive correction parameters, the YCbCr representation is subjected to multi-level correction calibration. Specifically, the multi-level correction involves: performing luminance spatial correction on the luminance channel using spatial correction parameters from the image adaptive correction parameter set; performing nonlinear mapping and thinning on the spatially corrected luminance channel using channel mapping parameters from the image adaptive correction parameter set; performing joint mapping on the chrominance channel using chrominance mapping parameters from the image adaptive correction parameter set; merging the mapped luminance and chrominance channels to obtain the channel-corrected YCbCr representation; and sequentially performing affine color calibration and covariance calibration on the channel-corrected YCbCr representation using global calibration parameters from the image adaptive correction parameter set to obtain the globally calibrated YCbCr enhancement result. The enhanced YCbCr result after global calibration is converted back to RGB space, and the enhanced underwater RGB image is output.
[0009] According to some embodiments, the present invention adopts the following technical solution: An underwater image enhancement system based on adaptive structured correction includes: The scaling and extraction module is configured to: acquire the original resolution underwater RGB image to be enhanced, scale the RGB image to a preset fixed size, and extract image-level color statistics from the obtained RGB thumbnail; The parameter prediction module is configured to input the RGB thumbnail and the image-level color statistics into the structured correction predictor to obtain a set of image adaptive correction parameters. The spatial conversion module is configured to convert the original resolution underwater RGB image to YCbCr space to obtain a YCbCr representation including luminance and chrominance channels. The multi-level correction module is configured to perform multi-level correction calibration on the YCbCr representation based on the obtained set of image adaptive correction parameters. Specifically, the multi-level correction involves: performing luminance spatial correction on the luminance channel using spatial correction parameters from the image adaptive correction parameter set; performing nonlinear mapping and thinning on the spatially corrected luminance channel using channel mapping parameters from the image adaptive correction parameter set; performing joint mapping on the chrominance channel using chrominance mapping parameters from the image adaptive correction parameter set; merging the mapped luminance and chrominance channels to obtain the channel-corrected YCbCr representation; and sequentially performing affine color calibration and covariance calibration on the channel-corrected YCbCr representation using global calibration parameters from the image adaptive correction parameter set to obtain the globally calibrated YCbCr enhancement result. The spatial conversion module is configured to convert the globally calibrated YCbCr enhancement result back to RGB space and output the enhanced underwater RGB image.
[0010] According to some embodiments, the present invention adopts the following technical solution: A computer program product includes a computer program that, when executed by a processor, implements the underwater image enhancement method based on image adaptive structured correction.
[0011] According to some embodiments, the present invention adopts the following technical solution: A non-transitory computer-readable storage medium is provided for storing computer instructions, which, when executed by a processor, implement the underwater image enhancement method based on image adaptive structured correction.
[0012] According to some embodiments, the present invention adopts the following technical solution: An electronic device includes a processor, a memory, and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory to cause the electronic device to perform the underwater image enhancement method based on image adaptive structured correction.
[0013] Compared with the prior art, the beneficial effects of the present invention are as follows: 1) This invention uses fixed-size RGB thumbnails for structured parameter prediction and applies the correction operation directly to the original resolution image, so that the main learning prediction calculation is basically decoupled from the original input resolution, thus preserving the original high-frequency texture and spatial details while avoiding dense deep feature reconstruction of the original image.
[0014] 2) This invention adopts a cross-color space collaborative structure of RGB predictor and YCbCr actuator. It utilizes RGB to retain the color channel attenuation response and YCbCr to separate luminance and chrominance. It also constructs a compact structured correction space through transmittance proxy, light curtain field, luminance gain, monotonic luminance curve, coupled chrominance lookup table, affine color transformation and covariance calibration. Compared with directly predicting all output pixels, it has higher parameter efficiency and clearer functional division.
[0015] 3) In the training phase, this invention assigns semantics related to scene distance to the transmissivity agent through relative depth ranking constraints, but the depth map is not input to the predictor and the actuator. In the deployment phase, no depth sensor or depth estimation network is required, thereby reducing additional computation and sensor dependence.
[0016] 4) This invention improves training stability through identity initialization, constrained luminance space correction, monotonic luminance curves, and controlled chromaticity lookup table mapping. In the example implementation, the model contains only 9,486 parameters and can achieve efficient inference on original resolution inputs such as 1080P and 4K, making it suitable for underwater robots, edge devices, and high-throughput marine vision systems. Attached Figure Description
[0017] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.
[0018] Figure 1 This is a schematic diagram of the overall framework of the image adaptive structured correction underwater image enhancement method for deployment at the original resolution disclosed in Embodiment 1 of the present invention; Figure 2 This is a flowchart of the underwater image enhancement method disclosed in Embodiment 1 of the present invention; Figure 3 This is a schematic diagram of the structured correction predictor disclosed in Embodiment 1 of the present invention; Figure 4 This is a schematic diagram of the original resolution YCbCr actuator disclosed in Embodiment 1 of the present invention; Figure 5 This is a schematic diagram of deep guided training disclosed in Embodiment 1 of the present invention. Detailed Implementation
[0019] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0020] It should be noted that the following detailed descriptions are exemplary and intended to provide further illustration of the invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.
[0021] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of exemplary embodiments according to the invention. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.
[0022] Example 1 One embodiment of the present invention provides an underwater image enhancement method based on image adaptive structured correction, such as... Figure 1 As shown, the underwater image enhancement framework based on predictor-actuator separation does not reconstruct the enhanced image pixel-by-pixel using a large network at the original resolution. Instead, it predicts a small number of image adaptive correction parameters with defined functions on a fixed-size RGB thumbnail, and then executes these parameters on the original resolution YCbCr image. During the training phase, the transmittance surrogate is constrained by relative depth, while the inference phase only requires RGB images, such as... Figure 2 As shown, the reasoning process includes: Step S1: Obtain the original resolution underwater RGB image to be enhanced, scale the RGB image to a preset fixed size, and extract image-level color statistics from the obtained RGB thumbnail; Specifically, let the underwater RGB image to be enhanced be... ,in, and These are the original image height and width, respectively. This embodiment does not directly... × Instead of running deep prediction networks at high resolution, they use bilinear interpolation operators. Will Scale to a preset fixed size to get a thumbnail. , represented as
[0023] The subscript 256 indicates that the original resolution image will be converted to a higher resolution. Scaling to an RGB thumbnail with a height of 256 and a width of 256 That is, the thumbnail's spatial size is 256×256; the original resolution image The space size is still × This embodiment is not limited to using 256×256, as long as the prediction resolution is decoupled from the original input resolution. (The thumbnail will follow.) Within a 256×256 spatial range, respectively for , , The channel mean and channel standard deviation are calculated for each of the three channels, and these are used to construct image-level color statistics.
[0024] in, , , These represent thumbnails. , , The mean of the three channels in a 256×256 spatial dimension. , , These represent the standard deviations of the three corresponding channels, thus the image-level color statistics comprise a total of six scalars. These statistics are used to supplement image-level color shift and contrast information that instance normalization may weaken; original resolution image. It is also retained in subsequent steps, so the original texture is not lost during the thumbnail prediction process.
[0025] Step S2: Input the RGB thumbnail and the image-level color statistics into the structured correction predictor to obtain the set of image adaptive correction parameters; Furthermore, the structured correction predictor includes a shared feature extraction backbone. The output of the shared feature extraction backbone is used to predict the spatial correction parameters on the one hand, and after global aggregation and fusion with the projection result of the image-level color statistics on the other hand, it is used to predict the channel mapping parameters, the chromaticity mapping parameters and the global calibration parameters. The spatial correction parameters include transmittance proxy. Light curtain field and brightness gain field The channel mapping parameters include a monotonic brightness curve. The chromaticity mapping parameters include a coupled chromaticity lookup table. The global calibration parameters include affine color transformation. Covariance calibration transformation .
[0026] Specifically, let the structured correction predictor be... ,in, The learnable parameters are represented as follows:
[0027] in, The set of adaptive correction parameters for the predicted image. For transmittance proxy, For light curtain field, For brightness gain field, A monotonic brightness curve. For coupling chromaticity lookup table, For affine color transformation, This indicates a covariance calibration transformation.
[0028] The above outputs can be divided into three groups according to their functions: spatial correction group, nonlinear mapping group, and image-level calibration group. The spatial correction group refers to the spatial correction parameters, including transmittance proxy. Light curtain field and brightness gain field The nonlinear mapping component is composed of channel mapping parameters and chroma mapping parameters, wherein the channel mapping parameters include a monotonic luminance curve. The chromaticity mapping parameters include a coupled chromaticity lookup table. The image-level calibration group, i.e., the global calibration parameters, includes affine color transformation. Covariance calibration transformation .
[0029] like Figure 3 As shown, in one specific implementation, the predictor includes a shared feature extraction backbone, which consists of three 3×3 convolutional layers with a stride of 2 and an output channel width of 16. Each convolutional layer is followed by InstanceNorm and ReLU with learnable affine parameters. After inputting a 256×256 thumbnail, a 32×32×16 shared feature map is obtained. This shared feature map is then directly fed into three 1×1 spatial prediction heads to obtain... , , That is, spatial correction parameters.
[0030] For non-spatial correction parameters, the 32×32×16 shared feature map is globally aggregated and fused with the projection result of the image-level color statistics to obtain channel mapping parameters, chromaticity mapping parameters, and global calibration parameters. Specifically, the 32×32×16 shared feature map is processed by global average pooling to obtain a 16-dimensional image-level feature vector; simultaneously, a 6-dimensional statistic composed of the mean and standard deviation of the three RGB channels is input. Figure 3The "6-dimensional statistical linear projection to 16-dimensional" module shown is a linear layer with 6 inputs and 16 outputs. Its 16-dimensional output is element-wise added to the 16-dimensional image-level feature vector to form a fused image-level feature vector, which is then input to the monotonic curve header, chromaticity lookup table header, affine color header, and covariance calibration header, respectively. This preserves both convolutional features and explicitly retains image-level color statistics.
[0031] In a specific implementation , and The output dimensions are all 1×32×32. Transmittance proxy The output from the Sigmoid field is limited to [0.05, 1]; light curtain field Constrained to [0,1] by Sigmoid; Luminance gain field The non-negative output is obtained through Softplus. , and These respectively characterize spatially varying attenuation, light curtain, and brightness gain proxy, where This is a relative proxy quantity, not a calibrated water optical coefficient.
[0032] The monotonic curve head predicts 32 positive increments. These increments are accumulated and normalized, and then zero endpoints are added, forming 33 monotonic control points. This is used to construct... The chroma LUT head outputs a 2×9×9 lookup table residual. The coupled chromaticity lookup table is obtained by adding it element-by-element to a pre-constructed 2×9×9 identity chromaticity table. The two output planes correspond to respectively and Chromaticity components. Affine color transformation. Output 12 parameters, including a 3×3 matrix. The 9 elements and 3D bias The covariance calibration head outputs 10 parameters, including the 3D target mean. Lower triangular recoloring matrix The six independent elements and one mixed weight parameter (logit); executed by The mixing coefficients are obtained using the Sigmoid function. .
[0033] In this example configuration, the predictor convolutional and normalization layers contain 5,184 parameters; the RGB statistical injection contains 112 parameters, which corresponds to... Figure 3The "RGB mean / standard deviation (6D) linear projection to 16D" module contains 6×16 weights and 16 biases; three spatial heads contain 51 parameters; the monotonic curve head, chromaticity LUT head, affine color head, and covariance head contain 544, 2,754, 204, and 170 parameters respectively, for a total of 9,019 parameters for the predictor. In addition, the actuator includes two chromaticity-gated scalars. and And a brightness refinement module with 465 parameters. The total number of parameters is 9,486. It should be noted that... and Not a coupled chromaticity lookup table Instead of using table entries, it uses a gating function. ( )control ( ) and original color The blending intensity between them; brightness refinement module Not located Figure 3 In the predictor shown, and located in Figure 4 The brightness processing branch of the original resolution YCbCr actuator is shown. The specific parameter scales mentioned above are used to illustrate that this embodiment can achieve prediction of multiple types of correction parameters with a very small model capacity, and do not constitute a limitation on the scope of protection.
[0034] Step S3: Convert the original resolution underwater RGB image to YCbCr space to obtain a YCbCr representation including luminance and chrominance channels; This step uses the original resolution image. As input, a differentiable full-range BT.601 transform is used to convert RGB to the luminance channel. and centralized chroma channel , :
[0035]
[0036]
[0037] in, , , These represent the pixel values of the red, green, and blue channels in the original resolution input image, normalized to the range [0,1], respectively. Indicates by , , The luminance components obtained by linear combination Indicates blue color difference signal, This represents the red color difference signal. This embodiment uses a centered chromaticity representation, i.e. and The neutral color center is located near zero.
[0038] Step S4: Based on the obtained set of image adaptive correction parameters, perform multi-level correction calibration on the YCbCr representation; Specifically, the multi-level correction involves: performing luminance spatial correction on the luminance channel using spatial correction parameters from the image adaptive correction parameter set; performing nonlinear mapping and thinning on the spatially corrected luminance channel using channel mapping parameters from the image adaptive correction parameter set; performing joint mapping on the chrominance channel using chrominance mapping parameters from the image adaptive correction parameter set; merging the mapped luminance and chrominance channels to obtain the channel-corrected YCbCr representation; and sequentially performing affine color calibration and covariance calibration on the channel-corrected YCbCr representation using global calibration parameters from the image adaptive correction parameter set to obtain the globally calibrated YCbCr enhancement result. Specifically, adopting such as Figure 4 The YCbCr actuator described above uses spatial correction parameters, channel mapping parameters, chromaticity mapping parameters, and global calibration parameters to perform multi-level correction and calibration of the YCbCr representation of underwater images, including: 1. Perform luminance spatial correction on the luminance channel in the YCbCr representation using spatial correction parameters.
[0039] Spatial correction parameters (transmittance proxy) for 32×32 resolution Light curtain field and brightness gain field Upsampled to bilinear interpolation × Then, for the brightness channel Perform spatial brightness correction:
[0040] in, This represents the luminance channel after spatial correction. Used to describe strong light curtain components in low transmittance regions. This method is used to control brightness compensation in low-transmittance regions; it is not executed directly. The analytical inversion of the form can therefore reduce There is a risk that noise and quantization error will be excessively amplified when the noise level is low.
[0041] 2. Perform nonlinear mapping and refinement on the spatially corrected luminance channel using channel mapping parameters.
[0042] First, through the monotonic brightness curve in the channel mapping parameters. For the spatially corrected luminance channel (1) Perform global nonlinear remapping, and then use a lightweight thinning module that operates only on the original resolution single-channel brightness. The local residual is generated, which can be expressed by the formula:
[0043] A specific It consists of 3×3 convolutions from 1 to 16 channels, 3×3 depthwise convolutions with a width of 16, and 3×3 projections from 16 channels to 1 channel, with a total of 465 parameters. Because... Instead of building the original resolution RGB feature pyramid, it only processes one luminance channel, thus reducing the computational overhead of learning at the original resolution.
[0044] 3. Perform joint mapping on the chroma channels using chroma mapping parameters, and merge the mapped luminance channels and chroma channels to obtain the channel-corrected YCbCr representation.
[0045] For chroma, let the chroma channel... Using transmittance proxy Controlling the intensity of the coupled chromaticity LUT:
[0046]
[0047] in, This represents the mapped chroma channel; This represents the two-dimensional mapping result of the coupled chromaticity lookup table to the chromaticity of the current pixel. In a specific implementation, the chromaticity is first normalized to a scale of 0.5. , Transform and truncate to Range, as a 9×9 coupled chromaticity lookup table The two-dimensional query coordinates are obtained by bilinear interpolation to obtain the normalized chromaticity output, which is then multiplied by 0.5 to restore the centered chromaticity range. This indicates that the transmittance of the current pixel is used as a proxy. The calculated chromaticity gating coefficients are restricted to a range of values. This is used to adjust the actual intensity of the coupled chromaticity lookup table. and Let be two learnable global scalars in the executor, where Control the intensity of basic colorimetric correction. Control correction intensity with The magnitude of the change, in one embodiment, is initialized to . This represents the lookup table residual relative to the input chromaticity. The residual is weighted pixel-by-pixel, therefore the same globally coupled chromaticity lookup table is used. Can be proxyed based on local transmittance Adaptively change the correction intensity.
[0048] Mapped luminance channel and the mapped chroma channels Combination Thus, the channel-corrected YCbCr representation is obtained. .
[0049] 4. Using the global calibration parameters in the set of adaptive image correction parameters, perform affine color calibration and covariance calibration on the YCbCr representation after channel correction in sequence to obtain the YCbCr enhancement result after global calibration.
[0050] First, affine color calibration is performed. The affine color transformation... For a 3×3 matrix and 3D bias The set of parameters that make up the composition, i.e. ;Will YCbCr after channel correction The specific calculation is as follows:
[0051]
[0052] in, YCbCr is represented after affine color calibration. It is a 3×3 affine transformation matrix. It is a 3D bias vector; This is the brightness range constraint operator. The above equation gives... The specific definition is that only the luminance component in the input three-channel YCbCr vector is restricted to the range [0,1], without changing... and Chromaticity components. This step is used to calibrate the global linear coupling between the luminance and the two chroma channels.
[0053] Covariance calibration is then performed. The covariance calibration transformation... Parameterized by the covariance calibration head of the structured correction predictor: the predictor outputs a 3D target mean. 3×3 lower triangular recoloring matrix The six independent elements and one mixed weight parameter (logit), and let .set up Include Each pixel corresponds to a 3D vector. First, calculate the image-by-image mean of the current image. and regularized covariance matrix :
[0054]
[0055]
[0056]
[0057]
[0058]
[0059] in, This represents the total number of pixels in the current image. This is a regularization constant used to improve numerical stability. 3 represents a 3×3 identity matrix. The code implementation uses unbiased sample covariance, i.e., using... As the denominator for covariance normalization, and added to the covariance matrix Subsequently, on Perform feature decomposition. The eigenvector matrix, It is a diagonal matrix composed of eigenvalues; when calculating the inverse square root, the lower bound of each eigenvalue is first truncated to... Then, the inverse square root is taken to improve numerical stability. The obtained... The inverse square root matrix only needs to be calculated once for each image.
[0060] In the above covariance calibration, It is the global first-order statistic of the current image. It is the global second-order statistic of the current image. The covariance calibration formula first uses the first-order mean. Centralize the current representation and reuse it. The inverse square root completes decorrelation and whitening, followed by... Perform recoloring and add the target mean. Reset the first-order statistic; finally, use the mixing coefficient. Compare the calibration result with the original representation Weighted fusion is performed. This explicitly uses both the first-order mean statistics and the second-order covariance statistics of the image simultaneously, without having to independently predict high-dimensional calibration parameters for each pixel.
[0061] Step S5: Convert the globally calibrated YCbCr enhancement result back to RGB space and output the enhanced underwater RGB image.
[0062] The global calibration results output in step S4 Perform a BT.601 inverse transform. The three components are denoted as the final calibrated luminance components. Blue color difference component and red color difference component ,but:
[0063]
[0064] Will , , The values of the three channels are cropped to the range [0,1] to obtain the final enhanced image. .
[0065] The overall forward process can be summarized as follows:
[0066] in, This indicates a positive color space conversion from RGB to YCbCr. The inverse transform represents the inverse color space conversion from YCbCr to RGB; This represents the set of seven types of image adaptive correction parameters obtained by the structured correction predictor based on fixed-size RGB thumbnails. This refers to the original resolution YCbCr actuator, which specifically includes: utilizing , , Perform luminance spatial correction; utilize monotonic luminance curves. and lightweight refinement modules Perform brightness nonlinear mapping and thinning; utilize Generate gating coefficients and control the coupled chromaticity lookup table right , Perform joint mapping; after merging the luminance and chrominance results, sequentially utilize... Perform affine color calibration, utilize Perform covariance calibration. Because... Predicting on a fixed-size thumbnail, while It mainly employs pixel-by-pixel parsing operations, lookup table interpolation, 3×3 image-level matrix operations, and single-channel lightweight thinning. Therefore, when the input is expanded from 1080P to 4K, it is not necessary to run a deep feature extraction network on the original resolution.
[0067] The above describes the reasoning process. In this embodiment, depth-guided constraints are added during the training phase. Let the relative depth map corresponding to the training image be... Since transmittance typically decreases with increasing scene distance, this embodiment utilizes transmittance as a proxy for the negative logarithm. Correlation-constrained transmittance proxy . Specifically, first Adjusted by bilinear interpolation Spatial resolution, will The lower limit of the value is truncated as Then calculate the negative logarithm; subsequently, calculate the negative logarithm graph and... The image is standardized to zero mean and one standard deviation, and the mean of the element-wise product of the two is calculated as the normalized correlation coefficient. Standardized denominator added To improve numerical stability, the depth loss is:
[0068] This loss only constrains the relative ordering and does not require obtaining the true metric depth, therefore... The overall scale and translation changes are not sensitive. Importantly, the relative depth map... It only appears in the loss function, is not concatenated with the RGB thumbnail, and is not used as input to the predictor or executor. After training, the deployed model does not include a depth estimator or depth branch.
[0069] In a specific training implementation, such as Figure 5 As shown, the total loss is:
[0070] Wherein, the training reference augmented image is . Predict the enhanced image as In a specific implementation, To predict the mean absolute error between the enhanced image and the reference enhanced image across all RGB elements, The average absolute error of the two along the red channel; the structural loss term adopts... and ; Coupling chromaticity lookup table The sum of the averages of the squares of the first-order finite differences along the two input coordinate axes; for Output edge Negative differential input axis and Output edge The sum of the average values of the negative differences of the input axes after ReLU. The above loss can be expressed as:
[0071]
[0072]
[0073]
[0074]
[0075] in, and These represent the coupled chromaticity lookup tables. of Output plane and Output plane; and They represent along Input axis and The first-order finite difference of the input axis. For any output plane. , Indicates adjacent The difference between grid points Indicates adjacent The difference between grid points. This indicates that the average value is taken for all valid lookup table elements within the batch. Therefore, Simultaneously constrain the smoothness of the two output planes in the directions of the two coordinate axes; Only punish along Shaft and along The negative difference of the axis is used to maintain the monotonicity of the corresponding principal direction.
[0076] To improve training stability, this embodiment uses an initialization approach that approximates the identity mapping. The prediction head's weights are initialized to zero, and the bias is set to a positive value, making the initial... Close to 1; and The prediction head weights are initialized to zero and a negative bias is set to make the initial light curtain and gain small; The increment logit is initialized to zero to form an approximately linear curve; and Initialize from the identity mapping. The initial covariance mixing coefficient is zero; the RGB statistical projection and brightness refinement modules are initialized to no operation in the final projection. This allows the image to be enhanced to closely approximate the input image during the initial training phase, and then the necessary corrections are gradually learned.
[0077] As an example training configuration, it trains for 700 epochs on 800 pairs of underwater images at a size of 256×256, using the AdamW optimizer, a batch size of 16, and an initial learning rate of [missing information]. Weight decay Cosine annealing and exponential moving average are used. Data augmentation may include independent horizontal flipping, vertical flipping, and rotations in multiples of 90 degrees. This training configuration is merely an example and does not limit the invention to using other datasets, optimizers, or training epochs.
[0078] In a set of example tests, the aforementioned 9,486 parameter configuration achieved a PSNR of 24.137 dB and a SSIM of 0.9216 on the UIEB-90 test set, and a PSNR of 21.320 dB on the unadjusted LSUI test. Under test conditions of a single 48GB NVIDIA GeForce RTX 4090, FP32, and a batch size of 1, the original resolution 4K input processing speed reached 55.0 FPS. These results are used to illustrate the quality-efficiency advantages of fixed-size structured prediction compared to original resolution execution and do not constitute a limitation on the scope of protection of this invention.
[0079] Example 2 One embodiment of the present invention provides an underwater image enhancement system based on image adaptive structured correction, comprising: The scaling and extraction module is configured to: acquire the original resolution underwater RGB image to be enhanced, scale the RGB image to a preset fixed size, and extract image-level color statistics from the obtained RGB thumbnail; The parameter prediction module is configured to input the RGB thumbnail and the image-level color statistics into the structured correction predictor to obtain a set of image adaptive correction parameters. The spatial conversion module is configured to convert the original resolution underwater RGB image to YCbCr space to obtain a YCbCr representation including luminance and chrominance channels. The multi-level correction module is configured to perform multi-level correction calibration on the YCbCr representation based on the obtained set of image adaptive correction parameters. Specifically, the multi-level correction involves: performing luminance spatial correction on the luminance channel using spatial correction parameters from the image adaptive correction parameter set; performing nonlinear mapping and thinning on the spatially corrected luminance channel using channel mapping parameters from the image adaptive correction parameter set; performing joint mapping on the chrominance channel using chrominance mapping parameters from the image adaptive correction parameter set; merging the mapped luminance and chrominance channels to obtain the channel-corrected YCbCr representation; and sequentially performing affine color calibration and covariance calibration on the channel-corrected YCbCr representation using global calibration parameters from the image adaptive correction parameter set to obtain the globally calibrated YCbCr enhancement result. The spatial conversion module is configured to convert the globally calibrated YCbCr enhancement result back to RGB space and output the enhanced underwater RGB image.
[0080] Example 3 One embodiment of the present invention provides a computer program product, including a computer program that, when executed by a processor, implements the underwater image enhancement method based on image adaptive structured correction.
[0081] Example 4 In one embodiment of the present invention, a non-transitory computer-readable storage medium is provided for storing computer instructions, which, when executed by a processor, implement the underwater image enhancement method based on image adaptive structured correction.
[0082] Example 5 One embodiment of the present invention provides an electronic device, including: a processor, a memory, and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory to enable the electronic device to perform the underwater image enhancement method based on image adaptive structured correction.
[0083] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1A device that provides the functions specified in one or more boxes.
[0084] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0085] While the specific embodiments of the present invention have been described above in conjunction with the accompanying drawings, this is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative effort based on the technical solutions of the present invention are still within the scope of protection of the present invention.
Claims
1. An underwater image enhancement method based on adaptive structured correction, characterized in that, include: Obtain the original resolution underwater RGB image to be enhanced, scale the RGB image to a preset fixed size, and extract image-level color statistics from the obtained RGB thumbnail; The RGB thumbnail and the image-level color statistics are input together into the structured correction predictor to obtain a set of image adaptive correction parameters; The original resolution underwater RGB image is converted to YCbCr space to obtain a YCbCr representation including luminance and chrominance channels; Based on the obtained set of image adaptive correction parameters, the YCbCr representation is subjected to multi-level correction calibration. Specifically, the multi-level correction involves: performing luminance spatial correction on the luminance channel using spatial correction parameters from the image adaptive correction parameter set; performing nonlinear mapping and thinning on the spatially corrected luminance channel using channel mapping parameters from the image adaptive correction parameter set; performing joint mapping on the chrominance channel using chrominance mapping parameters from the image adaptive correction parameter set; merging the mapped luminance and chrominance channels to obtain the channel-corrected YCbCr representation; and sequentially performing affine color calibration and covariance calibration on the channel-corrected YCbCr representation using global calibration parameters from the image adaptive correction parameter set to obtain the globally calibrated YCbCr enhancement result. The enhanced YCbCr result after global calibration is converted back to RGB space, and the enhanced underwater RGB image is output.
2. The underwater image enhancement method based on adaptive structured correction as described in claim 1, characterized in that, The preset fixed size is independent of the height and width of the original resolution underwater RGB image; the image-level color statistics include the mean and standard deviation of the three RGB channels.
3. The underwater image enhancement method based on adaptive structured correction as described in claim 1, characterized in that, The structured correction predictor includes a shared feature extraction backbone. The output of the shared feature extraction backbone is used to predict the spatial correction parameters on the one hand, and after global aggregation and fusion with the projection result of the image-level color statistics on the other hand, it is used to predict the channel mapping parameters, the chromaticity mapping parameters and the global calibration parameters. The spatial correction parameters include transmittance proxy. Light curtain field and brightness gain field The channel mapping parameters include a monotonic brightness curve. ; The chromaticity mapping parameters include a coupled chromaticity lookup table. ; The global calibration parameters include affine color transformation. Covariance calibration transformation .
4. The underwater image enhancement method based on adaptive structured correction as described in claim 1, characterized in that, The luminance spatial correction is performed according to the following formula: in, This is the original luminance channel. For transmittance proxy, For light curtain field, For brightness gain field, This means that the pixel value is limited to the range [0,1].
5. The underwater image enhancement method based on adaptive structured correction as described in claim 1, characterized in that, The nonlinear mapping and refinement specifically include: The spatially corrected luminance channel is subjected to global monotonic mapping using the monotonic luminance curve in the channel mapping parameters, and the mapping result is subjected to local residual refinement using a lightweight refinement module that only acts on the luminance channel, thus obtaining the corrected luminance channel.
6. The underwater image enhancement method based on adaptive structured correction as described in claim 1, characterized in that, The joint mapping specifically includes: Based on the transmittance proxy generated in the spatial correction parameters, spatially varying chromaticity gating coefficients are generated. These chromaticity gating coefficients are then used to control the coupled chromaticity lookup table in the chromaticity mapping parameters. Channels and The channel performs a two-dimensional joint lookup table mapping to obtain the corrected chroma channel.
7. The underwater image enhancement method based on adaptive structured correction as described in claim 1, characterized in that, It also includes a deep guided training step: During the training phase, relative depth maps corresponding to the underwater RGB training images are obtained. The relative depth map Adjust to transmittance proxy Spatial resolution, for the negative logarithm of transmittance surrogate and relative depth map after lower limit truncation. Perform image-by-image standardization and calculate the normalized correlation coefficient. Constructing a depth-constrained loss ; The relative depth map It is only used for training loss calculation and is not used as input to the structured correction predictor or YCbCr actuator. Only RGB images are input during the inference phase.
8. An underwater image enhancement system based on adaptive structured correction, characterized in that, include: The scaling and extraction module is configured to: acquire the original resolution underwater RGB image to be enhanced, scale the RGB image to a preset fixed size, and extract image-level color statistics from the obtained RGB thumbnail; The parameter prediction module is configured to input the RGB thumbnail and the image-level color statistics into the structured correction predictor to obtain a set of image adaptive correction parameters. The spatial conversion module is configured to convert the original resolution underwater RGB image to YCbCr space to obtain a YCbCr representation including luminance and chrominance channels. The multi-level correction module is configured to perform multi-level correction calibration on the YCbCr representation based on the obtained set of image adaptive correction parameters. Specifically, the multi-level correction involves: performing luminance spatial correction on the luminance channel using spatial correction parameters from the image adaptive correction parameter set; performing nonlinear mapping and thinning on the spatially corrected luminance channel using channel mapping parameters from the image adaptive correction parameter set; performing joint mapping on the chrominance channel using chrominance mapping parameters from the image adaptive correction parameter set; merging the mapped luminance and chrominance channels to obtain the channel-corrected YCbCr representation; and sequentially performing affine color calibration and covariance calibration on the channel-corrected YCbCr representation using global calibration parameters from the image adaptive correction parameter set to obtain the globally calibrated YCbCr enhancement result. The spatial conversion module is configured to convert the globally calibrated YCbCr enhancement result back to RGB space and output the enhanced underwater RGB image.
9. A non-transitory computer-readable storage medium, characterized in that, The non-transitory computer-readable storage medium is used to store computer instructions, which, when executed by a processor, implement the underwater image enhancement method based on image adaptive structured correction as described in any one of claims 1-7.
10. An electronic device, characterized in that, include: The device includes a processor, a memory, and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory to cause the electronic device to perform the underwater image enhancement method based on image adaptive structured correction as described in any one of claims 1-7.
