METHODS FOR PREDICTING VIDEO COLOR COMPONENTS AND BIT CURRENT TRANSMISSION METHODS
Patent Information
- Application Number
- VN1202607397
- Authority / Receiving Office
- VN · VN
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2018-08-09
- Publication Date
- 2026-10-15
AI Technical Summary
Existing video coding technology fails to fully consider the correlation between image components when constructing a linear model, resulting in reduced prediction accuracy when predicting brightness values and chroma values or between chroma values, and chroma prediction values are inconsistent with There is a large deviation from the true value.
By obtaining the adjacent reference values and reconstruction values of the current coding block, calculating the correlation coefficient, inputting it into the preset weight calculation model to obtain the weight coefficient, and then determining the scale factor, building a linear model that better fits the desired model for video image components prediction.
The prediction accuracy of the video image component prediction value is improved, making it closer to the real video image component value, and overcoming the problem of deviation between the linear model and the expected model.
Smart Images

Figure VN1202607397_0
Abstract
Description
Methods and apparatus for predicting video image components, and computer storage media. Technical Field
[0001] This application relates to intra-frame prediction technology in the field of video coding, and more particularly to a method and apparatus for predicting video image components, as well as a computer storage medium. Background Technology
[0002] In the next-generation video coding standard H.266 or Versatile Video Coding (VVC), the prediction of luminance values to chrominance values or between chrominance values can be achieved through the Cross-component Linear Model Prediction (CCLM) method. Specifically, a linear regression method can be used to construct a linear model of the adjacent luminance and chrominance parameters corresponding to the current coding block, so that the chrominance prediction value can be calculated based on the linear model and the reconstructed luminance value.
[0003] However, current linear models do not comprehensively consider all factors. For example, when predicting chrominance values based on luminance values, they mostly consider adjacent reference luminance and chrominance values; similarly, when predicting between chrominance values, they mostly consider adjacent reference chrominance components. Therefore, if there is a significant deviation between adjacent reference luminance values and the parameters corresponding to the current coding block, or if there is a significant deviation between adjacent reference chrominance components and the parameters corresponding to the current coding block, the calculated linear model will deviate from the expected model. This reduces the prediction accuracy of the chrominance prediction values for the current coding block, resulting in a large discrepancy between the predicted and actual chrominance values.
[0004] Summary of the Invention
[0005] To address the aforementioned technical problems, this application aims to provide a method and apparatus for predicting video image components, as well as a computer storage medium, which can effectively improve the prediction accuracy of the second image component prediction value and make the second image component prediction value closer to the true component value.
[0006] The technical solution of this application embodiment is implemented as follows:
[0007] A method for predicting video image components, the method comprising:
[0008] Obtain the adjacent reference value and the reconstructed value of the first image component corresponding to the current coding block; wherein, the adjacent reference value of the first image component is used to characterize the parameters of the first image component corresponding to the adjacent reference point of the current coding block, and the reconstructed value of the first image component is used to characterize the reconstruction parameters of one or more first image components corresponding to the current coding block;
[0009] A correlation coefficient is determined based on the adjacent reference value of the first image component and the reconstructed value of the first image component; wherein, the correlation coefficient is used to characterize the degree of deviation between the image components of the current coding block and the adjacent reference point;
[0010] The correlation coefficient is input into a preset weight calculation model to obtain the weight coefficients corresponding to the adjacent reference points;
[0011] The scaling factor is determined based on the weighting coefficients;
[0012] The predicted value of the second image component corresponding to the current coding block is obtained through the scaling factor.
[0013] This application provides a method and apparatus for predicting video image components, as well as a computer storage medium. The prediction apparatus acquires a first image component neighbor reference value and a first image component reconstructed value corresponding to the current coding block. The first image component neighbor reference value characterizes the parameters of the first image component corresponding to neighboring reference points of the current coding block, and the first image component reconstructed value characterizes the reconstruction parameters of one or more first image components corresponding to the current coding block. A correlation coefficient is determined based on the first image component neighbor reference value and the first image component reconstructed value. The correlation coefficient characterizes the degree of deviation between the image components of the current coding block and the neighboring reference points. The correlation coefficient is input into a preset weight calculation model to obtain weight coefficients corresponding to the neighboring reference points. A scaling factor is determined based on the weight coefficients. The predicted value of the second image component corresponding to the current coding block is obtained through the scaling factor. Therefore, in the embodiments of this application, the prediction device can determine the correlation coefficient based on the adjacent reference value of the first image component corresponding to the current coding block and the reconstructed value of the first image component. This allows for the allocation of different weight coefficients to different adjacent reference points based on the correlation between the component parameters of the adjacent reference points and the current coding block, thereby constructing a linear model that better conforms to the desired model. This effectively overcomes the defect that the linear model deviates from the desired model when there is a large deviation between the adjacent reference value of the first image component and the component parameter corresponding to the current coding block, or when there is a large deviation between the adjacent reference value of the third image component and the component parameter corresponding to the current coding block. Consequently, when predicting the components of the current coding block based on this linear model, the prediction accuracy of the video image component prediction value can be greatly improved, making the video image component prediction value closer to the real video image component value. Attached Figure Description
[0014] Figure 1 is a schematic diagram of the video encoding process;
[0015] Figure 2 is a schematic diagram of the video decoding process;
[0016] Figure 3 is a schematic diagram of the positions of adjacent reference samples;
[0017] Figure 4 is a schematic diagram of the positions of adjacent reference samples (II).
[0018] Figure 5 is a schematic diagram of determining a linear model in the prior art;
[0019] Figure 6 is a schematic diagram of determining a linear model in the prior art;
[0020] Figure 7 is a schematic diagram of the implementation process of a video image component prediction method proposed in an embodiment of this application;
[0021] Figure 8 is a schematic diagram of removing interference points in an embodiment of this application;
[0022] Figure 9 is a schematic diagram of the composition structure of the prediction device proposed in an embodiment of this application;
[0023] Figure 10 is a schematic diagram of the composition structure of the prediction device proposed in the embodiment of this application. Detailed Implementation
[0024] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are merely for explaining the relevant application and not for limiting the application. Furthermore, it should be noted that, for ease of description, only the parts relevant to the application are shown in the accompanying drawings.
[0025] In video images, a first image component, a second image component, and a third image component are generally used to represent a coded block. These three image components can each include one luminance component and two chrominance components. Specifically, the luminance component is usually represented by the symbol Y, and the chrominance components are usually represented by the symbols Cb and Cr, where Cb represents the blue chrominance component and Cr represents the red chrominance component.
[0026] It should be noted that, in the embodiments of this application, the first image component, the second image component, and the third image component can be the luminance component Y, the blue chrominance component Cb, and the red chrominance component Cr, respectively. For example, the first image component can be the luminance component Y, the second image component can be the red chrominance component Cr, and the third image component can be the blue chrominance component Cb. The embodiments of this application do not specifically limit this.
[0027] Furthermore, in the embodiments of this application, the commonly used sampling format in which the luminance component and chrominance component are represented separately is also called the YCbCr format, wherein the YCbCr format may include the 4:4:4 format, the 4:2:2 format, and the 4:2:0 format.
[0028] When a video image uses a YCbCr 4:2:0 format, if the luminance component of the video image is a 2N×2N coded block, then the corresponding chrominance component is an N×N coded block, where N is the side length of the coded block. In this embodiment of the invention, the 4:2:0 format will be used as an example for description; however, the technical solution of this embodiment is also applicable to other sampling formats.
[0029] In the embodiments of this application, the above-described video image component prediction method can be applied to the intra-frame prediction part of a video coding hybrid framework. Specifically, the above-described video image component prediction method can be applied to both the encoding and decoding ends simultaneously. For example, Figure 1 is a schematic diagram of the video coding process. As shown in Figure 1, video coding may include multiple specific steps such as intra-frame estimation, intra-frame prediction, and motion compensation. The video image component prediction method proposed in this application can be applied to the intra-frame prediction part. Figure 2 is a schematic diagram of the video decoding process. As shown in Figure 2, video decoding may include multiple specific steps such as filtering, intra-frame prediction, and motion compensation. The video image component prediction method proposed in this application can be applied to the intra-frame prediction part.
[0030] In H.266, to further improve coding performance and efficiency, Cross-component Prediction (CCP) was extended and improved, resulting in Cross-component Linear Model Prediction (CCLM). In H.266, CCLM implements predictions between a first image component and a second image component, between a first image component and a third image component, and between the second and third image components. The following description uses the prediction from the first image component to the second image component as an example; however, the technical solutions of this application embodiment can also be applied to the prediction of other image components.
[0031] Specifically, in existing technologies, the CCLM method, when predicting from luminance components to chrominance components, uses an inter-component linear model prediction mode in decoders of next-generation video coding standards, such as the H.266 / VVC Joint Exploration Model (JEM) or VVC Test Model (VTM), to reduce redundancy between luminance and chrominance components and between different chrominance components. For example, according to formula (1), the predicted chrominance value is constructed using the reconstructed luminance value of the same coding block:
[0032] Pred C [i,j]=α·Rec L [i,j]+β (1)
[0033] Where i and j represent the position coordinates of the sampling point in the coding block, i represents the horizontal direction, j represents the vertical direction, and Pred C [i,j] represents the predicted value of the second image component at the sampling point with coordinates [i,j] in the coding block. L [i,j] represents the reconstructed value of the first image component at the sampling point with position coordinates [i,j] in the same coding block (after downsampling). α and β are the scaling factors of the linear model, which can be derived by minimizing the regression error of the adjacent reference values of the first image component and the adjacent reference values of the second image component, as shown in the following formula (2):
[0034]
[0035] Where L(n) represents the adjacent reference value of the first image component after downsampling (e.g., left and top), C(n) represents the adjacent reference value of the second image component (e.g., left and top), and N is the number of adjacent reference values of the second image component. Figure 3 is a schematic diagram of the position of adjacent reference sampling, and Figure 4 is a schematic diagram of the position of adjacent reference sampling. As shown in Figures 3 and 4, L(n) and C(n) are adjacent reference pixels, and N is the number of adjacent reference values of the second image component. For a 4:2:0 format video image, a first image component coding block of size 2N×2N is shown in Figure 3, and the corresponding second image component of size is N×N, as shown in Figure 4. For square coding blocks, these two equations can be applied directly. For non-square coding blocks, the adjacent samples of the longer edge are downsampled first to obtain a number of samples equal to the number of samples of the shorter edge. α and β do not need to be transmitted and are also calculated in the decoder by formula (2); in the embodiments of this application, this is not specifically limited.
[0036] Figure 5 is a schematic diagram of determining the linear model in the prior art. As shown in Figure 5, a, b, and c are the adjacent reference values of the first image component, A, B, and C are the adjacent reference values of the second image component, e is the reconstructed value of the first image component of the current coding block, and E is the predicted value of the second image component of the current coding block. Among them, using all the adjacent reference values L(n) of the first image component and the adjacent reference values C(n) of the second image component of the current coding block, α and β can be calculated according to Equation (2). Then, the reconstructed value e of the first image component of the current coding block is substituted into the linear model described in Equation (1) to calculate the predicted value E of the second image component of the current coding block.
[0037] Specifically, in the prior art, the CCLM prediction mode includes not only the method of predicting the chromaticity component with the luminance component, that is, the method of predicting the second image component with the first image component, or the method of predicting the third image component with the first image component, but also the prediction between two chromaticity components, that is, the prediction between the second image component and the third image component. In the embodiments of this application, the Cr component can be predicted from the Cb component, or the Cb component can be predicted from the Cr component.
[0038] It should be noted that, in the embodiments of this application, the prediction between chroma components in CCLM, i.e., the prediction between the second image component and the third image component, can be applied to the residual domain. Taking the prediction of the Cr component as an example, the Cb residual can be used to predict the Cr residual. The final predicted value of the Cr component is obtained by adding a weighted reconstructed Cb residual to the traditional intra-frame predicted value of the Cr component, as shown in formula (3):
[0039] Pred* Cr [i,j]=γ·resi Cb '[i,j]+Pred Cr [i,j] (3)
[0040] in, Resi represents the final predicted value of the Cr component at the sampling point with coordinates [i,j] in the current coding block. Cb [i,j] is the prediction residual of the reconstructed Cb component. The calculation method of the scaling factor γ is the same as the calculation method of the prediction model parameters from luminance component to chrominance component in CCLM. The only difference is that a regression cost related to the default γ value in the error function is added, so that the obtained scaling factor γ can be biased towards the default value of -0.5. Specifically, the scaling factor γ can be calculated by formula (4).
[0041]
[0042] Where Cb(n) represents the neighboring reference Cb value of the current coding block, Cr(n) represents the neighboring reference Cr value of the current coding block, and λ can be an empirical value, for example, λ=∑(Cb(n)·Cb(n))>>9.
[0043] However, existing technologies, when calculating linear models to predict the second or third image component based on the first image component, often only consider the adjacent reference values of the first, second, or third image components. For example, as shown in Figure 5 above, the scaling factors α and β are calculated using all adjacent reference values L(n) of the first image components and all adjacent reference values C(n) of the second image components. Then, the reconstructed value of the first image component of the current coding block is substituted into the linear model to obtain the predicted value of the second image component of the current coding block. In this process, the correlation between the reconstructed value of the first image component of the current coding block and the adjacent reference values of the first image component is not considered. If the adjacent reference values of the first image component that deviate significantly from the current brightness value are used to construct the linear model, the predicted value of the second or third image component of the current coding block may deviate significantly from the actual image component value, reducing the prediction accuracy. For example, Figure 6 is a schematic diagram of determining the linear model in the prior art. As shown in Figure 6, pixels b and c deviate from the reconstructed luminance value of the current coding block. The linear relationship between them and the corresponding chrominance value deviates from the reconstructed luminance value and the corresponding chrominance value of the current coding block. According to the calculation method of the prior art, pixels b and c will also be used to calculate the parameters of the linear model, causing the derived linear model to deviate from the linear model we expect.
[0044] In the embodiments of this application, the video image component prediction method proposes a linear model calculation method based on component correlation. Specifically, when calculating the scaling factor of the linear model, it not only considers the adjacent reference values of the first image component, the second image component, or the third image component, but also considers the correlation and similarity between the reconstructed value of the first image component and the adjacent reference values of the first image component in the current coding block. Then, it weights or filters the adjacent reference pixels according to the similarity, so that the linear model parameters fit the current reconstructed value of the first image component better, and further makes the predicted value of the second image component or the predicted value of the third image component in the current coding block more accurate.
[0045] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. In the following embodiments, the first image component can be the luminance component Y, the second image component can be the red chromaticity component Cr, and the third image component can be the blue chromaticity component Cb. The embodiments of this application do not specifically limit this.
[0046] Example 1
[0047] This application provides a method for predicting video image components. Figure 7 is a schematic diagram of the implementation process of the method for predicting video image components proposed in this application. As shown in Figure 7, in the embodiments of this application, the method for predicting video image components using the above-mentioned prediction device may include the following steps:
[0048] Step 101: Obtain the adjacent reference value and the reconstructed value of the first image component corresponding to the current coding block; wherein, the adjacent reference value of the first image component is used to characterize the parameters of the first image component corresponding to the adjacent reference point of the current coding block, and the reconstructed value of the first image component is used to characterize the reconstruction parameters of one or more first image components corresponding to the current coding block.
[0049] In the embodiments of this application, the prediction device can first obtain the first image component neighbor reference value and the first image component reconstructed value corresponding to the current coding block. It should be noted that, in the embodiments of this application, the current coding block is a coding block divided by the prediction device that includes at least one pixel.
[0050] It should be noted that, in the embodiments of this application, the aforementioned first image component adjacent reference value is used to characterize the first image component parameter corresponding to the adjacent reference point of the current coding block. Specifically, for the downsampling method, when the current coding block contains one pixel, the corresponding adjacent reference point can be one pixel above and one pixel to the left of that pixel; when the current coding block contains multiple pixels, the corresponding adjacent reference point can be multiple pixels above and to the left of those multiple pixels.
[0051] Furthermore, in the embodiments of this application, the aforementioned adjacent reference point is a pixel adjacent to the current coding block. Specifically, in the embodiments of this application, for the downsampling method, the aforementioned adjacent reference point can be an adjacent pixel located to the left and top of the current coding block.
[0052] It should be noted that, in the embodiments of this application, when the prediction device obtains the adjacent reference values of the first image component, it can obtain all adjacent reference values of the first image component corresponding to the adjacent reference points. Specifically, in the embodiments of this application, one adjacent reference point corresponds to one adjacent reference value of the first image component. That is, when the adjacent reference points are multiple pixels, the prediction device can obtain multiple adjacent reference values of the first image component corresponding to the multiple pixels.
[0053] Furthermore, in the embodiments of this application, the first image component reconstruction value is used to characterize the reconstruction parameters of one or more first image components corresponding to the current coding block. Specifically, in the embodiments of this application, when the current coding block contains one pixel, the reconstruction parameter of the corresponding first image component is one; when the current coding block contains multiple pixels, the reconstruction parameters of the corresponding first image component are multiple.
[0054] It should be noted that, in the embodiments of this application, when the prediction device obtains the first image component reconstruction value, it can obtain all the first image component reconstruction values corresponding to the current coding block. Specifically, in the embodiments of this application, a first image component reconstruction value corresponds to one pixel in the current coding block.
[0055] Step 102: Determine the correlation coefficient based on the adjacent reference values of the first image component and the reconstructed value of the first image component; wherein, the correlation coefficient is used to characterize the degree of deviation of the image components between the current coding block and the adjacent reference points.
[0056] In the embodiments of this application, after obtaining the adjacent reference value of the first image component and the reconstructed value of the first image component corresponding to the current coding block, the prediction device can further determine the correlation coefficient based on the adjacent reference value of the first image component and the reconstructed value of the first image component.
[0057] It should be noted that, in the embodiments of this application, the correlation coefficient can be used to characterize the degree of deviation of the image components between the current coding block and the adjacent reference point. Specifically, the correlation coefficient can be used to characterize the correlation between the reconstructed value of the first image component corresponding to the current coding block and the adjacent reference value of the first image component corresponding to the adjacent reference point.
[0058] Furthermore, in the embodiments of this application, when the prediction device determines the correlation coefficient based on the adjacent reference values of the first image component and the reconstructed value of the first image component, it can perform a difference calculation on the adjacent reference values of the first image component and the reconstructed value of the first image component, and then further determine the correlation coefficient based on the difference result; at the same time, when the prediction device determines the correlation coefficient based on the adjacent reference values of the first image component and the reconstructed value of the first image component, it can also perform matrix multiplication calculation on the matrix corresponding to the adjacent reference values of the first image component and the matrix corresponding to the reconstructed value of the first image component, and then further determine the correlation coefficient based on the product result.
[0059] Step 103: Input the correlation coefficient into the preset weight calculation model to obtain the weight coefficients corresponding to adjacent reference points.
[0060] In the embodiments of this application, after determining the correlation coefficient based on the adjacent reference value of the first image component and the reconstructed value of the first image component, the prediction device can input the correlation coefficient into a preset weight calculation model, thereby obtaining the weight coefficient corresponding to the adjacent reference point.
[0061] It should be noted that, in the embodiments of this application, the aforementioned preset weight calculation model is a calculation model pre-set by the aforementioned prediction device for allocating weights according to the aforementioned correlation coefficient.
[0062] Furthermore, in the embodiments of this application, the aforementioned weighting coefficient can be a weighting value calculated based on the correlation between the adjacent reference point and the current coding block when predicting the predicted value of the second image component corresponding to the current coding block.
[0063] It should be noted that, in the embodiments of this application, the greater the correlation between one of the adjacent reference points and the current coding block, the greater the weight value corresponding to the reference point.
[0064] It should be noted that, in the embodiments of this application, when calculating the predicted value of the second image component, each of the adjacent reference points has a corresponding weight coefficient.
[0065] Furthermore, in the embodiments of this application, when determining the weight coefficients, the prediction device can calculate them using the preset weight calculation model. Specifically, in the embodiments of this application, the weight calculation model is shown in the following formula (5):
[0066]
[0067] Where L(n) represents the adjacent reference values of the left and top first image components in the downsampling, and Rec L (i,j) represents the reconstructed value of the first image component, and σ is a value related to the quantization parameter in the encoding.
[0068] Step 104: Determine the scaling factor based on the weighting coefficient.
[0069] In the embodiments of this application, after the prediction device inputs the correlation coefficient into the preset weight calculation model and obtains the weight coefficient corresponding to the adjacent reference point, it can determine the scaling factor based on the weight coefficient.
[0070] It should be noted that, in the embodiments of this application, the above-mentioned scaling factor can be a coefficient in the linear model obtained by the above-mentioned prediction device when performing video image component prediction.
[0071] Furthermore, in the embodiments of this application, the above scaling factor is a different coefficient for different prediction modes. For example, if the above preset device predicts the second image component or the third image component through the first image component, the above scaling factor can be α and β in the above formula (1); if the above preset device predicts between the second image component and the third image component, the above scaling factor can be γ in the above formula (3).
[0072] Step 105: Obtain the predicted value of the second image component corresponding to the current coding block through the scaling factor.
[0073] In the embodiments of this application, after determining the scaling factor based on the weighting coefficient, the prediction device can further obtain the second image component prediction value corresponding to the current coding block through the scaling factor. The second image component prediction value is the prediction result obtained by the prediction device performing second component prediction on the current coding block.
[0074] It should be noted that, in the embodiments of this application, when the prediction device obtains the predicted value of the second image component based on the scaling factor, it may first establish a linear model for video image component prediction based on the scaling factor.
[0075] Furthermore, in the embodiments of this application, the linear model established by the above-mentioned prediction device is also different for different prediction modes. That is, the linear model established when predicting the second image component or the third image component through the first image component is not the same as the linear model established when predicting between the second image component and the third image component.
[0076] It should be noted that, in the embodiments of this application, when predicting the second image component or the third image component through the first image component, the predicted value of the second image component obtained is the second image component or the third image component corresponding to the current coding block, that is, the Cb component or the Cr component; when predicting between the second image component and the third image component, the predicted value of the second image component obtained is the second image component or the third image component corresponding to the current coding block, that is, the Cb component or the Cr component.
[0077] Furthermore, in the embodiments of this application, after establishing the linear model based on the scaling factor, the prediction device can perform video image component prediction on the current coding block based on the linear model, thereby obtaining the second image component prediction value.
[0078] Furthermore, in the embodiments of this application, there are currently two prediction modes for CCLM: one is the single-model CCLM prediction mode; the other is the multiple-model CCLM (MMLM) prediction mode, also known as the MMLM prediction mode. As the name suggests, the single-model CCLM prediction mode uses only one linear model to predict the second or third image component from the first image component; while the MMLM prediction mode uses multiple linear models to predict the second or third image component from the first image component. For example, in the MMLM prediction mode, the neighboring reference values of the first and second image components of the current coding block are divided into two groups. Each group can be used independently as a training set for deriving linear model parameters; that is, each group can derive a set of scaling factors. Therefore, the video image component prediction method proposed in this application embodiment can also be applied to the prediction mode of MMLM. It can also overcome the defects of the linear model deviating from the expected model when the adjacent reference value of the first image component deviates significantly from the parameter corresponding to the current coding block, or when the adjacent reference value of the third image component deviates significantly from the parameter corresponding to the current coding block. Thus, when predicting the second image component of the current coding block according to the linear model, the prediction accuracy of the second image component prediction value can be greatly improved.
[0079] Therefore, in the embodiments of this application, the prediction device can determine the correlation coefficient based on the adjacent reference value and the reconstructed value of the first image component corresponding to the current coding block. This allows for the allocation of different weight coefficients to different adjacent reference points based on the correlation between the component parameters of the adjacent reference points and the current coding block, thereby constructing a linear model that better conforms to the desired model. This effectively overcomes the defect that the linear model deviates from the desired model when the adjacent reference value of the first image component deviates significantly from the component parameters corresponding to the current coding block, or when the adjacent reference value of the third image component deviates significantly from the component parameters corresponding to the current coding block. Consequently, when predicting the components of the current coding block based on this linear model, the prediction accuracy of the video image component prediction value can be greatly improved, making the predicted video image component value closer to the true video image component value.
[0080] Example 2
[0081] Based on the above embodiment one, in the embodiments of this application, the method by which the prediction device determines the correlation coefficient based on the adjacent reference value of the first image component and the reconstructed value of the first image component may include the following steps:
[0082] Step 102a: Perform a difference operation between any one of the adjacent reference values of the first image component and each reconstructed value of the first image component to obtain the component difference value corresponding to any one reference value; wherein, one adjacent reference value of the first image component and one reconstructed value of the first image component correspond to one difference value.
[0083] In the embodiments of this application, after obtaining the first image component adjacent reference value and the first image component reconstructed value corresponding to the current coding block, the prediction device can perform a difference operation between any one of the first image component adjacent reference values and each of the first image component reconstructed values to obtain the component difference value corresponding to the any one of the reference values.
[0084] It should be noted that, in the embodiments of this application, one of the reference values of the adjacent reference values of the first image component and one of the reconstructed values of the first image component correspond to a difference.
[0085] Furthermore, in the embodiments of this application, the prediction device performs a difference operation on any one of the adjacent reference values of the first image component and each of the reconstructed values of the first image component, which can characterize the degree of correlation between the adjacent reference points and the current encoding module in the video image components.
[0086] It should be noted that, in the embodiments of this application, the larger the component difference value, the smaller the correlation between the adjacent reference point and the current encoding module.
[0087] Step 102b: Determine the smallest difference among the component differences as the correlation coefficient.
[0088] In the embodiments of this application, after the prediction device performs a difference operation between any one of the adjacent reference values of the first image component and the reconstructed value of each first image component to obtain the component difference corresponding to any one of the reference values, it can determine the smallest difference among the component differences as the correlation coefficient.
[0089] It should be noted that, in the embodiments of this application, after determining the minimum difference from the component differences, the prediction device can further determine the correlation coefficient based on the minimum difference.
[0090] Furthermore, in the embodiments of this application, the smaller the component difference, the greater the correlation between the adjacent reference point and the current encoding module can be considered. Therefore, the prediction device can determine the correlation factor based on the smallest difference among the component differences.
[0091] Furthermore, in the embodiments of this application, after the prediction device performs a difference operation between each of the first image component reconstructed values and any one of the adjacent reference values of the first image component to obtain the component difference corresponding to any one of the reference values, and before determining the scaling factor according to the weight coefficient, the method of the prediction device for video image component prediction may further include the following steps:
[0092] Step 106: When the component difference corresponding to any reference value is greater than the preset difference threshold, set the weight coefficient of the adjacent reference point corresponding to any reference value to zero.
[0093] In the embodiments of this application, after the prediction device performs a difference operation between any one of the adjacent reference values of the first image component and each of the reconstructed values of the first image component to obtain the component difference value corresponding to the first reference value, and before determining the scaling factor according to the weight coefficient, if the component difference value corresponding to the first reference value is greater than a preset difference threshold, then the prediction device can set the weight coefficient of the adjacent reference point corresponding to the first reference value to zero.
[0094] It should be noted that, in the embodiments of the invention, after obtaining the component difference value corresponding to any of the above reference values, the prediction device can compare the component difference value with the preset difference threshold. If all the component differences corresponding to any of the above reference values are greater than the preset difference threshold, it can be considered that there is a large deviation between the adjacent reference values of any of the first image components and the current coding block. Therefore, the prediction device can remove the adjacent reference points corresponding to the adjacent reference values of any of the first image components, that is, set the weight coefficient of the adjacent reference points corresponding to any of the above reference values to zero.
[0095] Furthermore, in an embodiment of the invention, before calculating the linear model, the prediction device may consider the correlation between the reconstructed value of the first image component and the adjacent reference value of the first image component of the current coding block. That is, the adjacent reference value of the first image component is filtered based on the difference between the adjacent reference value of the first image component and the reconstructed value of the first image component.
[0096] Furthermore, in an embodiment of the invention, the prediction device can preset a threshold, namely the preset difference threshold, and then iterate through each of the adjacent reference values of the first image component, calculating the difference between each reference value and the reconstructed value of the first image component in the current coding block. If the minimum difference between a certain adjacent reference value of the first image component and each reconstructed value of the first image component is greater than the preset difference threshold, the prediction device can consider that the adjacent reference point to be an interference point for calculating an accurate linear model, and therefore can remove it from the training samples of the linear model, so that the adjacent reference values of the first image component after removing interference points can be used as training samples of the linear model to calculate model parameters.
[0097] In an embodiment of the invention, Figure 8 is a schematic diagram of removing interference points in an embodiment of this application. As shown in Figure 8, if some first image component values of the adjacent reference values of the first image component of the current coding block deviate from the reconstructed value of the first image component of the current coding block, the point is removed when calculating the linear model and is not used as a training sample for the linear model. The linear model calculated at this time is more accurate.
[0098] Therefore, in the embodiments of this application, the prediction device can determine the correlation coefficient based on the adjacent reference value and the reconstructed value of the first image component corresponding to the current coding block. This allows for the allocation of different weight coefficients to different adjacent reference points based on the correlation between the component parameters of the adjacent reference points and the current coding block, thereby constructing a linear model that better conforms to the desired model. This effectively overcomes the defect that the linear model deviates from the desired model when there is a large deviation between the adjacent reference value of the first image component and the component parameter corresponding to the current coding block, or when there is a large deviation between the adjacent reference value of the third image component and the component parameter corresponding to the current coding block. Consequently, when predicting the components of the current coding block based on this linear model, the prediction accuracy of the video image component prediction value can be greatly improved, making the video image component prediction value closer to the real video image component value.
[0099] Example 3
[0100] Based on the above embodiment one, in the embodiments of this application, before the prediction device determines the scaling factor according to the above weight coefficient, that is, before step 104, the method of the prediction device for video image component prediction may further include the following steps:
[0101] Step 107: Obtain the adjacent reference value of the second image component corresponding to the current coding block; wherein, the adjacent reference value of the second image component is the second component parameter corresponding to the adjacent reference point, which is different from the parameter of the first image component.
[0102] In the embodiments of this application, before determining the scaling factor based on the weighting coefficient, the prediction device may first obtain the adjacent reference value of the second image component corresponding to the current coding block.
[0103] It should be noted that, in the embodiments of this application, the adjacent reference value of the second image component is a second component parameter that is different from the parameter of the first image component and corresponds to the adjacent reference point.
[0104] In embodiments of this application, the scaling factor includes a first scaling parameter and a second scaling parameter, and the method by which the prediction device determines the scaling factor based on the weighting coefficient may include the following steps:
[0105] Step 104a: Input the weighting coefficients, the adjacent reference values of the first image component and the adjacent reference values of the second image component into the first preset factor calculation model to obtain the first proportional parameter.
[0106] In an embodiment of the present invention, after the prediction device inputs the correlation coefficient into a preset weight calculation model to obtain the weight coefficient corresponding to the adjacent reference value of the first image component, it can input the weight coefficient, the adjacent reference value of the first image component, and the adjacent reference value of the second image component into a first preset factor calculation model to obtain the first ratio parameter.
[0107] It should be noted that, in the embodiments of the present invention, if the preset device predicts the second image component using the first image component, the scaling factor may include the first scaling parameter and the second scaling parameter, wherein the first scaling parameter and the second scaling parameter are used to construct the predicted value of the second image component based on the reconstructed value of the first image component.
[0108] Furthermore, in the embodiments of this application, if the prediction device further determines the calculation of the first proportional parameter based on the adjacent reference values of the first image component and the adjacent reference values of the second image component, the calculation model of the first preset factor that can be used is as shown in the following formula (6):
[0109]
[0110] Where α is the first scaling parameter, L(n) represents the adjacent reference values of the first image components on the left and top sides of the downsampled side, C(n) represents the adjacent reference values of the second image components on the left and top sides, and w(n) is the weighting coefficient corresponding to the adjacent reference values of each first image component.
[0111] Step 104b: Input the weighting coefficient, the first proportional parameter, the adjacent reference value of the first image component, and the adjacent reference value of the second image component into the second preset factor calculation model to obtain the second proportional parameter.
[0112] In the embodiments of this application, after the prediction device inputs the weight coefficient, the first image component adjacent reference value, and the second image component adjacent reference value into the first preset factor calculation model to obtain the first proportional parameter, it can continue to input the weight coefficient, the first proportional parameter, the first image component adjacent reference value, and the second image component adjacent reference value into the second preset factor calculation model to obtain the second proportional parameter.
[0113] Furthermore, in the embodiments of this application, if the prediction device further determines the calculation of the second proportional parameter based on the adjacent reference values of the first image component and the adjacent reference values of the second image component, the calculation model of the second preset factor that can be used is as shown in the following formula (7):
[0114]
[0115] Where β is the second scaling parameter, L(n) represents the adjacent reference values of the first image components on the left and top sides of the downsampled data, C(n) represents the adjacent reference values of the second image components on the left and top sides, and w(n) is the weight coefficient corresponding to each adjacent reference point.
[0116] In the embodiments of this application, before the prediction device determines the scaling factor based on the weighting coefficient, i.e., before step 104, the method for the prediction device to perform video image component prediction may further include the following steps:
[0117] Step 108: Obtain the adjacent reference values of the second image component and the third image component corresponding to the current coding block; wherein, the adjacent reference values of the second image component and the third image component represent the second image component parameters and the third image component parameters of the adjacent reference points, respectively.
[0118] In the embodiments of this application, before the prediction device determines the scaling factor based on the weighting coefficient, it may first obtain the adjacent reference values of the second image component and the adjacent reference values of the third image component corresponding to the current coding block.
[0119] It should be noted that, in the embodiments of this application, the second image component neighbor reference value and the third image component neighbor reference value respectively represent the second image component parameter and the third image component parameter of the adjacent reference point. Specifically, the aforementioned third image component neighbor reference value and the aforementioned second image component neighbor reference value can be used for prediction between the same components.
[0120] Furthermore, in the embodiments of this application, the adjacent reference value of the third image component and the adjacent reference value of the second image component can be the adjacent reference Cb value and the adjacent reference Cr value corresponding to the adjacent reference point, respectively.
[0121] In the embodiments of this application, before the prediction device obtains the second image component prediction value corresponding to the current coding block through the scaling factor, i.e., before step 105, the method for the prediction device to perform video image component prediction may further include the following steps:
[0122] Step 109: Obtain the estimated value of the second image component and the reconstruction residual of the third image component corresponding to the current coding block.
[0123] In the embodiments of this application, before the prediction device obtains the predicted value of the second image component corresponding to the current coding block based on the scaling factor, it may first obtain the estimated value of the second image component and the reconstruction residual of the third image component corresponding to the current coding block.
[0124] It should be noted that, in the embodiments of this application, the estimated value of the second image component is obtained by performing conventional component prediction based on the second image component corresponding to the current coding block; the reconstruction residual of the third image component is used to characterize the prediction residual of the third image component corresponding to the current coding block.
[0125] In embodiments of this application, the scaling factor further includes a third scaling parameter, and the method by which the prediction device determines the scaling factor based on the weighting coefficient may include the following steps:
[0126] Step 104c: Input the weighting coefficients, the adjacent reference values of the third image component and the adjacent reference values of the second image component into the third preset factor calculation model to obtain the third proportional parameter.
[0127] In an embodiment of the present invention, after the prediction device inputs the correlation coefficient into a preset weight calculation model to obtain the weight coefficient corresponding to the adjacent reference point, it can input the weight coefficient, the adjacent reference value of the third image component, and the adjacent reference value of the second image component into a third preset factor calculation model to obtain the third ratio parameter.
[0128] It should be noted that, in the embodiments of the present invention, if the above-mentioned preset device performs prediction between the second image component and the third image component, the above-mentioned scaling factor may include the above-mentioned third scaling parameter.
[0129] Furthermore, in the embodiments of this application, if the prediction device further determines the calculation of the third proportional parameter based on the adjacent reference values of the third image component and the adjacent reference values of the second image component, the calculation model of the third preset factor that can be used is as shown in the following formula (8):
[0130]
[0131] Where γ is the third scaling parameter, Cb(n) represents the neighboring reference Cb value of the current coding block, that is, the neighboring reference value of the third image component; Cr(n) represents the neighboring reference Cr value of the current coding block, that is, the neighboring reference value of the second image component; λ can be an empirical value, and w(n) is the weight coefficient corresponding to each neighboring reference point.
[0132] Therefore, in the embodiments of this application, the prediction device can determine the correlation coefficient based on the adjacent reference value and the reconstructed value of the first image component corresponding to the current coding block. This allows for the allocation of different weight coefficients to different adjacent reference points based on the correlation between the component parameters of the adjacent reference points and the current coding block, thereby constructing a linear model that better conforms to the desired model. This effectively overcomes the defect that the linear model deviates from the desired model when there is a large deviation between the adjacent reference value of the first image component and the component parameter corresponding to the current coding block, or when there is a large deviation between the adjacent reference value of the third image component and the component parameter corresponding to the current coding block. Consequently, when predicting the components of the current coding block based on this linear model, the prediction accuracy of the video image component prediction value can be greatly improved, making the video image component prediction value closer to the real video image component value.
[0133] Example 4
[0134] Based on the above embodiment three, in the embodiments of this application, the method by which the prediction device obtains the prediction value of the second image component corresponding to the current coding block through the scaling factor may include the following steps:
[0135] Step 105a: Obtain the predicted value of the second image component based on the first scaling parameter, the second scaling parameter, and the reconstructed value of the first image component.
[0136] In the embodiments of this application, after determining the scaling factor based on the weighting coefficient, the prediction device can further obtain the predicted value of the second image component based on the scaling factor including the first scaling parameter, the second scaling parameter, and the reconstructed value of the first image component.
[0137] It should be noted that, in the embodiments of this application, after obtaining the scaling factor including the first scaling parameter and the second scaling parameter, the prediction device can establish a linear model for video image component prediction based on the first scaling parameter, the second scaling parameter and the first image component reconstruction value. Thus, the second image component of the current coding block can be constructed based on the linear model to obtain the predicted value of the second image component.
[0138] Furthermore, in the embodiments of this application, the prediction device can determine the predicted value of the second image component using the formula (1). That is, the prediction device can calculate the predicted value of the second image component based on the first proportional parameter, the second proportional parameter, and the reconstructed value of the first image component.
[0139] In embodiments of this application, the method by which the prediction device obtains the predicted value of the second image component corresponding to the current coding block through the scaling factor may further include the following steps:
[0140] Step 105b: Obtain the predicted value of the second image component based on the third scaling parameter, the estimated value of the second image component, and the reconstruction residual of the third image component.
[0141] In the embodiments of this application, after determining the scaling factor based on the weighting coefficient, the prediction device can further obtain the predicted value of the second image component based on the scaling factor including the third scaling parameter, the estimated value of the second image component, and the reconstruction residual of the third image component.
[0142] It should be noted that, in the embodiments of this application, after obtaining the scaling factor including the third scaling parameter, the prediction device can establish a linear model for video image component prediction based on the third scaling parameter, the estimated value of the second image component, and the reconstruction residual of the third image component. Thus, the second image component of the current coding block can be constructed based on the linear model to obtain the predicted value of the second image component.
[0143] Furthermore, in the embodiments of this application, the prediction device can determine the predicted value of the second image component by the above formula (3), that is, the prediction device can calculate the predicted value of the second image component based on the third scaling parameter, the estimated value of the second image component and the reconstruction residual of the third image component.
[0144] Therefore, in the embodiments of this application, the prediction device can determine the correlation coefficient based on the adjacent reference value and the reconstructed value of the first image component corresponding to the current coding block. This allows for the allocation of different weight coefficients to different adjacent reference points based on the correlation between the component parameters of the adjacent reference points and the current coding block, thereby constructing a linear model that better conforms to the desired model. This effectively overcomes the defect that the linear model deviates from the desired model when there is a large deviation between the adjacent reference value of the first image component and the component parameter corresponding to the current coding block, or when there is a large deviation between the adjacent reference value of the third image component and the component parameter corresponding to the current coding block. Consequently, when predicting the components of the current coding block based on this linear model, the prediction accuracy of the video image component prediction value can be greatly improved, making the video image component prediction value closer to the real video image component value.
[0145] Example 5
[0146] Based on the same inventive concept of Embodiments 1 to 4 above, FIG9 is a schematic diagram of the composition structure of the prediction device proposed in the embodiment of this application. As shown in FIG9, the prediction device 1 proposed in the embodiment of this application may include an acquisition part 11, a determination part 12 and a setting part 13.
[0147] The acquisition section 11 is configured to acquire the adjacent reference value and the reconstructed value of the first image component corresponding to the current coding block; wherein, the adjacent reference value of the first image component is used to characterize the parameters of the first image component corresponding to the adjacent reference point of the current coding block, and the reconstructed value of the first image component is used to characterize the reconstruction parameters of one or more first image components corresponding to the current coding block.
[0148] The determining part 12 is configured to determine a correlation coefficient based on the first image component adjacent reference value and the first image component reconstructed value corresponding to the current coding block after the obtaining part 11 obtains the first image component adjacent reference value and the first image component reconstructed value; wherein the correlation coefficient is used to characterize the degree of image component deviation between the current coding block and the adjacent reference point.
[0149] The acquisition part 11 is further configured to, after the determination part 12 determines the correlation coefficient based on the adjacent reference value of the first image component and the reconstructed value of the first image component, input the correlation coefficient into a preset weight calculation model to obtain the weight coefficient corresponding to the adjacent reference point.
[0150] The determining part 12 is further configured to, after the obtaining part 11 inputs the correlation coefficient into the preset weight calculation model to obtain the weight coefficients corresponding to the adjacent reference points, determine the scaling factor based on the weight coefficients.
[0151] The acquisition part 11 is further configured to obtain the second image component prediction value corresponding to the current coding block through the scale factor after the determination part 12 determines the scaling factor according to the weight coefficient.
[0152] Further, in an embodiment of this application, the determining part 12 is specifically configured to perform a difference operation between any one of the adjacent reference values of the first image component and each reconstructed value of the first image component to obtain a component difference value corresponding to the any one reference value; wherein, one adjacent reference value of the first image component and one reconstructed value of the first image component correspond to one difference value; and the smallest difference value among the component differences is determined as the correlation coefficient.
[0153] Furthermore, in an embodiment of this application, the acquisition portion 11 is further configured to acquire the adjacent reference value of the second image component corresponding to the current coding block before determining the scaling factor based on the weight coefficient; wherein, the adjacent reference value of the second image component is a second image component parameter corresponding to the adjacent reference point, which is different from the first image component parameter.
[0154] Furthermore, in the embodiments of this application, the scaling factor includes a first scaling parameter and a second scaling parameter. The determining part 12 is further configured to input the weighting coefficient, the first image component adjacent reference value, and the second image component adjacent reference value into a first preset factor calculation model to obtain the first scaling parameter; and to input the weighting coefficient, the first scaling parameter, the first image component adjacent reference value, and the second image component adjacent reference value into a second preset factor calculation model to obtain the second scaling parameter.
[0155] Furthermore, in an embodiment of this application, the acquisition part 11 is further configured to acquire the third image component adjacent reference value and the second image component adjacent reference value corresponding to the current coding block before determining the scaling factor according to the weight coefficient; wherein, the second image component adjacent reference value and the third image component adjacent reference value respectively characterize the second image component parameter and the third image component parameter of the adjacent reference point.
[0156] Furthermore, in an embodiment of this application, the acquisition part 11 is further configured to acquire the estimated value of the second image component and the third image component reconstruction residual corresponding to the current coding block before obtaining the predicted value of the second image component corresponding to the current coding block through the scaling factor; wherein, the estimated value of the second image component is obtained by performing component prediction based on the second image component corresponding to the current coding block; and the third image component reconstruction residual is used to characterize the prediction residual corresponding to the current coding block.
[0157] Furthermore, in an embodiment of this application, the scaling factor includes a third scaling parameter. The determining part 12 is further configured to input the weighting coefficient, the adjacent reference value of the second image component, and the adjacent reference value of the third image component into a third preset factor calculation model to obtain the third scaling parameter.
[0158] Furthermore, in the embodiments of this application, the acquisition part 11 is specifically configured to obtain the second image component prediction value based on the first ratio parameter, the second ratio parameter, and the first image component reconstruction value.
[0159] Furthermore, in embodiments of this application, the acquisition portion 11 is specifically configured to obtain the predicted value of the second image component based on the third scaling parameter, the estimated value of the second image component, and the reconstruction residual of the third image component.
[0160] Furthermore, in an embodiment of this application, the setting part 13 is configured to, after performing a difference operation between any one of the adjacent reference values of the first image component and each reconstructed value of the first image component to obtain the component difference corresponding to the any one reference value, and before determining the scaling factor according to the weight coefficient, set the weight coefficient of the adjacent reference point corresponding to the any one reference value to zero when the component difference corresponding to the any one reference value is greater than a preset difference threshold.
[0161] Figure 10 is a schematic diagram of the composition structure of the prediction device proposed in the embodiment of this application. As shown in Figure 10, the prediction device 1 proposed in the embodiment of this application may further include a processor 14, a memory 15 storing instructions executable by the processor 14, a communication interface 16, and a bus 17 for connecting the processor 14, the memory 15 and the communication interface 16.
[0162] In the embodiments of this application, the processor 14 can be at least one of the following: Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), Controller, Microcontroller, and Microprocessor. It is understood that for different devices, the electronic device used to implement the above-mentioned processor function can also be other types, and this application embodiment does not specifically limit this. The device 1 may also include a memory 15, which can be connected to the processor 14. The memory 15 is used to store executable program code, which includes computer operation instructions. The memory 15 may include high-speed RAM memory and may also include non-volatile memory, such as at least two disk drives.
[0163] In embodiments of this application, bus 17 is used to connect communication interface 16, processor 14, and memory 15, as well as the mutual communication between these devices.
[0164] In embodiments of this application, memory 15 is used to store instructions and data.
[0165] Further, in the embodiments of this application, the processor 14 is used to obtain the first image component neighbor reference value and the first image component reconstructed value corresponding to the current coding block; wherein, the first image component neighbor reference value is used to characterize the first image component parameters corresponding to the neighboring reference points of the current coding block, and the first image component reconstructed value is used to characterize the reconstructed parameters of one or more first image components corresponding to the current coding block; a correlation coefficient is determined based on the first image component neighbor reference value and the first image component reconstructed value; wherein, the correlation coefficient is used to characterize the degree of deviation between the image components of the current coding block and the neighboring reference points; the correlation coefficient is input into a preset weight calculation model to obtain the weight coefficients corresponding to the neighboring reference points; a scaling factor is determined based on the weight coefficients; and the predicted value of the second image component corresponding to the current coding block is obtained through the scaling factor.
[0166] In practical applications, the aforementioned memory 15 may be a volatile first memory, such as random-access memory (RAM); or a non-volatile first memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); or a combination of the above types of first memory, and provide instructions and data to the processor 14.
[0167] Furthermore, in this embodiment, the functional modules can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional module.
[0168] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the method of this embodiment. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0169] The present application proposes an apparatus that can determine the correlation coefficient based on the adjacent reference values of the first image component corresponding to the current coding block and the reconstructed value of the first image component. This allows for the allocation of different weight coefficients to different adjacent reference points based on the correlation between the component parameters of the adjacent reference points and the current coding block, thereby constructing a linear model that better conforms to the desired model. This effectively overcomes the defect that the linear model deviates from the desired model when there is a large deviation between the adjacent reference values of the first image component and the component parameters corresponding to the current coding block, or when there is a large deviation between the adjacent reference values of the third image component and the component parameters corresponding to the current coding block. Consequently, when predicting the components of the current coding block based on this linear model, the prediction accuracy of the video image component prediction values can be greatly improved, making the predicted video image component values closer to the true video image component values.
[0170] This application provides a first computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the methods of Embodiments 1 to 4.
[0171] Specifically, the program instructions corresponding to the video image component prediction method in this embodiment can be stored on storage media such as optical discs, hard disks, and USB flash drives. When the program instructions corresponding to the video image component prediction method in the storage media are read or executed by an electronic device, the following steps are included:
[0172] Obtain the adjacent reference value and the reconstructed value of the first image component corresponding to the current coding block; wherein, the adjacent reference value of the first image component is used to characterize the parameters of the first image component corresponding to the adjacent reference point of the current coding block, and the reconstructed value of the first image component is used to characterize the reconstruction parameters of one or more first image components corresponding to the current coding block;
[0173] A correlation coefficient is determined based on the adjacent reference value of the first image component and the reconstructed value of the first image component; wherein, the correlation coefficient is used to characterize the degree of deviation between the image components of the current coding block and the adjacent reference point;
[0174] The correlation coefficient is input into a preset weight calculation model to obtain the weight coefficients corresponding to the adjacent reference points;
[0175] The scaling factor is determined based on the weighting coefficients;
[0176] The predicted value of the second image component corresponding to the current coding block is obtained through the scaling factor.
[0177] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.
[0178] This application is described with reference to schematic and / or block diagrams of implementations of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the schematic and / or block diagrams, and combinations thereof, 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, create means for implementing the functions specified in one or more blocks of the schematic and / or block diagrams.
[0179] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.
[0180] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks in a block diagram.
[0181] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Industrial applicability
[0182] This application provides a method and apparatus for predicting video image components, as well as a computer storage medium. The prediction apparatus can determine the correlation coefficient based on the adjacent reference values and reconstructed values of the first image component corresponding to the current coding block. This allows for the allocation of different weight coefficients to different adjacent reference points based on the correlation between the component parameters of the adjacent reference points and the current coding block, thereby constructing a linear model that better conforms to the desired model. This effectively overcomes the defect that the linear model deviates from the desired model when there is a large deviation between the adjacent reference values of the first image component and the component parameters corresponding to the current coding block, or when there is a large deviation between the adjacent reference values of the third image component and the component parameters corresponding to the current coding block. Consequently, when predicting the components of the current coding block based on this linear model, the prediction accuracy of the video image component prediction values can be greatly improved, making the predicted video image component values closer to the true video image component values.
Claims
1. A method for predicting video image components, the method comprising: Obtain the adjacent reference value and the reconstructed value of the first image component corresponding to the current coding block; wherein, the adjacent reference value of the first image component is used to characterize the parameters of the first image component corresponding to the adjacent reference point of the current coding block, and the reconstructed value of the first image component is used to characterize the reconstruction parameters of one or more first image components corresponding to the current coding block; A correlation coefficient is determined based on the adjacent reference value of the first image component and the reconstructed value of the first image component; wherein, the correlation coefficient is used to characterize the degree of deviation between the image components of the current coding block and the adjacent reference point; The correlation coefficient is input into a preset weight calculation model to obtain the weight coefficients corresponding to the adjacent reference points; The scaling factor is determined based on the weighting coefficients; The predicted value of the second image component corresponding to the current coding block is obtained through the scaling factor.
2. The method according to claim 1, wherein, The step of determining the correlation coefficient based on the adjacent reference value of the first image component and the reconstructed value of the first image component includes: The difference operation is performed between any one of the adjacent reference values of the first image component and each reconstructed value of the first image component to obtain the component difference value corresponding to the any one reference value; wherein, one adjacent reference value of the first image component and one reconstructed value of the first image component correspond to one difference value. The smallest difference among the component differences is determined as the correlation coefficient.
3. The method according to claim 1, wherein, Before determining the scaling factor based on the weighting coefficient, the method further includes: Obtain the adjacent reference value of the second image component corresponding to the current coding block; wherein, the adjacent reference value of the second image component is a second component parameter that is different from the parameter of the first image component corresponding to the adjacent reference point.
4. The method according to claim 3, wherein, The scaling factor includes a first scaling parameter and a second scaling parameter, and the step of determining the scaling factor based on the weighting coefficient includes: The weighting coefficient, the adjacent reference value of the first image component, and the adjacent reference value of the second image component are input into the first preset factor calculation model to obtain the first ratio parameter; The weighting coefficient, the first proportional parameter, the first image component neighbor reference value, and the second image component neighbor reference value are input into the second preset factor calculation model to obtain the second proportional parameter.
5. The method according to claim 1, wherein, Before determining the scaling factor based on the weighting coefficient, the method further includes: Obtain the adjacent reference values of the second image component and the third image component corresponding to the current coding block; wherein, the adjacent reference values of the second image component and the third image component respectively represent the second image component parameters and the third image component parameters of the adjacent reference points.
6. The method according to claim 5, wherein, Before obtaining the predicted value of the second image component corresponding to the current coding block through the scaling factor, the method further includes: Obtain the second image component estimate and the third image component reconstruction residual corresponding to the current coding block; wherein, the second image component estimate is obtained by component prediction based on the second image component corresponding to the current coding block; the third image component reconstruction residual is used to characterize the prediction residual corresponding to the current coding block.
7. The method according to claim 6, wherein, The scaling factor includes a third scaling parameter, and determining the scaling factor based on the weighting coefficient includes: The weighting coefficient, the adjacent reference value of the second image component, and the adjacent reference value of the third image component are input into the third preset factor calculation model to obtain the third proportional parameter.
8. The method according to claim 4, wherein, The step of obtaining the second image component prediction value corresponding to the current coding block through the scaling factor includes: The predicted value of the second image component is obtained based on the first scaling parameter, the second scaling parameter, and the reconstructed value of the first image component.
9. The method according to claim 7, wherein, The step of obtaining the second image component prediction value corresponding to the current coding block through the scaling factor includes: The predicted value of the second image component is obtained based on the third scaling parameter, the estimated value of the second image component, and the reconstruction residual of the third image component.
10. The method according to claim 2, wherein, After performing a difference operation between any one of the adjacent reference values of the first image component and each reconstructed value of the first image component to obtain the component difference corresponding to the any one reference value, and before determining the scaling factor based on the weight coefficient, the method further includes: When the component difference corresponding to any one of the reference values is greater than the preset difference threshold, the weight coefficient of the adjacent reference point corresponding to any one of the reference values is set to zero.
11. A prediction device, wherein, The prediction device includes: an acquisition part and a determination part. The acquisition section is configured to acquire the adjacent reference value of the first image component and the reconstructed value of the first image component corresponding to the current coding block; wherein, the adjacent reference value of the first image component is used to characterize the parameters of the first image component corresponding to the adjacent reference point of the current coding block, and the reconstructed value of the first image component is used to characterize the reconstruction parameters of one or more first image components corresponding to the current coding block. The determining part is configured to determine a correlation coefficient based on the adjacent reference value of the first image component and the reconstructed value of the first image component; wherein the correlation coefficient is used to characterize the degree of deviation of the image components between the current coding block and the adjacent reference point; The acquisition part is further configured to input the correlation coefficient into a preset weight calculation model to obtain the weight coefficients corresponding to the adjacent reference points; The determining part is further configured to determine a scaling factor based on the weighting coefficient; The acquisition part is further configured to obtain the second image component prediction value corresponding to the current coding block through the scaling factor.
12. The prediction device according to claim 11, wherein, The determining part is specifically configured to perform a difference operation between any one of the adjacent reference values of the first image component and each reconstructed value of the first image component to obtain the component difference value corresponding to the any one reference value; wherein, one adjacent reference value of the first image component and one reconstructed value of the first image component correspond to one difference value; and to determine the smallest difference value among the component differences as the correlation coefficient.
13. The prediction device according to claim 11, wherein, The acquisition part is further configured to acquire the adjacent reference value of the second image component corresponding to the current coding block before determining the scaling factor according to the weight coefficient; wherein, the adjacent reference value of the second image component is a second image component parameter corresponding to the adjacent reference point, which is different from the parameter of the first image component.
14. The prediction device according to claim 13, wherein, The scaling factor includes a first scaling parameter and a second scaling parameter. The determining part is further specifically configured to input the weighting coefficient, the first image component adjacent reference value, and the second image component adjacent reference value into a first preset factor calculation model to obtain the first ratio parameter; and to input the weighting coefficient, the first ratio parameter, the first image component adjacent reference value, and the second image component adjacent reference value into a second preset factor calculation model to obtain the second ratio parameter.
15. The prediction device according to claim 11, wherein, The acquisition part is further configured to acquire the adjacent reference value of the third image component and the adjacent reference value of the second image component corresponding to the current coding block before determining the scaling factor according to the weight coefficient; wherein the adjacent reference value of the second image component and the adjacent reference value of the third image component respectively represent the second image component parameter and the third image component parameter of the adjacent reference point.
16. The prediction device according to claim 15, wherein, The acquisition section is further configured to acquire, before obtaining the predicted value of the second image component corresponding to the current coding block through the scaling factor, the estimated value of the second image component and the reconstruction residual of the third image component corresponding to the current coding block; wherein, the estimated value of the second image component is obtained by performing component prediction based on the second image component corresponding to the current coding block; and the reconstruction residual of the third image component is used to characterize the prediction residual corresponding to the current coding block.
17. The prediction device according to claim 16, wherein, The scaling factor includes a third scaling parameter. The determining part is further configured to input the weighting coefficient, the adjacent reference value of the second image component, and the adjacent reference value of the third image component into the third preset factor calculation model to obtain the third ratio parameter.
18. The prediction device according to claim 14, wherein, The acquisition part is specifically configured to obtain the second image component prediction value based on the first ratio parameter, the second ratio parameter, and the first image component reconstruction value.
19. The prediction device according to claim 17, wherein, The acquisition part is further configured to obtain the predicted value of the second image component based on the third scaling parameter, the estimated value of the second image component, and the reconstruction residual of the third image component.
20. The prediction device according to claim 12, wherein, The prediction device further includes: a setting part. The setting section is configured such that after performing a difference operation between any one of the adjacent reference values of the first image component and each reconstructed value of the first image component to obtain the component difference corresponding to the first reference value, and before determining the scaling factor according to the weight coefficient, when the component difference corresponding to the first reference value is greater than a preset difference threshold, the weight coefficient of the adjacent reference point corresponding to the first reference value is set to zero.
21. A prediction device, wherein, The prediction device includes a processor, a memory storing processor-executable instructions, a communication interface, and a bus for connecting the processor, the memory, and the communication interface. When the instructions are executed, the processor implements the method as described in any one of claims 1-10.
22. A computer-readable storage medium having a program stored thereon for use in a prediction device, wherein, When the program is executed by the processor, it implements the method as described in any one of claims 1-10.
