SDR to HDR oriented video quality evaluation method and device based on gated residual injection, equipment and medium
By performing relative representation alignment between SDR and HDR videos, auxiliary features such as dark areas, chroma, and local residuals are constructed. Then, by using a gated residual injection method, the problem of low efficiency in SDR-to-HDR video quality assessment is solved, achieving more efficient and accurate quality assessment.
Patent Information
- Application Number
- CN202611520436.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-29
- Publication Date
- 2026-11-27
AI Technical Summary
In the evaluation of SDR to HDR video quality, existing technologies are difficult to effectively assess video quality, especially in the absence of true HDR references. They cannot accurately identify problems such as brightness enhancement, dark area detail collapse, and local color shift, resulting in low evaluation efficiency.
By acquiring the source SDR video and the mapped HDR video, aligning them with preset peak brightness parameters, extracting frame-level master features using a deep master network, and constructing auxiliary features for dark areas, chroma, and local residuals, and combining projection linear layers and gated residual injection, fusion features are generated, and finally, quality assessment is performed.
It improves the efficiency and accuracy of SDR to HDR video quality assessment, and can better identify problems such as brightness enhancement, dark area detail collapse and local color shift, thus improving the interpretability of the assessment.
Smart Images

Figure CN123181998A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of video processing technology, and in particular to a video quality assessment method, apparatus, device, and medium based on gated residual injection for SDR to HDR conversion. Background Technology
[0002] Currently, with the widespread adoption of High Dynamic Range (HDR) display devices, the SDR2HDR technology, which maps Standard Dynamic Range (SDR) video to HDR video, is becoming increasingly important. In SDR to HDR scenarios, there is usually no undistorted HDR ground truth reference. Therefore, video quality assessment often requires a partial or no-reference approach and relies on the temporal alignment between the source SDR video and the mapped HDR video.
[0003] Subjective degradation in SDR-HDR scenarios, besides common distortions like compression block effects and blurring, is more prominently manifested in inappropriate brightness enhancement strategies relative to the source SDR, collapse of details in dark areas, local color shifts and saturation drift, and structural residuals caused by inconsistent mapping slopes in different regions within the same frame. These distortions are often strongly correlated with the relative dynamic range defined by the SDR source-side content conditions and the peak brightness of the display / content. While depth features extracted directly from single-channel or dual-channel convolutional backbones can characterize general appearance degradation, they struggle to express verifiable intermediate quantities of what relative changes occurred under what brightness / chromaticity conditions in the source SDR, thus lacking sufficient interpretability for specific issues in the mapping process.
[0004] In addition, when multiple auxiliary features coexist with deep main features, the auxiliary features and main features need to be concatenated in the channel dimension before being sent to the quality regression head. On the one hand, this will increase the input dimension of the hidden layer; on the other hand, mixing heterogeneous statistics with visual embedding in the same linear space can easily cause the main visual representation to be submerged by high-dimensional auxiliary statistics, and it is also difficult to control whether to inject and how strong the injection is according to the branch.
[0005] As can be seen from the above, improving the efficiency of video quality assessment during the SDR to HDR conversion process is an urgent problem to be solved. Summary of the Invention
[0006] In view of this, the purpose of this invention is to provide a video quality assessment method, apparatus, device, and medium based on gated residual injection for SDR to HDR conversion, which can improve the efficiency of video quality assessment in the process of SDR to HDR video quality assessment based on gated residual injection. The specific solution is as follows: Firstly, this application provides a video quality assessment method based on gated residual injection for SDR to HDR conversion, including: The source SDR video and the mapped HDR video are obtained along with preset peak brightness parameters. The frame-level main features corresponding to the source SDR video and the HDR video are extracted using a preset deep master network. Then, the source SDR video and the HDR video are relatively aligned based on the preset peak brightness parameters to obtain the SDR relative brightness and the HDR relative brightness. Using preset dark area paired statistical branches, preset paired chroma statistical branches, and preset local mapping residual structure branches, and based on the SDR relative brightness and the HDR relative brightness, dark area auxiliary features, chroma auxiliary features, and local residual auxiliary features are constructed respectively. Based on the preset latent feature dimension, the frame-level main feature is mapped to obtain the basic latent variable. Based on the dark area auxiliary feature, the chroma auxiliary feature and the local residual auxiliary feature, the auxiliary feature to be processed is generated. The auxiliary feature to be processed is mapped to the preset latent feature dimension using the projection linear layer to obtain the mapped feature. Based on the frame-level main features, a branch gating value is generated, and the injection intensity of the mapped features is controlled by the branch gating value to obtain the controlled auxiliary features. Then, based on the controlled auxiliary features and the basic latent variables, a fusion feature is generated to generate a frame-level quality score using a preset quality head and the fusion feature. The frame-level quality scores are aggregated in the temporal domain to obtain the video-level quality assessment results.
[0007] Optionally, the step of obtaining the source SDR video and the mapped HDR video along with preset peak brightness parameters, extracting frame-level main features corresponding to the source SDR video and the HDR video using a preset deep master network, and then performing relative representation alignment on the source SDR video and the HDR video based on the preset peak brightness parameters to obtain SDR relative brightness and HDR relative brightness includes: The source SDR video and the mapped HDR video are acquired, and a preset peak brightness parameter corresponding to the HDR video is determined; the preset peak brightness parameter includes the display peak brightness parameter and the content peak brightness parameter corresponding to the HDR video. The source SDR video and the HDR video are decoded, normalized, and normalized to obtain normalized SDR video and normalized HDR video. The frame-level main features corresponding to the normalized SDR video and the normalized HDR video are extracted using a preset deep master network. The RGB values of the source SDR video are constrained to obtain a constrained SDR video. The constrained SDR video is then approximately linearized according to a preset gamma exponent to obtain a linearized result. The RGB values of the linearization result are converted to a color space to obtain a space conversion result. The space conversion result is then weighted and summed using a preset brightness coefficient to obtain the SDR relative brightness. The HDR video is converted using the PQ electro-optic transfer function to obtain absolute linear brightness. The absolute HDR brightness is obtained by weighted summation based on the preset brightness coefficient and the absolute linear brightness. Then, the absolute HDR brightness is normalized using the preset peak brightness parameter to obtain the relative HDR brightness.
[0008] Optionally, a pairwise statistical branch of preset dark areas is used, and a secondary feature of the dark area is constructed based on the SDR relative brightness and the HDR relative brightness, including: Several region masks are generated based on the relative brightness of the SDR using a pairwise statistical branch of preset dark areas; the relative brightness threshold region is a pixel region whose relative brightness is lower than a preset relative brightness threshold; the region mask includes a relative brightness threshold region and a half-open brightness region; the half-open brightness region is a pixel region whose relative brightness is between a preset lower brightness threshold and a preset upper brightness threshold. Based on the SDR relative brightness and the HDR relative brightness, the corresponding spatial gradient magnitudes are determined respectively, and an SDR gradient map and an HDR gradient map are generated based on each of the spatial gradient magnitudes. Based on the region mask, region statistics are performed on the SDR relative brightness, the HDR relative brightness, the SDR gradient map, and the HDR gradient map to obtain dark area statistics; wherein, the dark area statistics include region area, HDR brightness mean, HDR brightness quantile, brightness boost mean, brightness boost quantile, gain mean, HDR gradient mean, SDR gradient mean, gradient ratio, gradient loss mean, detail collapse ratio, HDR gradient too low ratio, and brightness boost ratio; By splicing the statistics of each dark area in a preset order, the original statistical features of the dark area are obtained. Then, the original statistical features of the dark area are subjected to layer normalization and linear projection to obtain auxiliary features of the dark area.
[0009] Optionally, a chromaticity auxiliary feature is constructed using a preset pairwise chromaticity statistical branch and based on the SDR relative brightness and the HDR relative brightness, including: The relative RGB representations corresponding to the source SDR video and the HDR video are determined by using preset pairwise chromaticity statistical branches, and a first target descriptor and a second target descriptor corresponding to the source SDR video and the HDR video are determined based on each relative RGB representation; wherein, the first target descriptor and the second target descriptor both include chromaticity descriptor, hue descriptor and saturation descriptor; Chromaticity difference statistics are determined based on the first target descriptor corresponding to the source SDR video and the second target descriptor corresponding to the HDR video; the chromaticity difference statistics include absolute hue difference, chromaticity gain, saturation difference, and chromaticity difference modulus. Based on the second target descriptor corresponding to the HDR video, the HDR chroma and HDR saturation corresponding to the HDR video are determined, and the HDR chroma, the HDR saturation and the chroma difference statistics are statistically summarized to obtain the chroma summary statistics. Then, chroma auxiliary features are generated based on the chroma summary statistics. The chroma summary statistics include the full-image distribution statistics and the regional statistics.
[0010] Optionally, a local residual auxiliary feature is constructed using a preset local mapping residual structure branch and based on the SDR relative brightness and the HDR relative brightness, including: The mapping prediction value is obtained by using a preset local mapping residual structure branch and constructing a basis function vector based on the SDR relative brightness. The mapping relationship between the SDR relative brightness and the HDR relative brightness is fitted by ridge regression using the basis function vector. A mapping residual is generated based on the difference between the HDR relative brightness and the mapping prediction value. Then, statistical processing is performed on the mapping residual, the SDR gradient map, and the HDR gradient map to obtain local mapping residual statistics. Based on the local mapping residual statistics, corresponding local residual auxiliary features are generated. The local mapping residual statistics include the absolute residual distribution statistics of the whole image, the residual distribution statistics after spatial pooling, the gradient ratio distribution statistics between the SDR gradient map and the HDR gradient map, the average absolute residual of the high gradient region that meets the preset high gradient condition, the average absolute residual of the low gradient region that meets the preset low gradient condition, the residual gradient statistics, and the cross-side gradient difference statistics.
[0011] Optionally, the step of generating auxiliary features to be processed based on the dark area auxiliary features, the chroma auxiliary features, and the local residual auxiliary features, and mapping the auxiliary features to be processed using a projection linear layer and the preset latent feature dimension to obtain the mapped features, includes: Using a preset extreme brightness statistical branch, and constructing a brightness map based on the HDR video, then using a preset brightness gating response to enhance the bright areas in the brightness map that meet the preset high brightness conditions and the low brightness areas that meet the preset low brightness conditions, an enhanced sensitized brightness map is obtained. Under preset full resolution and preset downsampling resolution conditions, the brightness statistical features of the sensitized brightness map are extracted to obtain the brightness statistical features, and extreme brightness auxiliary features are determined based on the brightness statistical features. Based on the dark area auxiliary feature, the chromaticity auxiliary feature, the local residual auxiliary feature and the extreme brightness auxiliary feature, a auxiliary feature to be processed is generated, and the auxiliary feature to be processed is mapped using the projection linear layer and the preset latent feature dimension to obtain the mapped feature.
[0012] Optionally, the step of generating a branch gating value based on the frame-level main feature, and using the branch gating value to control the injection intensity of the mapped feature to obtain a controlled auxiliary feature, and then generating a fusion feature based on the controlled auxiliary feature and the basic latent variable, so as to generate a frame-level quality score using a preset quality head and the fusion feature, includes: A branch-gated linear layer is used to generate branch-gated values corresponding to each of the auxiliary features to be processed based on the frame-level main features. Then, each of the branch-gated values and the corresponding mapped features are multiplied element-wise to obtain the controlled auxiliary features. Each of the control-related auxiliary features is accumulated into the basic latent variables in a residual manner to obtain fused features. The fused features are then subjected to nonlinear processing to obtain nonlinear processed features. Finally, the nonlinear processed features are evaluated using a preset quality head to obtain frame-level quality scores.
[0013] Secondly, this application provides a video quality assessment device based on gated residual injection for SDR to HDR conversion, comprising: The relative brightness generation module is used to obtain the source SDR video and the mapped HDR video with preset peak brightness parameters, and to extract the frame-level main features corresponding to the source SDR video and the HDR video using a preset deep master network. Then, based on the preset peak brightness parameters, the source SDR video and the HDR video are relatively aligned to obtain the SDR relative brightness and the HDR relative brightness. The auxiliary feature determination module is used to construct auxiliary features of dark areas, auxiliary features of chroma and auxiliary features of local residuals based on the SDR relative brightness and the HDR relative brightness, respectively, by utilizing preset dark area paired statistical branches, preset paired chroma statistical branches and preset local mapping residual structure branches. The mapped feature generation module is used to map the frame-level main features based on a preset latent feature dimension to obtain basic latent variables, and to generate auxiliary features to be processed based on the dark area auxiliary features, the chroma auxiliary features and the local residual auxiliary features. The auxiliary features to be processed are then mapped using a projection linear layer and the preset latent feature dimension to obtain the mapped features. A frame-level quality score generation module is used to generate a branch gate value based on the frame-level main feature, and use the branch gate value to control the injection intensity of the mapped feature to obtain a controlled auxiliary feature. Then, based on the controlled auxiliary feature and the basic latent variable, a fusion feature is generated to generate a frame-level quality score using a preset quality head and the fusion feature. The quality assessment result determination module is used to perform temporal aggregation of the frame-level quality scores to obtain video-level quality assessment results.
[0014] Thirdly, this application provides an electronic device, comprising: Memory, used to store computer programs; A processor is used to execute the computer program to implement the aforementioned video quality assessment method based on gated residual injection for SDR to HDR conversion.
[0015] Fourthly, this application provides a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the aforementioned video quality assessment method based on gated residual injection for SDR to HDR conversion.
[0016] As can be seen from the above, before conducting video quality assessment for SDR to HDR conversion, this application needs to obtain the source SDR video and the mapped HDR video along with preset peak brightness parameters, extract frame-level main features using a preset deep master network, and then perform relative representation alignment of the source SDR video and HDR video based on the preset peak brightness parameters to obtain SDR relative brightness and HDR relative brightness.
[0017] Therefore, this application first constructs auxiliary features for dark areas, chroma, and local residuals using preset paired statistical branches for dark areas, preset paired statistical branches for chroma, and preset local mapping residual structure branches. Then, it maps frame-level principal features based on preset latent feature dimensions to obtain basic latent variables and generates auxiliary features to be processed. These are then mapped using a projective linear layer to obtain the mapped features. Next, it generates branch gating values based on the frame-level principal features to control the injection intensity of the mapped features, obtaining controlled auxiliary features. These are then combined with the basic latent variables to generate fused features, and a frame-level quality score is generated using a preset quality head. Finally, it performs temporal aggregation on each frame-level quality score to obtain the video-level quality assessment result. This improves the efficiency of video quality assessment in the process of SDR to HDR video quality evaluation. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0019] Figure 1 This application discloses a video quality assessment method based on gated residual injection for SDR to HDR conversion. Figure 2 This application discloses a specific flowchart of peak brightness alignment and multi-branch auxiliary feature extraction. Figure 3 This application discloses a specific flowchart of gated residual injection. Figure 4 This application discloses a specific flowchart of model training and quality assessment. Figure 5 This is a schematic diagram of a video quality assessment device based on gated residual injection for SDR to HDR conversion disclosed in this application; Figure 6 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation
[0020] 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.
[0021] In SDR to HDR conversion scenarios, there is usually no undistorted HDR ground truth reference. Improving the accuracy and interpretability of video quality assessment is a pressing issue. To address this, this application provides a gated residual injection-based video quality assessment method for SDR to HDR conversion. This method aligns the relative representations of HDR and SDR using peak brightness parameters, thereby improving the efficiency of video quality assessment.
[0022] See Figure 1 As shown, this invention discloses a video quality assessment method based on gated residual injection for SDR to HDR conversion, comprising: Step S11: Obtain the source SDR video and the mapped HDR video along with preset peak brightness parameters, and use a preset deep master network to extract the frame-level master features corresponding to the source SDR video and the HDR video. Then, based on the preset peak brightness parameters, perform relative representation alignment on the source SDR video and the HDR video to obtain the SDR relative brightness and the HDR relative brightness.
[0023] In this embodiment, the present application includes a model training phase and a quality evaluation phase. The training phase is used to complete supervised optimization of the deep main network, auxiliary feature projection, gating, and quality head; the testing phase loads the trained model and outputs video-level quality scores for paired SDR / HDR videos. The overall process includes: first, inputting the temporally aligned source SDR video and the mapped HDR video, along with the trained model parameters; given peak brightness parameters... Secondly, after HDR / SDR decoding, normalization, and regularization, frame-level main features are extracted using a deep master network. Furthermore, in the original HDR / SDR, based on peak brightness... After completing relative representation alignment, auxiliary features such as dark areas, chroma, local mapping residuals, and extreme brightness are extracted and projected into frame-level vectors for each branch. Then, Mapping to basic implicit variables For each auxiliary branch, gating is calculated and residuals are injected; frame-level scores are obtained through nonlinearity and quality head. Finally, the average of the frame-level scores along the time dimension is taken to obtain the video-level objective quality score.
[0024] It is worth mentioning that when it is necessary to cover a longer video, the embodiments of this application can divide the video into segments of fixed block length and then perform a weighted average based on the number of frames in each segment.
[0025] Specifically, the process involves acquiring the source SDR video and the mapped HDR video along with preset peak brightness parameters. A preset deep master network is then used to extract frame-level main features corresponding to the source SDR and HDR videos. Finally, the source SDR and HDR videos are relative representation aligned based on the preset peak brightness parameters to obtain SDR and HDR relative brightness. This process may include: acquiring the source SDR video and the mapped HDR video, and determining the preset peak brightness parameters corresponding to the HDR video; the preset peak brightness parameters include the display peak brightness parameters and content peak brightness parameters corresponding to the HDR video; decoding, normalizing, and standardizing the source SDR and HDR videos to obtain normalized SDR and HDR videos, and then using the preset deep master network to extract... The frame-level main features corresponding to the normalized SDR video and the normalized HDR video are obtained. The RGB values of the source SDR video are range-constrained to obtain the constrained SDR video. The constrained SDR video is then approximately linearized according to a preset gamma exponent to obtain the linearized result. The RGB values of the linearized result are then converted to a color space to obtain the space conversion result. The space conversion result is then weighted and summed using a preset luminance coefficient to obtain the SDR relative luminance. The HDR video is then converted using the PQ electro-optic transfer function to obtain the absolute linear luminance. The absolute luminance is then weighted and summed based on the preset luminance coefficient and the absolute linear luminance to obtain the HDR absolute luminance. Finally, the HDR absolute luminance is normalized using a preset peak luminance parameter to obtain the HDR relative luminance.
[0026] In this embodiment, the deep master network takes paired SDR / HDR as input and outputs frame-level master features. This serves as the main input for subsequent gated injection. Auxiliary features are always extracted from the original HDR / SDR and are independent of the representation within the main network.
[0027] In one specific implementation, the flowchart for peak brightness alignment and multi-branch auxiliary feature extraction is as follows: Figure 2 As shown, the relative representation steps for peak brightness alignment are as follows: First, input pairs of HDR frames and SDR frames, both of which have the following shapes. numerical normalization Given peak brightness parameters Next, calculate the SDR relative brightness. Clamp the SDR's RGB values to... The relative brightness is obtained by approximating the gamma index according to a predetermined linearization, then undergoing a fixed matrix transformation from BT.709 to BT.2020, and finally weighting and summing the three channels according to the BT.2020 brightness coefficient. Finally, the HDR relative brightness is calculated. The HDR PQ encoded RGB is converted to absolute linear brightness (in nits) using the BT.2100 PQ electro-optical transfer function, and then weighted according to the BT.2020 brightness coefficient to obtain the result. Then divide by the peak brightness parameter The relative brightness is obtained as follows: ; in, HDR relative brightness; The absolute luminance of HDR is obtained by converting the PQ-encoded RGB of HDR into absolute linear luminance (in nits) using the BT.2100PQ electro-optical transfer function, and then weighting it according to the BT.2020 luminance coefficient. To preset peak brightness parameters, This is used to normalize the absolute brightness of HDR to the relative brightness range.
[0028] When reasoning, The peak value of the display or content consistent with the data to be evaluated is taken. The above transformation also yields the relative brightness. , If colorimetric statistics are required later, the relative RGB values from the same transformation process will be used directly, instead of defining a separate alignment method.
[0029] Step S12: Utilize preset dark area paired statistical branches, preset paired chroma statistical branches, and preset local mapping residual structure branches, and construct dark area auxiliary features, chroma auxiliary features, and local residual auxiliary features based on the SDR relative brightness and the HDR relative brightness, respectively.
[0030] In this embodiment, the paired statistical branches of the dark area include region definition and statistics and projection for each region.
[0031] First, when defining the region: Constructed according to preset rules A region mask, including: several relative brightness threshold regions ( Threshold) and several half-open brightness bands.
[0032] Furthermore, when performing statistical analysis and projection for each zone: first, the spatial gradient magnitude is calculated from the relative brightness map: for , The absolute values of the differences between adjacent pixels are taken and the gradient map is synthesized. , .
[0033] For each region mask If the percentage of pixels within the mask is 0, then only the area of that region is output as 0, and all other statistics are set to 0; otherwise, a set of region statistics is calculated for the pixels within the mask (denoted as the dimension of each region as ). The values include area, HDR brightness mean, HDR brightness quantile, boost mean, boost quantile, gain mean, HDR gradient mean, SDR gradient mean, gradient ratio, gradient loss mean, detail collapse ratio, HDR gradient too low ratio, medium-high brightness boost ratio, and higher brightness boost ratio.
[0034] Then, The statistical vectors of each region are concatenated in a fixed order to obtain the original feature dimension: ; in, The dimension of the original statistical features of the dark area; The number of area masks; The dimension of the statistics for each region.
[0035] Then, after layer normalization and linear layer projection to the preset dimension Obtain auxiliary features of the dark area .
[0036] Specifically, utilizing pre-defined pairwise statistical branches for dark areas and constructing auxiliary features for dark areas based on SDR relative brightness and HDR relative brightness can include: generating several region masks using pre-defined pairwise statistical branches for dark areas and based on SDR relative brightness; the relative brightness threshold region is the pixel region with a relative brightness lower than a pre-defined relative brightness threshold; the region mask includes the relative brightness threshold region and the half-open brightness region; the half-open brightness region is the pixel region with a relative brightness between a pre-defined lower brightness threshold and a pre-defined upper brightness threshold; determining the corresponding spatial gradient magnitudes based on SDR relative brightness and HDR relative brightness, and generating SDR gradient maps and HDR gradient maps based on each spatial gradient magnitude. Gradient map; based on the region mask, region statistics are performed on the SDR relative brightness, HDR relative brightness, SDR gradient map, and HDR gradient map to obtain dark area statistics; among which, dark area statistics include region area, HDR brightness mean, HDR brightness quantile, brightness boost mean, brightness boost quantile, gain mean, HDR gradient mean, SDR gradient mean, gradient ratio, gradient loss mean, detail collapse ratio, HDR gradient too low ratio, and brightness boost ratio; the dark area statistics are stitched together in a preset order to obtain the original statistical features of the dark area, and the original statistical features of the dark area are subjected to layer normalization and linear projection processing to obtain the auxiliary features of the dark area.
[0037] Furthermore, the processing flow corresponding to the pairwise chromaticity statistics branch includes: First, obtaining the relative RGB of SDR and HDR using the same peak brightness alignment method as the relative representation alignment: SDR is approximately linearized by gamma and transformed to BT.2020 linear RGB; HDR is converted to linear RGB in nits by PQ electro-optic conversion and then divided by peak brightness. It is worth mentioning that all subsequent color descriptors are calculated on this relative RGB.
[0038] Subsequently, opposing color channels are constructed for each side relative to RGB: ; in, , These are two opposing color channel components; This is the value of the red channel in the relative RGB representation; This is the green channel value relative to the RGB representation; This is the blue channel value relative to the RGB representation; This is a constant factor used to normalize the difference between the red and green channels; This is a constant factor used to normalize the combined differences of the red, green, and blue channels.
[0039] Furthermore, chromaticity taking , take the hue Saturation value: ; in, Saturation; It is the maximum value among the three RGB channels; The minimum value among the three RGB channels; denominator A lower limit is added to prevent the denominator from being zero.
[0040] Secondly, pixel-wise pairwise color difference quantities are constructed using HDR and SDR descriptors, and one-sided quantities for aggregation are retained, including absolute hue difference, chroma gain, saturation difference, opposite color difference modulus, HDR chroma, and HDR saturation.
[0041] Subsequently, a full-map distribution summary was performed on the above six types of quantities. For each type of quantity, a summary statistical set was extracted, including the arithmetic mean, standard deviation, and predetermined proportion. , The quantiles and maximum values at each point are concatenated in a fixed category order to form a global chromaticity statistical vector.
[0042] Then, several region masks are constructed according to relative brightness or chromaticity conditions, including: HDR relative brightness not lower than the first high brightness threshold. The area is no less than the second highest brightness threshold. Areas where the SDR relative brightness is not higher than the dark area threshold Areas not lower than the bright area threshold The region, and the SDR chromaticity not lower than its predetermined high quantile ratio for the entire image. The high chromaticity region.
[0043] Furthermore, the embodiments of this application require recording the area of each mask; and only extracting the mean and predetermined high quantile ratio for four types of paired color difference quantities within the mask. The quantiles and maximum values of each region are statistically analyzed. These regional statistics are then concatenated with the global statistics in mask order and quantity category order to obtain the original feature dimension. Finally, after layer normalization and linear layer projection, the result is transferred to a preset dimension. , obtain chromaticity auxiliary features .
[0044] Specifically, utilizing pre-defined paired chromaticity statistical branches and constructing chromaticity auxiliary features based on SDR and HDR relative brightness can include: determining the relative RGB representations corresponding to the source SDR and HDR videos respectively using the pre-defined paired chromaticity statistical branches, and determining the first and second target descriptors corresponding to the source SDR and HDR videos respectively based on each relative RGB representation; wherein the first and second target descriptors each include chromaticity descriptors, hue descriptors, and saturation descriptors; determining chromaticity difference statistics based on the first target descriptor corresponding to the source SDR video and the second target descriptor corresponding to the HDR video; chromaticity difference statistics include hue absolute difference, chromaticity gain, saturation difference, and chromaticity magnitude; determining the HDR chromaticity and HDR saturation corresponding to the HDR video based on the second target descriptor, and statistically summarizing the HDR chromaticity, HDR saturation, and chromaticity difference statistics to obtain chromaticity summary statistics, and then generating chromaticity auxiliary features based on the chromaticity summary statistics; the chromaticity summary statistics include full-image distribution statistics and regional statistics.
[0045] Furthermore, the embodiments of this application require the use of local mapping residual structure branches for corresponding output processing: First, pairwise relative brightness maps are obtained by aligning peak brightness in the same way as the relative representation alignment. , For each frame, use a basis function vector at the pixel level. Ridge regression was performed on the relative brightness map to obtain the predicted map values. It is worth mentioning that the basis functions include constant terms, first and second power terms, square root terms, and logarithmic terms; the penalty coefficient is denoted as... The intercept term is not penalized, and the predicted value is then clamped to a predetermined interval. Residual: ; in, For mapping residuals; HDR relative brightness; The predicted values are obtained by ridge regression fitting based on the basis function vectors to the mapping relationship between SDR relative brightness and HDR relative brightness. The predicted values are clamped to a predetermined interval. .
[0046] Secondly, in absolute residuals And the original features are constructed on the gradient map derived from the brightness / residual, and then stitched together in a fixed order to obtain... This includes statistics on the distribution of absolute residuals across the entire image, the distribution after spatial pooling, the gradient ratio distribution, the average absolute residual in high / low gradient regions, and the residual gradient and cross-side gradient difference. Finally, the data is normalized and projected onto a preset dimension using a linear layer. Local residual auxiliary features are obtained. .
[0047] Specifically, utilizing a pre-defined local mapping residual structure branch and constructing local residual auxiliary features based on SDR relative brightness and HDR relative brightness can include: constructing a basis function vector based on SDR relative brightness using the pre-defined local mapping residual structure branch, and using the basis function vector to perform ridge regression fitting on the mapping relationship between SDR relative brightness and HDR relative brightness to obtain the mapping prediction value; generating a mapping residual based on the difference between HDR relative brightness and the mapping prediction value, and then performing statistical processing on the mapping residual, SDR gradient map, and HDR gradient map to obtain local mapping residual statistics, and generating corresponding local residual auxiliary features based on the local mapping residual statistics; wherein, the local mapping residual statistics include the absolute residual distribution statistics of the whole image, the residual distribution statistics after spatial pooling, the gradient ratio distribution statistics between SDR gradient map and HDR gradient map, the average absolute residual of the high gradient region satisfying the pre-defined high gradient condition, the average absolute residual of the low gradient region satisfying the pre-defined low gradient condition, the residual gradient statistics, and the cross-side gradient difference statistics.
[0048] Step S13: Map the frame-level main features based on the preset latent feature dimension to obtain basic latent variables, and generate auxiliary features to be processed based on the dark area auxiliary features, the chroma auxiliary features and the local residual auxiliary features. Then, use the projection linear layer and the preset latent feature dimension to map the auxiliary features to be processed to obtain the mapped features.
[0049] In this embodiment, the present application includes an extreme brightness branch that relies solely on HDR to enhance the observability of distortion in low-percentage, high-perceptual-weight extreme regions. The steps include: constructing a brightness map from the original HDR. A normalized brightness representation can be obtained by using a perceptual uniform transformation; high and low thresholds can be used. , With index , Generate a gating response, and then After being superimposed with the weighted gating response and subjected to local nonlinear mapping, the sensitized brightness map is obtained. ; For the original brightness path With sensitization pathway Spatial statistics are extracted at full resolution and half resolution respectively, yielding generalized Gaussian-like statistics and asymmetric generalized Gaussian-like statistics; four-way concatenation is used to obtain the global original dimension. .
[0050] In one specific implementation, this application embodiment selects to scale the brightness map to a grid and divide it into sub-blocks, and extract the same statistics for each sub-block in a predetermined mode to obtain... Then projected onto the preset dimension via a linear layer. Extreme brightness auxiliary features were obtained. .
[0051] Specifically, auxiliary features to be processed are generated based on dark area auxiliary features, chroma auxiliary features, and local residual auxiliary features. These auxiliary features are then mapped using a projection linear layer and a preset latent feature dimension to obtain the mapped features. This process can include: constructing a luminance map based on HDR video using a preset extreme luminance statistical branch; then enhancing the high-brightness regions that meet preset high-brightness conditions and the low-brightness regions that meet preset low-brightness conditions in the luminance map using a preset luminance gating response to obtain an enhanced sensitized luminance map; extracting luminance statistical features from the sensitized luminance map under preset full resolution and preset downsampling resolution conditions to obtain luminance statistical features, and determining extreme luminance auxiliary features based on these luminance statistical features; and generating auxiliary features to be processed based on dark area auxiliary features, chroma auxiliary features, local residual auxiliary features, and extreme luminance auxiliary features, and then mapping these auxiliary features to the preset latent feature dimension using a projection linear layer to obtain the mapped features.
[0052] Step S14: Generate a branch gating value based on the frame-level main feature, and use the branch gating value to control the injection intensity of the mapped feature to obtain the controlled auxiliary feature. Then, generate a fusion feature based on the controlled auxiliary feature and the basic latent variable, so as to generate a frame-level quality score using a preset quality head and the fusion feature.
[0053] In this embodiment, the present application requires multi-branch gated residual injection, and the gated residual injection flowchart is as follows: Figure 3 As shown: Let the principal feature be... Hidden dimension is The set of auxiliary features enabled is: Among them, each projection dimension Taken from Equal to the dimension corresponding to the enabled branch.
[0054] Subsequently, the basic implicit variables need to be determined in this application embodiment: ; in, As a basic implicit variable; It is a frame-level main feature; This is a layer normalization operation; It is a linear mapping layer; for 3D real space; The dimension of the preset latent features.
[0055] Furthermore, for each enabled branch : ; in, For the first Branch gating values for each branch; Use the Sigmoid activation function; For the first The gated linear layers corresponding to each branch are used to map the main feature dimension to... ; It is a frame-level main feature; For temperature coefficient, It is used to control the smoothness of the gating response.
[0056] ; in, For the first The mapped features corresponding to each branch; For the first The projected linear layer corresponding to the nth branch is used to... Each branch auxiliary feature dimension Mapped to ; For the first Each branch corresponds to an auxiliary feature.
[0057] ; in, These are basic latent variables, which are updated to fused features after injection; For the first Branch gating values for each branch; For the first The mapped features corresponding to each branch; This is an element-wise multiplication operator; the formula indicates that after multiplying each branch gate value with the mapped feature element-wise, the residual is accumulated into the basic latent variable.
[0058] Specifically, branch gating values are generated based on frame-level master features, and the injection intensity of mapped features is controlled using these values to obtain controlled auxiliary features. Then, fusion features are generated based on the controlled auxiliary features and basic latent variables. A frame-level quality score is generated using a preset quality head and the fusion features. This process can include: using a branch-gated linear layer and generating branch gating values corresponding to each auxiliary feature to be processed based on the frame-level master features; multiplying each branch gating value and its corresponding mapped feature element-wise to obtain controlled auxiliary features; accumulating each controlled auxiliary feature as a residual into the basic latent variables to obtain fusion features; performing nonlinear processing on the fusion features to obtain nonlinear processed features; and then using a preset quality head to evaluate the quality of the nonlinear processed features to obtain a frame-level quality score.
[0059] Step S15: Perform temporal aggregation on the frame-level quality scores to obtain the video-level quality assessment results.
[0060] In this embodiment, the present application embodiment needs to perform Then, the frame-level score is obtained through the linear quality head. For the same video The average value of each sampled frame is used to obtain the video-level score: ; in, This is a video-level quality assessment result; The number of frames sampled from the same video; The sampling frame number; For the first The frame-level quality score corresponding to each sampled frame; Indicates the same video The frame-level quality scores of each sampled frame are taken as the arithmetic mean.
[0061] It is worth mentioning that the base mapping uses Layer Norm plus Linear, with no additional activation; the projection... It is a normal linear layer with no additional normalization layers; gated. The weights are initialized to all zeros, and the biases are initialized to negative constants. This ensures that the gating is nearly closed during the initial training phase, and then useful branches are gradually opened through optimization; the branch enumeration order is fixed according to the implementation. Furthermore, during the training phase, embodiments of this application can randomly discard individual residuals, and the discard probability is denoted as... .
[0062] Furthermore, during the model training and quality evaluation phases, the model training and quality evaluation flowchart is as follows: Figure 4As shown: First, this embodiment of the application requires obtaining paired SDR / HDR training samples with Mean Opinion Score (MOS) and providing peak brightness. Secondly, determine the principal features of the forward computation. and auxiliary features The predicted score is obtained through gated residual injection and mass head. Furthermore, according to The quality supervision loss is calculated along with the subjective score, and the trainable parameters are updated via backpropagation. Furthermore, during training, the updates can be implemented not only end-to-end with the deep main network and auxiliary feature projections, gating, and quality head, but also by freezing some parameters of the deep main network and updating only the auxiliary feature projections, gating, and quality head.
[0063] Furthermore, this embodiment of the application requires selecting a model on the validation set according to preset evaluation metrics. During testing, this embodiment of the application first requires inputting the paired SDR / HDR videos to be evaluated and peak brightness. With the trained model, the main feature extraction, manual auxiliary feature extraction, gated injection and temporal aggregation are completed according to the above process, and the video-level objective quality score is output.
[0064] In one specific implementation, the specific embodiment parameters corresponding to the embodiments of this application are as follows. However, the following parameters are used to illustrate one possible implementation method and do not constitute a unique limitation on the branch set, projection dimension, threshold or hidden dimension.
[0065] When performing peak brightness and alignment or SDR approximate linearization index When processing data in the dark zone branch, Each district Therefore Projection dimension HDR brightness resolution , ; Raise the percentile ; Detail collapse threshold , Raise the threshold , Subsequently, during data processing in the chroma branch, the mean, standard deviation, and other parameters of each of the six quantities were calculated globally. , Quantiles and maximum values, totaling 30 dimensions; regional thresholds. , , , High chromaticity resolution Record the area of each zone, and take the average of the paired color differences for the first four categories. Quantiles and maximum values, 65 dimensions in 5 zones; Total Projection dimension Chromaticity gain protection , .
[0066] Furthermore, when processing data in local residual branches, ; ; ; Distribution quantile , Therefore High / low gradient quantile , High quantile of residual gradient Gradient of denominator lower bound ; Projection dimension When processing data in the extreme brightness branch, this embodiment of the application uses PU21; , ; ; ; Therefore ; , , The pattern involves taking the original image and adding a sensitized image. ,but Projection dimension .
[0067] In this embodiment, during the gated injection process, hidden dimensions ;temperature Initial value of gated bias ; probability of auxiliary branch being discarded Example of enabling branching and enumeration order: Furthermore, an example of input space dimensions is as follows: Frame count Above frame-level scores Take the arithmetic mean Furthermore, the deep main network can use convolutional backbones such as EfficientNetV2-S to implement the main features. .
[0068] Therefore, this application first constructs auxiliary features for dark areas, chroma, and local residuals using preset paired statistical branches for dark areas, preset paired statistical branches for chroma, and preset local mapping residual structure branches. Then, it maps frame-level principal features based on preset latent feature dimensions to obtain basic latent variables and generates auxiliary features to be processed. These are then mapped using a projective linear layer to obtain the mapped features. Next, it generates branch gating values based on the frame-level principal features to control the injection intensity of the mapped features, obtaining controlled auxiliary features. These are then combined with the basic latent variables to generate fused features, and a frame-level quality score is generated using a preset quality head. Finally, it performs temporal aggregation on each frame-level quality score to obtain the video-level quality assessment result. This improves the efficiency of video quality assessment in the process of SDR to HDR video quality evaluation.
[0069] Accordingly, see Figure 5 As shown, this application also provides a video quality assessment device based on gated residual injection for SDR to HDR conversion, comprising: The relative brightness generation module 11 is used to obtain the source SDR video and the mapped HDR video and the preset peak brightness parameters, and to extract the frame-level main features corresponding to the source SDR video and the HDR video using a preset deep master network. Then, based on the preset peak brightness parameters, the source SDR video and the HDR video are relatively aligned to obtain the SDR relative brightness and the HDR relative brightness. The auxiliary feature determination module 12 is used to construct auxiliary features of dark areas, auxiliary features of chroma and auxiliary features of local residuals based on the SDR relative brightness and the HDR relative brightness, respectively, by using preset dark area paired statistical branches, preset paired chroma statistical branches and preset local mapping residual structure branches. The mapped feature generation module 13 is used to map the frame-level main features based on the preset latent feature dimension to obtain basic latent variables, and generate auxiliary features to be processed based on the dark area auxiliary features, the chroma auxiliary features and the local residual auxiliary features, and map the auxiliary features to be processed to the preset latent feature dimension using the projection linear layer to obtain the mapped features. The frame-level quality score generation module 14 is used to generate a branch gate value based on the frame-level main feature, and use the branch gate value to control the injection intensity of the mapped feature to obtain the controlled auxiliary feature. Then, based on the controlled auxiliary feature and the basic latent variable, a fusion feature is generated to generate a frame-level quality score using a preset quality head and the fusion feature. The quality assessment result determination module 15 is used to perform temporal aggregation of the frame-level quality scores to obtain video-level quality assessment results.
[0070] In some specific embodiments, the relative brightness generation module 11 may specifically include: A peak brightness parameter determination unit is used to acquire the source SDR video and the mapped HDR video, and determine the preset peak brightness parameter corresponding to the HDR video; the preset peak brightness parameter includes the display peak brightness parameter and the content peak brightness parameter corresponding to the HDR video; The frame-level main feature extraction unit is used to decode, normalize and standardize the source SDR video and the HDR video to obtain the normalized SDR video and the normalized HDR video, and to extract the frame-level main features corresponding to the normalized SDR video and the normalized HDR video using a preset deep master network. A linearization processing unit is used to constrain the range of the RGB values of the source SDR video to obtain a constrained SDR video, and to perform approximate linearization processing on the constrained SDR video according to a preset gamma exponent to obtain a linearization processing result. The SDR relative brightness determination unit is used to perform color space conversion on the RGB values of the linearization processing result to obtain the space conversion result, and to perform weighted summation on the space conversion result using a preset brightness coefficient to obtain the SDR relative brightness. The HDR relative brightness determination unit is used to convert the HDR video using the PQ electro-optic transfer function to obtain absolute linear brightness, and to perform a weighted summation based on the preset brightness coefficient and the absolute linear brightness to obtain HDR absolute brightness. Then, the HDR absolute brightness is normalized using the preset peak brightness parameter to obtain HDR relative brightness.
[0071] In some specific embodiments, the auxiliary feature determination module 12 may specifically include: A region mask construction unit is used to generate several region masks based on the relative brightness of the SDR by using a preset dark area pairwise statistical branch; the relative brightness threshold region is a pixel region whose relative brightness is lower than a preset relative brightness threshold; the region mask includes a relative brightness threshold region and a half-open brightness region; the half-open brightness region is a pixel region whose relative brightness is between a preset lower brightness threshold and a preset upper brightness threshold. The gradient map generation unit is used to determine the corresponding spatial gradient magnitudes based on the SDR relative brightness and the HDR relative brightness, and to generate SDR gradient maps and HDR gradient maps based on each of the spatial gradient magnitudes. The dark area statistics generation unit is used to perform regional statistics on the SDR relative brightness, the HDR relative brightness, the SDR gradient map and the HDR gradient map based on the region mask to obtain dark area statistics; The dark area auxiliary feature generation unit is used to splice the dark area statistics in a preset order to obtain the original statistical features of the dark area, and to perform layer normalization and linear projection processing on the original statistical features of the dark area to obtain the dark area auxiliary features.
[0072] In some specific embodiments, the auxiliary feature determination module 12 may specifically include: The target descriptor construction unit is used to determine the relative RGB representations corresponding to the source SDR video and the HDR video respectively using a preset pairwise chromaticity statistical branch, and to determine the first target descriptor and the second target descriptor corresponding to the source SDR video and the HDR video respectively based on each of the relative RGB representations; wherein, the first target descriptor and the second target descriptor both include chromaticity descriptor, hue descriptor and saturation descriptor; A chromaticity difference statistics generation unit is used to determine chromaticity difference statistics based on a first target descriptor corresponding to the source SDR video and a second target descriptor corresponding to the HDR video; the chromaticity difference statistics include absolute hue difference, chromaticity gain, saturation difference, and chromaticity difference modulus. The chroma auxiliary feature generation unit is used to determine the HDR chroma and HDR saturation corresponding to the HDR video based on the second target descriptor corresponding to the HDR video, and to statistically summarize the HDR chroma, the HDR saturation and the chroma difference statistics to obtain the chroma summary statistics, and then generate chroma auxiliary features based on the chroma summary statistics.
[0073] In some specific embodiments, the auxiliary feature determination module 12 may specifically include: The mapping prediction value generation unit is used to construct a basis function vector based on the SDR relative brightness using a preset local mapping residual structure branch, and to perform ridge regression fitting on the mapping relationship between the SDR relative brightness and the HDR relative brightness using the basis function vector to obtain the mapping prediction value. The local residual auxiliary feature construction unit is used to generate a mapping residual based on the difference between the HDR relative brightness and the mapping prediction value, and then perform statistical processing on the mapping residual, the SDR gradient map and the HDR gradient map to obtain a local mapping residual statistic, and generate a corresponding local residual auxiliary feature based on the local mapping residual statistic.
[0074] In some specific embodiments, the mapped feature generation module 13 may specifically include: The sensitized brightness map generation unit is used to construct a brightness map based on the HDR video using a preset extreme brightness statistical branch, and then use a preset brightness gating response to enhance the bright areas in the brightness map that meet the preset high brightness conditions and the low brightness areas that meet the preset low brightness conditions, so as to obtain the enhanced sensitized brightness map. An extreme brightness auxiliary feature determination unit is used to extract brightness statistical features from the sensitized brightness map under preset full resolution conditions and preset downsampling resolution conditions, obtain brightness statistical features, and determine extreme brightness auxiliary features based on the brightness statistical features. The mapped feature generation unit is used to generate auxiliary features to be processed based on the dark area auxiliary features, the chromaticity auxiliary features, the local residual auxiliary features and the extreme brightness auxiliary features, and to map the auxiliary features to be processed using the projection linear layer and the preset latent feature dimension to obtain the mapped features.
[0075] In some specific embodiments, the frame-level quality score generation module 14 may specifically include: A branch gate value generation unit is used to generate branch gate values corresponding to each of the auxiliary features to be processed based on the frame-level main features using a branch gate linear layer, and then multiply each of the branch gate values and the corresponding mapped features element by element to obtain the controlled auxiliary features. The frame-level quality score generation unit is used to accumulate each of the control post-auxiliary features into the basic latent variables in a residual manner to obtain fused features, and to perform nonlinear processing on the fused features to obtain nonlinear processed features. Then, the nonlinear processed features are evaluated for quality using a preset quality head to obtain a frame-level quality score.
[0076] Furthermore, embodiments of this application also disclose an electronic device, Figure 6 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the SDR-to-HDR video quality assessment method based on gated residual injection disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be a computer.
[0077] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0078] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0079] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the SDR-to-HDR-based gated residual injection video quality assessment method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include computer programs capable of performing other specific tasks.
[0080] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned disclosed video quality assessment method based on gated residual injection for SDR to HDR conversion. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.
[0081] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0082] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0083] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0084] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0085] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A video quality assessment method based on gated residual injection for SDR to HDR conversion, characterized in that, include: The source SDR video and the mapped HDR video are obtained along with preset peak brightness parameters. The frame-level main features corresponding to the source SDR video and the HDR video are extracted using a preset deep master network. Then, the source SDR video and the HDR video are relatively aligned based on the preset peak brightness parameters to obtain the SDR relative brightness and the HDR relative brightness. Using preset dark area paired statistical branches, preset paired chroma statistical branches, and preset local mapping residual structure branches, and based on the SDR relative brightness and the HDR relative brightness, dark area auxiliary features, chroma auxiliary features, and local residual auxiliary features are constructed respectively. Based on the preset latent feature dimension, the frame-level main feature is mapped to obtain the basic latent variable. Based on the dark area auxiliary feature, the chroma auxiliary feature and the local residual auxiliary feature, the auxiliary feature to be processed is generated. The auxiliary feature to be processed is mapped to the preset latent feature dimension using the projection linear layer to obtain the mapped feature. Based on the frame-level main features, a branch gating value is generated, and the injection intensity of the mapped features is controlled by the branch gating value to obtain the controlled auxiliary features. Then, based on the controlled auxiliary features and the basic latent variables, a fusion feature is generated to generate a frame-level quality score using a preset quality head and the fusion feature. The frame-level quality scores are aggregated in the temporal domain to obtain the video-level quality assessment results.
2. The video quality assessment method based on gated residual injection for SDR to HDR conversion according to claim 1, characterized in that, The process involves acquiring the source SDR video and the mapped HDR video along with preset peak brightness parameters, extracting frame-level main features corresponding to the source SDR video and the HDR video using a preset deep master network, and then performing relative representation alignment on the source SDR video and the HDR video based on the preset peak brightness parameters to obtain SDR relative brightness and HDR relative brightness, including: The source SDR video and the mapped HDR video are acquired, and a preset peak brightness parameter corresponding to the HDR video is determined; the preset peak brightness parameter includes the display peak brightness parameter and the content peak brightness parameter corresponding to the HDR video. The source SDR video and the HDR video are decoded, normalized, and normalized to obtain normalized SDR video and normalized HDR video. The frame-level main features corresponding to the normalized SDR video and the normalized HDR video are extracted using a preset deep master network. The RGB values of the source SDR video are constrained to obtain a constrained SDR video. The constrained SDR video is then approximately linearized according to a preset gamma exponent to obtain a linearized result. The RGB values of the linearization result are converted to a color space to obtain a space conversion result. The space conversion result is then weighted and summed using a preset brightness coefficient to obtain the SDR relative brightness. The HDR video is converted using the PQ electro-optic transfer function to obtain absolute linear brightness. The absolute HDR brightness is obtained by weighted summation based on the preset brightness coefficient and the absolute linear brightness. Then, the absolute HDR brightness is normalized using the preset peak brightness parameter to obtain the relative HDR brightness.
3. The video quality assessment method based on gated residual injection for SDR to HDR conversion according to claim 1, characterized in that, Using pre-defined pairwise statistical branches for dark areas, and constructing auxiliary features for dark areas based on the SDR relative brightness and the HDR relative brightness, including: Several region masks are generated based on the relative brightness of the SDR using a pairwise statistical branch of preset dark areas; the region masks include a relative brightness threshold region and a half-open brightness region; the relative brightness threshold region is a pixel region whose relative brightness is lower than a preset relative brightness threshold; the half-open brightness region is a pixel region whose relative brightness is between a preset lower brightness threshold and a preset upper brightness threshold. Based on the SDR relative brightness and the HDR relative brightness, the corresponding spatial gradient magnitudes are determined respectively, and an SDR gradient map and an HDR gradient map are generated based on each of the spatial gradient magnitudes. Based on the region mask, region statistics are performed on the SDR relative brightness, the HDR relative brightness, the SDR gradient map, and the HDR gradient map to obtain dark area statistics; wherein, the dark area statistics include region area, HDR brightness mean, HDR brightness quantile, brightness boost mean, brightness boost quantile, gain mean, HDR gradient mean, SDR gradient mean, gradient ratio, gradient loss mean, detail collapse ratio, HDR gradient too low ratio, and brightness boost ratio; By splicing the statistics of each dark area in a preset order, the original statistical features of the dark area are obtained. Then, the original statistical features of the dark area are subjected to layer normalization and linear projection to obtain auxiliary features of the dark area.
4. The video quality assessment method based on gated residual injection for SDR to HDR conversion according to claim 1, characterized in that, Using preset paired chromaticity statistical branches, and constructing chromaticity auxiliary features based on the SDR relative brightness and the HDR relative brightness, including: The relative RGB representations corresponding to the source SDR video and the HDR video are determined by using preset pairwise chromaticity statistical branches, and a first target descriptor and a second target descriptor corresponding to the source SDR video and the HDR video are determined based on each relative RGB representation; wherein, the first target descriptor and the second target descriptor both include chromaticity descriptor, hue descriptor and saturation descriptor; Chromaticity difference statistics are determined based on the first target descriptor corresponding to the source SDR video and the second target descriptor corresponding to the HDR video; the chromaticity difference statistics include absolute hue difference, chromaticity gain, saturation difference, and chromaticity difference modulus. Based on the second target descriptor corresponding to the HDR video, the HDR chroma and HDR saturation corresponding to the HDR video are determined, and the HDR chroma, the HDR saturation and the chroma difference statistics are statistically summarized to obtain the chroma summary statistics. Then, chroma auxiliary features are generated based on the chroma summary statistics. The chroma summary statistics include the full-image distribution statistics and the regional statistics.
5. The video quality assessment method based on gated residual injection for SDR to HDR conversion according to claim 3, characterized in that, Utilizing a preset local mapping residual structure branch, and constructing local residual auxiliary features based on the SDR relative brightness and the HDR relative brightness, including: The mapping prediction value is obtained by using a preset local mapping residual structure branch and constructing a basis function vector based on the SDR relative brightness. The mapping relationship between the SDR relative brightness and the HDR relative brightness is fitted by ridge regression using the basis function vector. A mapping residual is generated based on the difference between the HDR relative brightness and the mapping prediction value. Then, statistical processing is performed on the mapping residual, the SDR gradient map, and the HDR gradient map to obtain local mapping residual statistics. Based on the local mapping residual statistics, corresponding local residual auxiliary features are generated. The local mapping residual statistics include the absolute residual distribution statistics of the whole image, the residual distribution statistics after spatial pooling, the gradient ratio distribution statistics between the SDR gradient map and the HDR gradient map, the average absolute residual of the high gradient region that meets the preset high gradient condition, the average absolute residual of the low gradient region that meets the preset low gradient condition, the residual gradient statistics, and the cross-side gradient difference statistics.
6. The video quality assessment method based on gated residual injection for SDR to HDR conversion according to claim 1, characterized in that, The process involves generating auxiliary features to be processed based on the dark area auxiliary features, the chroma auxiliary features, and the local residual auxiliary features, and mapping the auxiliary features to be processed using a projected linear layer and the preset latent feature dimension to obtain the mapped features, including: Using a preset extreme brightness statistical branch, and constructing a brightness map based on the HDR video, then using a preset brightness gating response to enhance the bright areas in the brightness map that meet the preset high brightness conditions and the low brightness areas that meet the preset low brightness conditions, an enhanced sensitized brightness map is obtained. Under preset full resolution and preset downsampling resolution conditions, the brightness statistical features of the sensitized brightness map are extracted to obtain the brightness statistical features, and extreme brightness auxiliary features are determined based on the brightness statistical features. Based on the dark area auxiliary feature, the chromaticity auxiliary feature, the local residual auxiliary feature and the extreme brightness auxiliary feature, a auxiliary feature to be processed is generated, and the auxiliary feature to be processed is mapped using the projection linear layer and the preset latent feature dimension to obtain the mapped feature.
7. The video quality assessment method based on gated residual injection for SDR to HDR conversion according to any one of claims 1 to 6, characterized in that, The process of generating a branch gating value based on the frame-level main feature, controlling the injection intensity of the mapped feature using the branch gating value to obtain a controlled auxiliary feature, and then generating a fusion feature based on the controlled auxiliary feature and the basic latent variable to generate a frame-level quality score using a preset quality head and the fusion feature includes: A branch-gated linear layer is used to generate branch-gated values corresponding to each of the auxiliary features to be processed based on the frame-level main features. Then, each of the branch-gated values and the corresponding mapped features are multiplied element-wise to obtain the controlled auxiliary features. Each of the control-related auxiliary features is accumulated into the basic latent variables in a residual manner to obtain fused features. The fused features are then subjected to nonlinear processing to obtain nonlinear processed features. Finally, the nonlinear processed features are evaluated using a preset quality head to obtain frame-level quality scores.
8. A video quality assessment device based on gated residual injection for SDR to HDR conversion, characterized in that, include: The relative brightness generation module is used to obtain the source SDR video and the mapped HDR video with preset peak brightness parameters, and to extract the frame-level main features corresponding to the source SDR video and the HDR video using a preset deep master network. Then, based on the preset peak brightness parameters, the source SDR video and the HDR video are relatively aligned to obtain the SDR relative brightness and the HDR relative brightness. The auxiliary feature determination module is used to construct auxiliary features of dark areas, auxiliary features of chroma and auxiliary features of local residuals based on the SDR relative brightness and the HDR relative brightness, respectively, by utilizing preset dark area paired statistical branches, preset paired chroma statistical branches and preset local mapping residual structure branches. The mapped feature generation module is used to map the frame-level main features based on a preset latent feature dimension to obtain basic latent variables, and to generate auxiliary features to be processed based on the dark area auxiliary features, the chroma auxiliary features and the local residual auxiliary features. The auxiliary features to be processed are then mapped using a projection linear layer and the preset latent feature dimension to obtain the mapped features. A frame-level quality score generation module is used to generate a branch gate value based on the frame-level main feature, and use the branch gate value to control the injection intensity of the mapped feature to obtain a controlled auxiliary feature. Then, based on the controlled auxiliary feature and the basic latent variable, a fusion feature is generated to generate a frame-level quality score using a preset quality head and the fusion feature. The quality assessment result determination module is used to perform temporal aggregation of the frame-level quality scores to obtain video-level quality assessment results.
9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the video quality assessment method based on gated residual injection for SDR to HDR conversion as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, Used to store a computer program, wherein the computer program, when executed by a processor, implements the video quality assessment method based on gated residual injection for SDR to HDR conversion as described in any one of claims 1 to 7.
