Image prediction method, encoder, decoder, and storage medium
By preprocessing image components to balance statistical properties and building predictive models, the method addresses the inefficiencies in conventional cross-component prediction, enhancing prediction accuracy and reducing bit rates in video encoding and decoding.
Patent Information
- Application Number
- JP2024125167
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2019-03-25
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2039-10-12
AI Technical Summary
Conventional cross-component prediction techniques in video coding, such as CCLM, do not adequately account for the differences in statistical properties of image components, leading to low prediction efficiency.
An image prediction method that preprocesses image components to balance their statistical characteristics before performing cross-component prediction, using techniques like filtering, grouping, quantization, and resolution adjustment to build a predictive model for improved efficiency.
This approach enhances prediction efficiency by ensuring predicted values closely match true values, reducing prediction residuals and lowering bit rates during encoding and decoding, thus improving overall video image encoding and decoding efficiency.
Smart Images

Figure 2024147829000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the technical field of video encoding and decoding, and more particularly to an image prediction method, an encoder, a decoder and a storage medium. [Background technology]
[0002] The latest video coding standard H.266 / versatile video coding (VVC) allows the existence of cross-component prediction. CCLM prediction (cross-component linear model prediction) is one of the typical cross-component prediction techniques. The cross-component prediction technique can be used to predict one component (or its residual) through another component, for example, a chroma component can be predicted through a luma component, or a chroma component can be predicted through a chroma component, or a chroma component can be predicted through a chroma component.
[0003] Since different components have different statistical characteristics, there are differences in the statistical characteristics of different components. However, when performing component prediction, the conventional cross-component prediction technique does not take into consideration all of the differences, resulting in low prediction efficiency. Summary of the Invention
[0004] The embodiments of the present application provide an image prediction method, an encoder, a decoder and a storage medium, which balances the statistical properties of each component before performing component prediction, thereby not only improving prediction efficiency, but also improving the encoding and decoding efficiency of video images.
[0005] The technical solutions of the embodiments of the present application are as follows:
[0006] In a first aspect, an embodiment of the present application provides an image prediction method applied to an encoder or a decoder, the image prediction method includes: determining at least one image component of a current block in an image; pre-processing the at least one image component of the current block to obtain at least one pre-processed image component; and building a prediction model based on the at least one pre-processed image component. The prediction model is used to perform cross-component prediction on the at least one image component of the current block.
[0007] In a second aspect, an embodiment of the present application provides an image prediction method applied to an encoder or a decoder, the image prediction method includes: determining a reference value of a first image component of a current block in an image; filtering the reference value of the first image component of the current block to obtain a filtered reference value; and using the filtered reference value to calculate model parameters of a prediction model. The reference value of the first image component of the current block is a first image component value of a neighboring sample of the current block. The prediction model is used to map the first image component value of the current block to a second image component value of the current block, where the second image component and the first image component are different.
[0008] In a third aspect, an embodiment of the present application provides an encoder. The encoder includes a first determination unit, a first processing unit, and a first construction unit. The first determination unit is used to determine at least one image component of a current block in an image. The first processing unit is used to pre-process the at least one image component of the current block to obtain a pre-processed at least one image component. The first construction unit is used to build a prediction model based on the pre-processed at least one image component, and the prediction model is used to perform cross-component prediction on the at least one image component of the current block.
[0009] In a fourth aspect, an embodiment of the present application provides an encoder, the encoder comprising a first memory and a first processor, the first memory adapted to store a computer program executable on the first processor, the first processor adapted to execute the computer program and thereby perform the method of the first or second aspect.
[0010] In a fifth aspect, an embodiment of the present application provides a decoder. The decoder includes a second determination unit, a second processing unit, and a second construction unit. The second determination unit is used to determine at least one image component of a current block in an image. The second processing unit is used to pre-process the at least one image component of the current block to obtain a pre-processed at least one image component. The second construction unit is used to construct a prediction model based on the pre-processed at least one image component, and the prediction model is used to perform cross-component prediction on the at least one image component of the current block.
[0011] In a sixth aspect, an embodiment of the present application provides a decoder, the decoder comprising a second memory and a second processor, the second memory adapted to store a computer program executable on the second processor, the second processor adapted to execute the computer program and thereby perform the method of the first or second aspect.
[0012] In a seventh aspect, an embodiment of the present application provides a computer storage medium having stored thereon an image prediction program which, when executed by a first processor or a second processor, implements the method of the first or second aspect.
[0013] The embodiments of the present application provide an image prediction method, an encoder, a decoder, and a storage medium. The image prediction method includes: determining at least one image component of a current block in an image; pre-processing the at least one image component of the current block to obtain at least one pre-processed image component; and building a prediction model based on the at least one pre-processed image component. The prediction model is used to perform cross-component prediction on at least one image component of the current block. In this way, before performing cross-component prediction on at least one image component of the current block, the at least one image component is pre-processed to balance the statistical characteristics of each image component before performing cross-component prediction, thereby improving prediction efficiency. Since the predicted value of the image component predicted by the prediction model is close to the true value, the prediction residual of the image component is small, and the bit rate transmitted in the encoding and decoding process is small, which can improve the encoding and decoding efficiency of the video image. [Brief description of the drawings]
[0014] [Figure 1]FIG. 1 is a diagram showing the structure of a conventional cross-component prediction architecture according to an embodiment of the present application. [Diagram 2] FIG. 2 is a block diagram illustrating the structure of a video encoding system according to an embodiment of the present application. [Diagram 3] FIG. 3 is a block diagram illustrating the structure of a video decoding system according to an embodiment of the present application. [Figure 4] FIG. 4 is a flowchart of an image prediction method according to an embodiment of the present application. [Diagram 5] FIG. 5 is a flowchart of an image prediction method according to another embodiment of the present application. [Figure 6] FIG. 6 is a diagram illustrating the structure of an improved cross-component prediction architecture according to an embodiment of the present application. [Figure 7] FIG. 7 is a diagram illustrating the structure of an improved cross-component prediction architecture according to another embodiment of the present application. [Figure 8] FIG. 8 is a diagram showing the structure of an encoder according to an embodiment of the present application. [Figure 9] FIG. 9 is a diagram showing a specific hardware structure of an encoder according to an embodiment of the present application. [Figure 10] FIG. 10 is a diagram showing the structure of a decoder according to an embodiment of the present application. [Figure 11] FIG. 11 is a diagram showing a specific hardware structure of a decoder according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] In order to understand in detail the characteristics and technical contents of the embodiments of the present application, the technical solutions of the embodiments of the present application are described in detail below with reference to the drawings, and the attached drawings are for illustrative purposes only and do not limit the present application.
[0016] In a video image, coding blocks are generally denoted by a first image component, a second image component, and a third image component. The first image component, the second image component, and the third image component are a luma component, a blue chroma component, and a red chroma component, respectively. In particular, the luma component is generally denoted by the symbol Y, the blue chroma component is generally denoted by the symbol Cb or U, and the red chroma component is generally denoted by the symbol Cr or V. Thus, a video image can be represented in a YCbCr or YUV format.
[0017] In an embodiment of the present application, the first image component can be a luminance component, the second image component can be a blue chroma component, and the third image component can be a red chroma component, although embodiments of the present application are not specifically limited thereto.
[0018] In order to further improve the encoding and decoding performance, H.266 / VCC put forward the cross-component prediction technology of CCLM. The cross-component prediction technology of CCLM not only allows the prediction of the chroma component via the luma component (i.e., the prediction of the second image component via the first image component, or the prediction of the third image component via the first image component), but also allows the prediction of the luminance component via the chroma component (i.e., the prediction of the first image component via the second image component, or the prediction of the first image component via the third image component), and also allows the prediction between the chroma components (i.e., the prediction of the third image component via the second image component, or the prediction of the second image component via the third image component). In the following embodiments of the present application, the prediction of the second image component via the first image component is taken as an example, but the technical solution of the embodiments of the present application can also be applied to the prediction of other image components.
[0019] FIG. 1 is a diagram showing the structure of a conventional cross-component prediction architecture according to an embodiment of the present application. As shown in FIG. 1, a second image component (e.g., indicated by the Y component) is predicted via a first image component (e.g., indicated by the U component). When the YUV format adopted by the video image is 4:2:0 format, the resolutions of the Y component and the U component are different. In this case, in order to reach the target resolution of the component to be predicted, it is necessary to perform downsampling on the Y component or upsampling on the U component, so that prediction between components can be performed at the same resolution. In this example, the method of predicting a third image component (e.g., indicated by the V component) via the Y component is the same as that described above.
[0020] In FIG. 1, a conventional cross-component prediction architecture 10 includes a Y component of a coding block 110, a resolution adjustment unit 120, and a Y component of a coding block 130. 1 The Y component of the video image is shown as a coding block Y component 110 of size 2N×2N, where a bolder larger box is used to highlight the coding block Y component 110 and a surrounding solid grey circle represents the neighboring reference values of the coding block Y component 110. JPEG2024147829000002.jpg11160. The U component of the video image is shown as the U component 140 of the coding block of size N×N. Here, a bolder larger box is used to highlight the U component 140 of the coding block, and a solid grey circle around it represents the adjacent reference values of the U component 140 of the coding block. JPEG2024147829000003.jpg12160. Since the resolutions of the Y component and the U component are different, the resolution of the Y component is adjusted by the resolution adjustment unit 120 to obtain the Y component of the coding block of size N×N. 1 It is necessary to obtain the component 130 of the coding block Y. 1 For component 130, the bolder larger box indicates the Y 1 It is used to highlight the component 130, and the surrounding grey solid circle is the Y 1 Adjacent reference value of component 130 It is used to indicate JPEG2024147829000004.jpg13160. 1 Adjacent reference value of component 130 JPEG2024147829000005.jpg10160 and adjacent reference values of the U component 140 of the coding block A prediction model 150 can be constructed by using JPEG2024147829000006.jpg11160. 1 Based on the reconstructed sample values of the components 130 and the prediction model 150, the cross-component prediction unit 160 can perform component prediction, and finally output the predicted value of the U component.
[0021] For the conventional cross-component prediction architecture 10, when performing image component prediction, it does not take into consideration all aspects, for example, does not consider the difference in statistical properties of each image component, so that the prediction efficiency is low. In order to improve prediction efficiency, an embodiment of the present application provides an image prediction method. First, determine at least one image component of a current block in an image. Then, pre-process the at least one image component of the current block to obtain the pre-processed at least one image component. Based on the pre-processed at least one image component, build a prediction model, and the prediction model is used to perform cross-component prediction on the at least one image component of the current block. In this way, before performing cross-component prediction on the at least one image component of the current block, first pre-process the at least one image component to balance the statistical properties of each image component before performing cross-component prediction, which not only improves prediction efficiency, but also improves the encoding and decoding efficiency of video images.
[0022] Hereinafter, each embodiment of the present application will be described in detail with reference to the drawings.
[0023] 2 is a block diagram showing the structure of a video encoding system according to an embodiment of the present application. As shown in FIG. 2, the video encoding system 20 includes a transform and quantization unit 201, an intra estimation unit 202, an intra prediction unit 203, a motion compensation unit 204, a motion estimation unit 205, an inverse transform and inverse quantization unit 206, a filter control analysis unit 207, a filtering unit 208, a coding unit 209, a decoded image buffer unit 210, etc. The filtering unit 208 can realize deblocking (DBK) filtering and sample adaptive offset (SAO) filtering. The coding unit 209 can realize header information coding and CABAC (context-based adaptive binary arithmetic coding). For an input original video signal, one coding block can be obtained by dividing a coding tree unit (CTU). Then, for the residual sample information obtained by intra prediction or inter prediction, the coding block is transformed by the transform and quantization unit 201, the residual information is transformed from the sample domain to the transform domain, and the obtained transform coefficients are quantized to further reduce the bit rate. The intra estimation unit 202 and the intra prediction unit 203 are used to perform intra prediction on the coding block. To be clear, the intra estimation unit 202 and the intra prediction unit 203 are used to determine the intra prediction mode used to encode the coding block. The motion compensation unit 204 and the motion estimation unit 205 are used to perform inter-frame predictive coding of the received coding block with respect to one or more blocks in one or more reference frames to provide temporal prediction information. The motion estimation performed by the motion estimation unit 205 is a process of generating a motion vector, which can estimate the motion of the coding block.The motion compensation unit 204 is used to perform motion compensation based on the motion vector determined by the motion estimation unit 205. After determining the intra prediction mode, the intra prediction unit 203 is further used to provide the selected intra prediction data to the coding unit 209, and the motion estimation unit 205 is used to send the calculated motion vector data to the coding unit 209. The inverse transform and inverse quantization unit 206 is used to reconstruct the coding block. The residual block is reconstructed in the sample domain, and the blocking artifacts of the reconstructed residual block are removed via the filter control analysis unit 207 and the filtering unit 208, and then the reconstructed residual block is added to one prediction block in the frame of the decoded image buffer unit 210 to generate a reconstructed video coding block. The coding unit 209 is used to code various encoding parameters and quantized transform coefficients. In the coding algorithm based on CABAC, the context content can be based on the neighboring coding blocks, and the information indicating the determined intra prediction mode can be coded to output a bitstream of the video signal. The decoded picture buffer unit 210 is used to store reconstructed video coding blocks for prediction reference. As the encoding of a video image progresses, new reconstructed coding blocks are constantly generated, and all these reconstructed coding blocks are stored in the decoded picture buffer unit 210.
[0024] FIG. 3 is a block diagram showing the structure of a video decoding system according to an embodiment of the present application. As shown in FIG. 3, the video decoding system 30 includes a decoding unit 301, an inverse transform and inverse quantization unit 302, an intra prediction unit 303, a motion compensation unit 304, a filtering unit 305, a decoded image cache unit 306, etc. The decoding unit 301 can realize header information decoding and CABAC decoding. The filtering unit 305 can realize DBK filtering and SAO filtering. After an input video signal is encoded (as shown in FIG. 2), it outputs a bitstream of the video signal. The bitstream is input to the video decoding system 30. First, a decoded transform coefficient is obtained through the decoding unit 301. The decoded transform coefficient is processed by the inverse transform and inverse quantization unit 302 to generate a residual block in the sample domain. The intra prediction unit 303 can be used to generate prediction data of a current video coding block to be decoded based on a determined intra prediction mode and data from a previous decoded block of a current frame or image. The motion compensation unit 304 is used to determine prediction information of the video coding block to be decoded by analyzing the motion vectors and other related syntax elements, and uses the prediction information to generate a prediction block of the video coding block being decoded. A decoded video block is formed by summing the residual block from the inverse transform and inverse quantization unit 302 and the corresponding prediction block generated by the intra prediction unit 303 or the motion compensation unit 304. Blocking artifacts of the decoded video block can be removed via the filtering unit 305 to improve the quality of the video. The decoded video block is then stored in the decoded picture cache unit 306.The decoded image cache unit 306 is used to store reference images used for subsequent intra prediction or motion compensation, and is also used to output a video signal, i.e., to obtain a restored original video signal.
[0025] The embodiments of the present application may be applied to the intra prediction unit 203 shown in Fig. 2 and the intra prediction unit 303 shown in Fig. 3. In other words, the embodiments of the present application may be applied to both a video encoding system and a video decoding system, although the embodiments of the present application are not limited in this regard.
[0026] Based on the application scenario example shown in Figure 2 or Figure 3, please refer to Figure 4, which is a flowchart of an image prediction method according to an embodiment of the present application. The method may include the following contents:
[0027] S401, determining at least one image component of a current block in an image.
[0028] S402, pre-processing is performed on at least one image component of a current block to obtain at least one pre-processed image component.
[0029] S403, constructing a prediction model based on the pre-processed at least one image component, the prediction model being used to perform cross-component prediction on the at least one image component of the current block.
[0030] It should be noted that a video image can be divided into a number of image blocks, and each image block currently to be coded can be called a coding block. Each coding block can include a first image component, a second image component, and a third image component. The current block is the coding block currently to perform prediction of the first image component, the second image component, or the third image component in the video image.
[0031] It should also be noted that the image prediction method according to the embodiments of the present application may be applied to a video encoding system or a video decoding system, or may be applied simultaneously to both a video encoding system and a video decoding system, and the embodiments of the present application are not specifically limited thereto.
[0032] In an embodiment of the present application, first, determine at least one image component of a current block in an image. Then, pre-process the at least one image component of the current block to obtain at least one pre-processed image component. Based on the pre-processed at least one image component, build a prediction model, and the prediction model is used to perform cross-component prediction on the at least one image component of the current block. In this way, before performing cross-component prediction on the at least one image component of the current block, first pre-process the at least one image component to balance the statistical characteristics of each image component before performing cross-component prediction, which not only improves prediction efficiency, but also improves the encoding and decoding efficiency of video images.
[0033] Furthermore, different image components have different statistical characteristics, and there are differences in the statistical characteristics of each image component. For example, the luma component has rich texture characteristics, while the chroma component tends to be more uniform and flat. The embodiment of the present application can achieve the purpose of balancing the statistical characteristics of each image component by considering the differences in the statistical characteristics of each image component. In some embodiments, after determining at least one image component of the current block in the image, the method can further include the following contents.
[0034] Performing characteristic statistics on at least one image component of the current block, the at least one image component including the first image component and / or the second image component.
[0035] According to the result of the characteristic statistics, a reference value of a first image component of the current block and / or a reference value of a second image component of the current block is obtained, where the first image component is a component used for prediction when constructing a prediction model, and the second image component is a component predicted when constructing a prediction model.
[0036] At least one image component of the current block can be a first image component, can be a second image component, or can be a first image component and a second image component. The first image component is a component used for prediction when building a prediction model, also called a reference image component. The second image component is a component predicted when building a prediction model, also called a prediction image component.
[0037] Assuming that prediction from a luma component to a chroma component is realized through a prediction model, the component used for prediction when building the prediction model is the luma component, and the component predicted when building the prediction model is the chroma component, i.e., the first image component is the luma component, and the second image component is the chroma component. Alternatively, assuming that prediction from a chroma component to a luma component is realized through a prediction model, the component used for prediction when building the prediction model is the chroma component, and the component predicted when building the prediction model is the luma component, i.e., the first image component is the chroma component, and the second image component is the luma component.
[0038] In this way, by performing the property statistics on at least one image component of the current block, a property statistics result can be obtained, and based on the property statistics result, a reference value for a first image component of the current block and / or a reference value for a second image component of the current block can be obtained.
[0039] Further, differences in statistical characteristics of each image component can be taken into consideration to improve prediction efficiency. That is, before performing cross-component prediction on at least one image component through a prediction model, at least one image component can be pre-processed based on the statistical characteristics of the image component, such as filtering, grouping, value modification, quantization, or dequantization. In some embodiments, for S402, pre-processing at least one image component of a current block to obtain at least one pre-processed image component includes: performing a first processing on the first image component in a preset processing mode based on a reference value of a first image component of the current block and / or a reference value of a second image component of the current block; and obtaining a processed value of the first image component of the current block based on a first processing result. The preset processing mode includes at least one of filtering, grouping, value modification, quantization, and dequantization.
[0040] What should be described is that, based on the result of the characteristic statistics of at least one image component of the current block, a reference value of the first image component of the current block and / or a reference value of the second image component of the current block can be obtained, and then a first processing can be performed on the first image component in a preset processing mode. To be specific, the first processing can be performed on the first image component using filtering, or the first processing can be performed on the first image component using grouping, or the first processing can be performed on the first image component using value modification, or the first processing can be performed on the first image component using quantization, or the first processing can be performed on the first image component using inverse quantization (also called dequantization), and the embodiments of the present application are not specifically limited.
[0041] It should be noted that for processing the first image component, it can be processed on the adjacent reference sample values of the first image component, or can be processed on the reconstructed sample values of the first image component, or can be processed on other sample values of the first image component. In the embodiment of the present application, it is set according to the actual situation of the prediction model, and the embodiment of the present application is not specifically limited.
[0042] For example, assuming that the prediction model is to predict the chroma component through the luminance component, in order to improve prediction efficiency, i.e., to improve the accuracy of the predicted value, it is necessary to process the luminance component and / or the chroma component in the preset processing mode, for example, to process the reconstructed sample value corresponding to the luminance component in the preset processing mode. If the preset processing mode adopts a value correction process, since the statistical characteristics of the luminance component and the chroma component are different, a deviation factor can be obtained according to the difference between the statistical characteristics of the two image components. Then, a value correction process is performed on the luminance component using the deviation factor (the reconstructed sample value corresponding to the luminance component and the deviation factor are summed), and the statistical characteristics of each image component are balanced before performing cross-component prediction to obtain a processed luminance component. As a result, the predicted value of the chroma component predicted by the prediction model is closer to the true value of the chroma component. If the preset processing mode adopts a filtering process, since the statistical characteristics of the luminance component and the chroma component are different, a filtering process is performed on the luminance component according to the difference between the statistical characteristics of the two image components, and the statistical characteristics of each image component are balanced before performing cross-component prediction to obtain a processed luminance component. As a result, the predicted value of the chroma component predicted by the prediction model is closer to the true value of the chroma component. When the preset processing mode adopts grouping processing, since the statistical properties of the luminance component and the chroma component are different, according to the difference between the statistical properties of the two image components, a grouping processing can be performed on the luminance component to balance the statistical properties of each image component before performing cross-component prediction. The predicted value of the chroma component predicted by the prediction model built based on the grouped luminance component is closer to the true value of the chroma component.Furthermore, since the process of predicting the chroma component using the prediction model involves a quantization process and an inverse quantization process, and the statistical characteristics of the luminance component and the chroma component are different, differences in the quantization process and the inverse quantization process may occur depending on the differences in the statistical characteristics of the two image components. In this case, if the preset processing mode adopts a quantization process, a quantization process is performed on the luminance component and / or the chroma component, and the statistical characteristics of each image component are balanced before performing cross-component prediction, to obtain a processed luminance component and / or a processed chroma component. As a result, the predicted value of the chroma component predicted by the prediction model is closer to the true value of the chroma component. If the preset processing mode adopts a non-quantization process, a non-quantization process is performed on the luminance component and / or the chroma component, and the statistical characteristics of each image component are balanced before performing cross-component prediction, to obtain a processed luminance component and / or a processed chroma component. As a result, the predicted value of the chroma component predicted by the prediction model is closer to the true value of the chroma component. Therefore, the accuracy of the predicted value can be improved, that is, the prediction efficiency can be improved. Since the predicted value of the chroma component predicted by the prediction model is closer to the true value of the chroma component, the prediction residual of the chroma component is smaller, the bit rate transmitted in the encoding and decoding process is reduced, and the encoding and decoding efficiency of the video image can be improved.
[0043] In this way, the reference value of the first image component of the current block and / or the reference value of the second image component of the current block can be obtained, and then the first image component can be processed in a preset processing mode based on the reference value of the first image component of the current block to balance the statistical characteristics of each image component before performing cross-component prediction to obtain a processed value of the first image component of the current block. The first image component can also be processed in a preset processing mode based on the reference value of the second image component of the current block to balance the statistical characteristics of each image component before performing cross-component prediction to obtain a processed value of the first image component of the current block. Based on the reference value of the first image component of the current block and the reference value of the second image component of the current block, the first image component can be processed in a preset processing mode to balance the statistical characteristics of each image component before performing cross-component prediction to obtain a processed value of the first image component of the current block. Based on the processed value of the first image component of the current block, the predicted value of the second image component predicted by the prediction model is closer to the true value. The prediction model can achieve cross-component prediction by predicting the second image component by the first image component.
[0044] In addition, since each image component has a different resolution, in order to conveniently build a prediction model, it is necessary to adjust the resolution of the image component (including upsampling for the image component or downsampling for the image component), thus reaching the target resolution. Specifically, using the preset processing mode, performing the first processing for the first image component and adjusting the resolution can be cascaded. Using the preset processing mode, performing the first processing for the first image component and adjusting the resolution can also be jointly processed. They will be described separately below.
[0045] Optionally, in some embodiments, before pre-processing at least one image component of the current block to obtain at least one pre-processed image component, the method further includes:
[0046] If the resolution of the first image component of the current block and the resolution of the second image component of the current block are different, the resolution of the first image component is adjusted, where adjusting the resolution includes upsampling or downsampling.
[0047] Update the reference value of the first image component of the current block based on the resolution of the adjusted first image component, where the resolution of the adjusted first image component and the resolution of the adjusted second image component are the same.
[0048] It should be noted that resolution adjustment, or resolution mapping, refers to mapping the resolution of a first image component to the resolution of an adjusted first image component, where resolution adjustment or resolution mapping can be achieved by upsampling or downsampling.
[0049] It should be noted that, when performing the first processing on the first image component using the preset processing mode and adjusting the resolution can be cascaded, the resolution can be adjusted before performing the first processing on the first image component using the preset processing mode, i.e., before pre-processing on at least one image component of the current block, if the resolution of the first image component of the current block and the resolution of the second image component of the current block are different, the resolution of the first image component can be adjusted, and the reference value of the first image component of the current block is updated based on the adjusted resolution of the first image component.
[0050] Optionally, in some embodiments, after pre-processing at least one image component of the current block to obtain at least one pre-processed image component, the method further includes:
[0051] If the resolution of the first image component of the current block and the resolution of the second image component of the current block are different, the resolution of the first image component is adjusted, where adjusting the resolution includes upsampling or downsampling.
[0052] Update the processed value of the first image component of the current block based on the adjusted resolution of the first image component, where the adjusted resolution of the first image component and the adjusted resolution of the second image component are the same.
[0053] It should be noted that, when performing the first processing on the first image component using the preset processing mode and adjusting the resolution can be cascaded, the resolution can be adjusted after performing the first processing on the first image component using the preset processing mode, i.e., after pre-processing on at least one image component of the current block, if the resolution of the first image component of the current block and the resolution of the second image component of the current block are different, the resolution of the first image component can be adjusted, and the processing value of the first image component of the current block is updated based on the adjusted resolution of the first image component.
[0054] Optionally, in some embodiments, pre-processing the at least one image component of the current block to obtain the pre-processed at least one image component includes:
[0055] When the resolution of the first image component of the current block and the resolution of the second image component of the current block are different, a second processing is performed on the first image component based on the reference value of the first image component of the current block and / or the reference value of the second image component of the current block, the second processing including upsampling and associated processing of a preset processing mode, or downsampling and associated processing of a preset processing mode.
[0056] Obtain a processed value of the first image component of the current block according to the second processing result, where the resolution of the processed first image component of the current block and the resolution of the second image component of the current block are the same.
[0057] When using the preset processing mode, performing the first processing on the first image component and adjusting the resolution can be jointly processed, a processed value of the first image component of the current block can be obtained after both the first processing and the resolution adjustment are performed. That is, when the resolution of the first image component of the current block and the resolution of the second image component of the current block are different, a second processing is performed on the first image component based on the reference value of the first image component of the current block and / or the reference value of the second image component of the current block. The second processing combines two processing methods, the first processing and the resolution adjustment. The second processing includes upsampling and the associated processing of the preset processing mode, or downsampling and the associated processing of the preset processing mode, etc. In this way, a processed value of the first image component of the current block can be obtained based on the result of the second processing, and the resolution of the processed first image component of the current block and the resolution of the second image component of the current block are the same.
[0058] For example, assuming that the prediction model is still to predict the chroma component via the luma component, the image component to be predicted is the chroma component, and the image component to be used is the luma component. Since the resolutions of the luma component and the chroma component are different, after obtaining the target resolution of the chroma component, the resolution of the luma component does not match the target resolution, so it is necessary to adjust the resolution of the luma component. For example, downsampling is performed on the luma component so that the resolution of the adjusted luma component matches the target resolution. Conversely, when predicting the luma component via the chroma component, after obtaining the target resolution of the luma component, the resolution of the chroma component does not match the target resolution, so it is necessary to adjust the resolution of the chroma component. For example, upsampling is performed on the chroma component so that the resolution of the adjusted chroma component matches the target resolution. When predicting the red chroma component via the blue chroma component, after obtaining the target resolution of the red chroma component, the resolution of the blue chroma component matches the target resolution, so there is no need to adjust the resolution of the blue chroma component, and the resolution of the blue chroma component already matches the target resolution. In this way, prediction of the image component can be performed at the same resolution later.
[0059] Further, after obtaining the at least one pre-processed image component, it is necessary to determine model parameters of the predictive model based on the at least one pre-processed image component to build a predictive model. In some embodiments, S403, building a predictive model based on the at least one pre-processed image component includes:
[0060] Model parameters of the predictive model are determined in response to the processed values of the first image component and the reference values of the second image component.
[0061] A predictive model is constructed based on the model parameters.
[0062] In the embodiment of the present application, the prediction model may be a linear model, for example, a cross-component prediction technique such as CCLM prediction. The prediction model may also be a non-linear model, for example, a cross-component prediction technique such as Multi-Model CCLM (Multiple Model CCLM, MMLM) prediction, which is composed of multiple linear models. Although the embodiment of the present application will be described using an example in which the prediction model is a linear model, the prediction method according to the embodiment of the present application may also be applied to a non-linear model.
[0063] Specifically, the model parameters are: Contains JPEG2024147829000007.jpg11160. JPEG2024147829000008.jpg8160 can be calculated using various methods, such as a preset factor calculation model constructed using the least squares method, a preset factor calculation model constructed using maximum and minimum values, or a preset factor calculation model constructed using other methods, and the embodiments of the present application are not specifically limited thereto.
[0064] Taking the preset factor calculation model constructed by the least squares method as an example, as shown in Equation (1), the model parameters can be derived by minimizing regression error of adjacent reference sample values (e.g., a first image component adjacent reference value and a second image component adjacent reference value, where the first image component adjacent reference value and the second image component adjacent reference value are obtained after preprocessing) around the current block.
number
[0065] JPEG2024147829000010.jpg16160 indicates the first image component neighboring reference value corresponding to the left edge and the top edge of the downsampled current block; JPEG2024147829000011.jpg12160 indicates the second image component adjacent reference value corresponding to the left edge and the top edge of the current block, and N indicates the edge length of the current block of the second image component; JPEG2024147829000012.jpg12160, which is calculated using formula (1). JPEG2024147829000013.jpg11160 can be obtained.
[0066] Taking the preset factor calculation model constructed by the maximum and minimum values as an example, a simplified model parameter derivation method is provided. Specifically, as shown in the preset factor calculation model in formula (2), the model parameters can be derived based on the principle of searching for the maximum first image component adjacent reference value and the minimum first image component adjacent reference value, and then determining a line with two points.
number
[0067] JPEG2024147829000015.jpg10160 indicates the maximum and minimum values retrieved from the first image component neighboring reference values corresponding to the left and top edges of the downsampled current block; JPEG2024147829000016.jpg14160 shows the second image component adjacent reference value corresponding to the reference sample at the position corresponding to JPEG2024147829000016.jpg14160. Based on JPEG2024147829000017.jpg15160, by calculating equation (2), You can also obtain JPEG2024147829000018.jpg10160.
[0068] After obtaining JPEG2024147829000019.jpg11160, a prediction model can be constructed. Specifically, Assuming that the second image component is predicted through the first image component based on JPEG2024147829000020.jpg11160, the constructed prediction model is shown in Equation (3).
number
[0069] JPEG2024147829000022.jpg13160 indicates the position coordinates of the sample in the current block, JPEG2024147829000023.jpg12160 represents the horizontal direction, JPEG2024147829000024.jpg12160 represents the vertical direction, JPEG2024147829000025.jpg14160 has the position coordinates in the current block represents the predicted value of the second image component corresponding to the sample JPEG2024147829000026.jpg14160, JPEG2024147829000027.jpg14160 has the same position coordinates in the current block (downsampled). JPEG2024147829000028.jpg represents the reconstructed value of the first image component corresponding to the sample 11160.
[0070] In some embodiments, after constructing a prediction model in S403, the method may further include:
[0071] Based on the prediction model, a cross-component prediction is performed on the second image component of the current block to obtain a predicted value of the second image component of the current block.
[0072] It should be noted that, based on the prediction model shown in equation (3), the chroma component can be predicted using the luminance component to obtain a predicted value of the chroma component.
[0073] Specifically, after constructing a prediction model for a current block, prediction of an image component can be performed according to the prediction model. In one example, a first image component can be used to predict a second image component, for example, a predicted value of the chroma component can be obtained by predicting a chroma component using a luma component. In another example, a second image component can be used to predict a first image component, for example, a predicted value of the chroma component can be obtained by predicting a chroma component using a luma component. In yet another example, a second image component can be used to predict a third image component, for example, a predicted value of the red chroma component can be obtained by predicting a red chroma component using a blue chroma component. In an embodiment of the present application, before constructing a prediction model, a pre-processing is performed on at least one image component of the current block, so as to balance the statistical characteristics of each image component before performing cross-component prediction, and then the processed image component is used to construct a prediction model, thus improving prediction efficiency.
[0074] The image prediction method provided by the embodiment of the present application includes: determining at least one image component of a current block in an image; pre-processing the at least one image component of the current block to obtain at least one pre-processed image component; and constructing a prediction model based on the at least one pre-processed image component. The prediction model is used to perform cross-component prediction on the at least one image component of the current block. Thus, before performing cross-component prediction on the at least one image component of the current block, the at least one image component is pre-processed to balance the statistical characteristics of each image component before performing cross-component prediction, thereby improving prediction efficiency. Since the predicted value of the image component predicted by the prediction model is close to the true value, the prediction residual of the image component is small, and the bit rate transmitted in the encoding and decoding process is small, which can improve the encoding and decoding efficiency of the video image.
[0075] Based on the example application scenario shown in Figure 2 or Figure 3, please refer to Figure 5, which is a flowchart of an image prediction method according to another embodiment of the present application. The method may include the following contents:
[0076] S501, determining a reference value of a first image component of a current block in an image, the reference value of the first image component of the current block being a first image component value of an adjacent sample of the current block.
[0077] S502, filtering the reference value of the first image component of the current block to obtain a filtered reference value.
[0078] S503, using the filtered reference values to calculate model parameters of a prediction model, where the prediction model is used to map a first image component value of the current block to a second image component value of the current block, where the second image component and the first image component are different.
[0079] It should be noted that a video image can be divided into a number of image blocks, and each image block currently to be coded can be called a coding block. Each coding block can include a first image component, a second image component, and a third image component. The current block is the coding block currently to perform prediction of the first image component, the second image component, or the third image component in the video image.
[0080] It should also be noted that the image prediction method according to the embodiments of the present application may be applied to a video encoding system or a video decoding system, or may be applied simultaneously to both a video encoding system and a video decoding system, and the embodiments of the present application are not limited thereto.
[0081] In an embodiment of the present application, first, a reference value of a first image component of a current block in an image is determined. The reference value of the first image component of the current block is a first image component value of an adjacent sample of the current block. Then, the reference value of the first image component of the current block is filtered to obtain a filtered reference value. Then, the filtered reference value is used to calculate model parameters of a prediction model. The prediction model is used to map the first image component value of the current block to a second image component value of the current block, where the second image component and the first image component are different. In this way, by filtering at least one image component before performing cross-component prediction on at least one image component of the current block, and balancing the statistical characteristics of each image component before performing cross-component prediction, prediction efficiency can be improved, and the encoding and decoding efficiency of video images can also be improved.
[0082] Further, in some embodiments, for S503, calculating model parameters of the predictive model using the filtered reference values includes: performing characteristic statistics on at least one image component of the image or at least one image component of the current block, the at least one image component including the first image component and / or the second image component; Obtaining a reference value of a second image component of the current block according to the result of the characteristic statistics, and the reference value of the second image component of the current block is a second image component value of an adjacent sample of the current block; calculating model parameters of a prediction model using the filtered reference values and the reference values of the second image component of the current block; Includes.
[0083] Different image components have different statistical characteristics, and there are differences in the statistical characteristics of each image component. For example, the luma component has rich texture characteristics, while the chroma component tends to be more uniform and flat. The embodiment of the present application can achieve the purpose of balancing the statistical characteristics of each image component by considering the differences in the statistical characteristics of each image component.
[0084] After considering the difference of the statistical characteristics of each image component, the reference value of the second image component of the current block is obtained. Then, model parameters of a prediction model are calculated according to the filtered reference value and the reference value of the second image component of the current block, and a prediction model is constructed according to the calculated model parameters. Since the predicted value of the image component predicted by the prediction model is close to the true value, the prediction residual of the image component is small, and the bit rate transmitted in the encoding and decoding process is small, so that the encoding and decoding efficiency of the video image can be improved.
[0085] Further, in some embodiments, for S502, filtering the reference value of the first image component of the current block to obtain a filtered reference value includes: performing a first adjustment operation on the reference value of the first image component of the current block to update the reference value of the first image component of the current block if the resolution of the second image component of the image and the resolution of the first image component of the image are different; filtering a reference value of a first image component of the current block to obtain a filtered reference value; Including, The first adjustment process includes one of downsampling filtering or upsampling filtering.
[0086] In some embodiments, the method further comprises:
[0087] Based on the reference value of the first image component of the current block, the reference value is filtered in a preset processing mode, the preset processing mode including at least one of filtering, grouping, value modification, quantization, dequantization, low-pass filtering, and adaptive filtering.
[0088] In some embodiments, for S502, filtering the reference value of the first image component of the current block to obtain a filtered reference value includes: When the resolution of the second image component of the image is different from the resolution of the first image component of the image, a second adjustment process is performed on the reference value of the second image component of the current block to update the reference value of the second image component of the current block, and the second adjustment process includes downsampling and smooth filtering, or upsampling and smooth filtering.
[0089] Since each image component has a different resolution, in order to conveniently build a prediction model, it is necessary to adjust the resolution of the image component (including upsampling for the image component or downsampling for the image component) and thus reach the target resolution. Specifically, the resolution adjustment, i.e., resolution mapping, refers to mapping the resolution of a first image component to the resolution of the adjusted first image component. Here, the resolution adjustment or resolution mapping can be achieved by upsampling or downsampling.
[0090] Performing a filtering operation on the first image component and adjusting the resolution can be cascaded, for example, adjusting the resolution before performing a filtering operation on the first image component, or performing a filtering operation on the first image component and then adjusting the resolution. In other examples, performing a filtering operation on the first image component and adjusting the resolution (i.e., the first adjustment operation) can be joint operations.
[0091] In some embodiments, for S503, calculating model parameters of the predictive model utilizing the filtered reference values includes: determining a reference value of a second image component of the current block; calculating model parameters of a prediction model using the filtered reference values and the reference values of the second image component of the current block; Including, The reference values of the second image component of the current block are the second image component values of the neighboring samples of the current block.
[0092] In some embodiments, the method further includes, after S503:
[0093] Based on the prediction model, a value of the first image component of the current block is mapped to obtain a predicted value of the second image component of the current block.
[0094] It should be noted that the reference value of the second image component of the current block is the second image component value of the adjacent sample of the current block. In this way, after determining the reference value of the second image component, calculate the model parameters of the prediction model according to the filtered reference value and the determined reference value of the second image component, and build a prediction model according to the calculated and obtained model parameters, and the predicted value of the image component predicted by the prediction model is close to the true value, so that the prediction residual of the image component is small, and the bit rate transmitted in the encoding and decoding process is small, and the encoding and decoding efficiency of the video image can be improved.
[0095] FIG. 6 is a diagram showing the structure of an improved cross-component prediction architecture according to an embodiment of the present application. As shown in FIG. 6, based on the conventional cross-component prediction architecture 10 shown in FIG. 1, the improved cross-component prediction architecture 60 further includes a processing unit 610. The processing unit 610 is used to perform related processing on at least one image component before the cross-component prediction unit 160. The processing unit 610 can be located before the resolution adjustment unit 120, or can be located after the resolution adjustment unit 120. As shown in FIG. 6, the processing unit 610 is located after the resolution adjustment unit 120. By performing related processing such as filtering, grouping, value correction, quantization and inverse quantization on the Y component, a more accurate prediction model can be built, and the predicted value of the U component obtained by prediction is closer to the true value.
[0096] Suppose we predict the U component through the Y component based on the improved cross-component prediction architecture 60 shown in FIG. 6 . Since the resolutions of the Y component 110 of the current block and the U component 140 of the current block are different, the resolution of the Y component is adjusted by the resolution adjustment unit 120 to obtain the Y component of the current block having the same resolution as the U component 140 of the current block.1 Before this, the relevant processing is performed on the Y component by the processing unit 610 to obtain the Y component of the current block. 1 Component 130 can be obtained. Next, Y of the current block 1 Adjacent reference value of component 130 JPEG2024147829000029.jpg14160 and the adjacent reference value of the U component 140 of the current block JPEG2024147829000030.jpg11160 can be used to build a prediction model 150. 1 Based on the Y component reconstructed sample value of the component 130 and the prediction model 150, the cross-component prediction unit 160 can perform image component prediction to obtain a predicted value of the U component. Before the cross-component prediction, relevant processing is performed on the Y component, and the prediction model 150 is constructed based on the processed luminance component, and the predicted value of the U component predicted by the prediction model 150 is close to the true value, so that the prediction efficiency can be improved, and the encoding and decoding efficiency of the video image can also be improved.
[0097] In an embodiment of the present application, the resolution adjustment unit 120 and the processing unit 610 can perform cascade processing on the image components (for example, the resolution adjustment is performed by the resolution adjustment unit 120 and then the related processing is performed by the processing unit 610, or the related processing is performed by the processing unit 610 and then the resolution adjustment is performed by the resolution adjustment unit 120), or can perform joint processing on the image components (the resolution adjustment unit 120 and the processing unit 610 are combined and processed). Figure 7 is a diagram showing the structure of an improved cross-component prediction architecture according to another embodiment of the present application. Based on the improved cross-component prediction architecture 60 shown in Figure 6, the improved cross-component prediction architecture shown in Figure 7 further includes a combination unit 710, but the resolution adjustment unit 120 and the processing unit 610 are omitted. In other words, the combination unit 710 has the functions of both the resolution adjustment unit 120 and the processing unit 610, and can not only perform resolution adjustment on at least one image component, but also perform related processing on at least one image component, such as filtering, grouping, value modification, quantization and dequantization, etc. In this way, a more accurate prediction model 150 can be built, and the predicted value of the U component predicted by the prediction model 150 is closer to the actual value, which can improve the prediction efficiency, and can also improve the encoding and decoding efficiency of the video image.
[0098] Furthermore, in an embodiment of the present application, when the image prediction method is applied to an encoder, the model parameters of a prediction model can be calculated and obtained according to the reference value of the image component to be predicted of the current block and the reference value of the image component to be referenced of the current block.The calculated and obtained model parameters are then written into a bitstream.The bitstream is sent from the encoder to a decoder.When the image prediction method is applied to a decoder, the model parameters of the prediction model can be obtained by analyzing the bitstream, and a prediction model is thus constructed, and cross-component prediction is performed on at least one image component of the current block using the prediction model.
[0099] The image prediction method provided by the embodiment of the present application includes: determining a reference value of a first image component of a current block in an image; filtering the reference value of the first image component of the current block to obtain a filtered reference value; and using the filtered reference value to calculate model parameters of a prediction model. The reference value of the first image component of the current block is a first image component value of an adjacent sample of the current block. The prediction model is used to map the first image component value of the current block to a second image component value of the current block, where the second image component and the first image component are different. Thus, before performing cross-component prediction on at least one image component of the current block, pre-processing is performed on at least one image component to balance the statistical characteristics of each image component before performing cross-component prediction, thereby improving prediction efficiency. Since the predicted value of the image component predicted by the prediction model is close to the true value, the prediction residual of the image component is small, and the bit rate transmitted in the encoding and decoding process is small, which can improve the encoding and decoding efficiency of the video image.
[0100] Based on the same inventive concept as the above embodiment, refer to Fig. 8, which is a diagram showing the structure of an encoder according to an embodiment of the present application. The encoder 80 includes a first determining unit 801, a first processing unit 802 and a first constructing unit 803.
[0101] The first determining unit 801 is used for determining at least one image component of a current block in an image.
[0102] The first processing unit 802 is used for pre-processing at least one image component of a current block to obtain at least one pre-processed image component.
[0103] The first construction unit 803 is used to construct a prediction model based on the pre-processed at least one image component. The prediction model is used to perform cross-component prediction on the at least one image component of the current block.
[0104] In the above technical solution, as shown in FIG. 8 , the encoder 80 may further include a first statistics unit 804 and a first acquisition unit 805 .
[0105] The first statistics unit 804 is used for performing characteristic statistics on at least one image component of the current block, where the at least one image component includes a first image component and / or a second image component.
[0106] The first obtaining unit 805 is used for obtaining a reference value of a first image component of the current block and / or a reference value of a second image component of the current block according to the result of the characteristic statistics, where the first image component is a component used for prediction when constructing a prediction model, and the second image component is a component predicted when constructing a prediction model.
[0107] In the above technical solution, the first processing unit 802 is further used for performing a first processing on the first image component in a preset processing mode according to the reference value of the first image component of the current block and / or the reference value of the second image component of the current block, where the preset processing mode includes at least one of filtering, grouping, value modification, quantization, or dequantization.
[0108] The first obtaining unit 805 is further used for obtaining a processed value of the first image component of the current block according to the first processing result.
[0109] In the above technical solution, as shown in FIG. 8 , the encoder 80 may further include a first adjusting unit 806 and a first updating unit 807 .
[0110] The first adjustment unit 806 is used to adjust the resolution of the first image component of the current block when the resolution of the first image component of the current block is different from the resolution of the second image component of the current block. Adjusting the resolution includes upsampling or downsampling.
[0111] The first update unit 807 is used for updating the reference value of the first image component of the current block according to the resolution of the adjusted first image component, where the resolution of the adjusted first image component and the resolution of the adjusted second image component are the same.
[0112] In the above technical solution, the first adjusting unit 806 is further used to adjust the resolution of the first image component when the resolution of the first image component of the current block is different from the resolution of the second image component of the current block, and adjusting the resolution includes upsampling or downsampling.
[0113] The first update unit 807 is further used for updating the processed value of the first image component of the current block according to the resolution of the adjusted first image component, where the resolution of the adjusted first image component and the resolution of the adjusted second image component are the same.
[0114] In the above technical solution, the first adjusting unit 806 is further used for performing a second processing on the first image component according to the reference value of the first image component of the current block and / or the reference value of the second image component of the current block when the resolution of the first image component of the current block is different from the resolution of the second image component of the current block, the second processing including upsampling and a related processing of a preset processing mode, or downsampling and a related processing of a preset processing mode.
[0115] The first obtaining unit 805 is further used for obtaining a processed value of the first image component of the current block according to the second processing result, where the resolution of the processed first image component of the current block and the resolution of the second image component of the current block are the same.
[0116] In the above technical solution, the first determining unit 801 is further used for determining model parameters of a prediction model according to the processed value of the first image component and the reference value of the second image component.
[0117] The first construction unit 803 is used to construct a predictive model based on the model parameters.
[0118] In the above technical solution, as shown in Fig. 8, the encoder 80 may further include a first prediction unit 808. The first prediction unit 808 is used to perform cross-component prediction on the second image component of the current block according to a prediction model to obtain a predicted value of the second image component of the current block.
[0119] In the embodiments of the present application, it can be understood that a "unit" can be a part of a circuit, a part of a processor, a part of a program, or software, etc., and may or may not be a module. Furthermore, various components of the embodiments of the present application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be realized in the form of hardware or software functional modules.
[0120] When the integrated unit is realized as a software functional unit and sold or used as an independent product, it may be stored in a computer-readable recording medium. According to this understanding, the essential part of the technical solution of the present application, or the part that can contribute to the prior art, or all or part of the technical solution may be expressed as a software product. The computer software product is stored in a storage medium and includes a plurality of commands for executing all or part of the process of the method according to the present embodiment in a computer (which may be a personal computer, a server, a network device, etc.). The storage medium includes various media capable of storing program codes, such as a USB (Universal Serial Bus) flash disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0121] An embodiment of the present application further provides a computer storage medium having stored thereon an image prediction program, which, when executed by at least one processor, implements the steps of the method according to the above-described embodiment.
[0122] Based on the configuration of the encoder 80 and the computer storage medium, refer to FIG. 9, which is a diagram showing a specific hardware structure of the encoder according to an embodiment of the present application. The encoder 80 may include a first communication interface 901, a first memory 902 and a first processor 903. Various components are coupled together via a first bus system 904. The first bus system 904 is used to realize the connection and communication between these components. In addition to a data bus, the first bus system 904 further includes a power bus, a control bus and a status signal bus. For clarity of explanation, as shown in FIG. 9, various buses are marked as the first bus system 904.
[0123] The first communication interface 901 is used for sending and receiving signals while transmitting and receiving information to and from other external network elements.
[0124] The first memory 902 is used to store a computer program executable by the first processor 903 .
[0125] When the computer program is executed by the first processor 903, it determines at least one image component of a current block in an image, pre-processes the at least one image component of the current block to obtain at least one pre-processed image component, and builds a prediction model based on the at least one pre-processed image component, where the prediction model is used to perform cross-component prediction on the at least one image component of the current block.
[0126] The first memory 902 of the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memory. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), or a Flash Memory. The volatile memory can be a Random Access Memory (RAM) that functions as an external high-speed cache. By way of illustrative, but non-limiting example, many types of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Synch-link Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The first memory 902 of the systems and methods described herein may comprise, without being limited to, these and any other suitable types of memory.
[0127] The first processor 903 can be an integrated circuit chip having signal processing capabilities. In the implementation process, each step of the above-mentioned method embodiment can be completed by an integrated logic circuit in the form of hardware of the first processor 903 or an instruction in the form of software. The above-mentioned first processor 903 can be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The first processor can realize or execute the method, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly performed and completed by a hardware decoding processor, or can be performed and completed by a combination of hardware and software modules in the decoding processor. The software module can be in a mature storage medium in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is in the first memory 902. The first processor 903 reads the information in the first memory 902 and completes the steps of the above-mentioned method together with the hardware of the processor.
[0128] It may be understood that the embodiments described herein may be realized by hardware, software, firmware, middleware, microcode, or a combination thereof. When realized by hardware, the processing unit may be realized by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), DSP Devices, Programmable Logic Devices (PLDs), Field-Programmable Gate Arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units, or combinations thereof for performing the functions of the present application. When realized by software, the techniques described herein may be realized by modules (e.g., procedures, functions, etc.) for performing the functions described herein. The software code is stored in a memory and executed by a processor. The memory may be realized within the processor or external to the processor.
[0129] Optionally, in another embodiment, the first processor 903, when executing a computer program, is used to perform any one of the methods described in the above embodiments.
[0130] An embodiment of the present application provides an encoder. The encoder includes a first determination unit, a first processing unit, and a first construction unit. The first determination unit is used to determine at least one image component of a current block in an image. The first processing unit is used to pre-process the at least one image component of the current block to obtain a pre-processed at least one image component. The first construction unit is used to build a prediction model based on the pre-processed at least one image component, and the prediction model is used to perform cross-component prediction on the at least one image component of the current block. In this way, by pre-processing the at least one image component before performing cross-component prediction on the at least one image component of the current block and balancing the statistical characteristics of each image component before performing cross-component prediction, prediction efficiency can be improved, and the encoding and decoding efficiency of video images can also be improved.
[0131] Based on the same inventive concept as the above embodiment, refer to Fig. 10, which is a diagram showing the structure of a decoder according to an embodiment of the present application. The decoder 100 includes a second determination unit 1001, a second processing unit 1002 and a second construction unit 1003.
[0132] The second determining unit 1001 is used for determining at least one image component of a current block in an image.
[0133] The second processing unit 1002 is used for pre-processing at least one image component of the current block to obtain at least one pre-processed image component.
[0134] The second construction unit 1003 is used to construct a prediction model based on the pre-processed at least one image component, and the prediction model is used to perform cross-component prediction on the at least one image component of the current block.
[0135] In the above technical solution, as shown in FIG. 10 , the decoder 100 may further include a second statistics unit 1004 and a second acquisition unit 1005 .
[0136] The second statistics unit 1004 is used for performing characteristic statistics on at least one image component of the current block, where the at least one image component includes the first image component and / or the second image component.
[0137] The second obtaining unit 1005 is used for obtaining a reference value of a first image component of the current block and / or a reference value of a second image component of the current block according to the result of the characteristic statistics, where the first image component is a component used for prediction when constructing a prediction model, and the second image component is a component predicted when constructing a prediction model.
[0138] In the above-mentioned technical solution, the second processing unit 1002 is further used to perform a first processing on the first image component in a preset processing mode based on the reference value of the first image component of the current block and / or the reference value of the second image component of the current block, where the preset processing mode includes at least one of filtering, grouping, value modification, quantization and dequantization.
[0139] The second obtaining unit 1005 is further used for obtaining a processed value of the first image component of the current block according to the first processing result.
[0140] In the above technical solution, the decoder 100 further includes a second adjusting unit 1006 and a second updating unit 1007 .
[0141] The second adjustment unit 1006 is used to adjust the resolution of the first image component of the current block when the resolution of the first image component of the current block is different from the resolution of the second image component of the current block. Adjusting the resolution includes upsampling or downsampling.
[0142] The second update unit 1007 is used for updating the reference value of the first image component of the current block according to the resolution of the adjusted first image component, where the resolution of the adjusted first image component and the resolution of the adjusted second image component are the same.
[0143] In the above technical solution, the second adjustment unit 1006 is further used to adjust the resolution of the first image component of the current block when the resolution of the first image component of the current block is different from the resolution of the second image component of the current block. Adjusting the resolution includes upsampling or downsampling.
[0144] The second update unit 1007 is further used for updating the processing value of the first image component of the current block according to the resolution of the adjusted first image component, where the resolution of the adjusted first image component and the resolution of the adjusted second image component are the same.
[0145] In the above technical solution, the second adjusting unit 1006 is further used for performing a second processing on the first image component according to the reference value of the first image component of the current block and / or the reference value of the second image component of the current block when the resolution of the first image component of the current block is different from the resolution of the second image component of the current block, the second processing including upsampling and associated processing of a preset processing mode, or downsampling and associated processing of a preset processing mode.
[0146] The second obtaining unit 1005 is further used for obtaining a processed value of the first image component of the current block according to the second processing result, where the resolution of the processed first image component of the current block and the resolution of the second image component of the current block are the same.
[0147] In the above technical solution, the second construction unit 1003 is used to analyze the bitstream, and construct a prediction model according to the model parameters obtained by the analysis.
[0148] In the above technical solution, as shown in Fig. 10, the second prediction unit 1008 is used for performing cross-component prediction on the second image component of the current block according to a prediction model to obtain a predicted value of the second image component of the current block.
[0149] In the embodiments of the present application, it can be understood that a "unit" can be a part of a circuit, a part of a processor, a part of a program, or software, and may or may not be a module. Furthermore, various components of the embodiments of the present application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be realized in the form of hardware or software functional units.
[0150] The integrated unit may be implemented as a software functional unit and stored in a computer-readable recording medium when sold or used as an independent product. According to this understanding, the present embodiment provides a computer storage medium. The computer storage medium stores an image prediction program. When the image prediction program is executed by a second processor, it realizes any one of the methods described in the above-mentioned embodiments.
[0151] Based on the configuration of the decoder 100 and the computer storage medium, refer to FIG. 11, which is a diagram showing a specific hardware structure of the decoder 100 according to an embodiment of the present application. The decoder 100 may include a second communication interface 1101, a second memory 1102 and a second processor 1103. Various components are coupled together via a second bus system 1104. The second bus system 1104 is used to realize the connection and communication between these components. In addition to a data bus, the second bus system 1104 further includes a power bus, a control bus and a status signal bus. For clarity of explanation, as shown in FIG. 11, various buses are marked as the second bus system 1104.
[0152] The second communication interface 1101 is used for sending and receiving signals while transmitting and receiving information to and from other external network elements.
[0153] The second memory 1102 is used to store a computer program executable by the second processor 1103 .
[0154] When the computer program is executed by the second processor 1103, it determines at least one image component of a current block in an image, pre-processes the at least one image component of the current block to obtain at least one pre-processed image component, and builds a prediction model based on the at least one pre-processed image component, where the prediction model is used to perform cross-component prediction on the at least one image component of the current block.
[0155] Optionally, in another embodiment, the second processor 1103, when executing a computer program, is used to perform any one of the methods described in the above embodiments.
[0156] It can be understood that the functions of the second memory 1102 and the first memory 902 are similar, and the functions of the second processor 1103 and the first processor 903 are similar, so they will not be described in detail here.
[0157] The decoder provided by the embodiment of the present application includes a second determination unit, a second processing unit and a second construction unit. The second determination unit is used to determine at least one image component of a current block in an image. The second processing unit is used to pre-process the at least one image component of the current block to obtain a pre-processed at least one image component. The second construction unit is used to build a prediction model based on the pre-processed at least one image component, and the prediction model is used to perform cross-component prediction on the at least one image component of the current block. In this way, by pre-processing the at least one image component before performing cross-component prediction on the at least one image component of the current block and balancing the statistical characteristics of each image component before performing cross-component prediction, prediction efficiency can be improved, and the encoding and decoding efficiency of video images can also be improved.
[0158] As used herein, the terms "comprising," "including," or variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, object, or apparatus comprising a set of elements may include not only the listed elements, but also other elements not listed, or other elements inherent to the process, method, object, or apparatus. In the absence of more limitations, a process, method, object, or apparatus that includes an element limited by a "comprising" statement does not exclude the presence of other identical elements.
[0159] The sequence numbers of the above-mentioned embodiments are adopted for the purpose of explanation only, and do not indicate the superiority or inferiority of the embodiments.
[0160] The methods disclosed in the several method embodiments of this application can be arbitrarily combined to obtain new method embodiments, provided there are no conflicts.
[0161] Features disclosed in the several product embodiments of this application may be combined in any manner to obtain new product embodiments, provided there are no conflicts.
[0162] Features disclosed in any method or apparatus embodiment of the present application may be combined in any manner, provided there is no conflict, to obtain new method or apparatus embodiments.
[0163] The above are only specific embodiments of the present invention, and the scope of protection of the present invention is not limited thereto. Those skilled in the art can easily think of modifications or replacements within the technical scope disclosed in the present invention, and all of them should be included in the scope of this application. Therefore, the scope of protection of this application should be determined by the claims.
[0164] Industrial Applicability
[0165] In an embodiment of the present application, first, at least one image component of a current block in an image is determined. Then, the at least one image component of the current block is pre-processed to obtain at least one pre-processed image component. Then, a prediction model is constructed based on the at least one pre-processed image component. The prediction model is used to perform cross-component prediction on at least one image component of the current block. In this way, before performing cross-component prediction on at least one image component of the current block, at least one image component is pre-processed to balance the statistical characteristics of each image component before performing cross-component prediction, thereby improving prediction efficiency. Since the predicted value of the image component predicted by the prediction model is close to the true value, the prediction residual of the image component is small, and the bit rate transmitted in the encoding and decoding process is small, which can improve the encoding and decoding efficiency of the video image.
Claims
1. 1. An image prediction method applied to an encoder, comprising: determining a reference value of a first image component of a current block in an image; filtering a reference value of a first image component of the current block to obtain a filtered reference value; utilizing the filtered reference values to obtain model parameters of a predictive model; and mapping values of a first image component of the current block based on the prediction model to obtain predicted values of a second image component of the current block; Including, the reference value of the first image component of the current block is a first image component value of an adjacent sample of the current block; the second image component and the first image component are different; 13. An image prediction method comprising:
2. The image prediction method further comprises filtering the first image component of the current block.
2. The image prediction method according to claim 1.
3. Utilizing the filtered reference values to obtain model parameters of a predictive model, obtaining a reference value of a second image component of the current block; obtaining model parameters of the prediction model using the filtered reference values and reference values of a second image component of the current block; Including, the reference values of the second image component of the current block are second image component values of adjacent samples of the current block; 2. The image prediction method according to claim 1.
4. Filtering the reference value of the first image component of the current block to obtain a filtered reference value, performing a first adjustment operation on the reference value of the first image component of the current block to update the reference value of the first image component of the current block if the resolution of the second image component of the image and the resolution of the first image component of the image are different; filtering a reference value of a first image component of the current block to obtain the filtered reference value; Including, The first adjustment process is downsampling filtering.
2. The image prediction method according to claim 1.
5. The image prediction method includes: filtering the reference value in a preset processing mode based on the reference value of the first image component of the current block; the preset processing modes include at least one of filtering and grouping; 5. The image prediction method according to claim 1 or 4.
6. Filtering the reference value of the first image component of the current block to obtain a filtered reference value, performing a second adjustment operation on the reference value of the second image component of the current block to update the reference value of the second image component of the current block when the resolution of the second image component of the image and the resolution of the first image component of the image are different; The second adjustment process is downsampling.
2. The image prediction method according to claim 1.
7. An image prediction method applied to a decoder, comprising: determining a reference value of a first image component of a current block in an image; filtering a reference value of a first image component of the current block to obtain a filtered reference value; utilizing the filtered reference values to obtain model parameters of a predictive model; and mapping values of a first image component of the current block based on the prediction model to obtain predicted values of a second image component of the current block; Including, the reference value of the first image component of the current block is a first image component value of an adjacent sample of the current block; the second image component and the first image component are different; 13. An image prediction method comprising:
8. The image prediction method further comprises filtering the first image component of the current block.
8. The image prediction method according to claim 7.
9. Utilizing the filtered reference values to obtain model parameters of a predictive model, obtaining a reference value of a second image component of the current block; obtaining model parameters of the prediction model using the filtered reference values and reference values of a second image component of the current block; Including, the reference values of the second image component of the current block are second image component values of adjacent samples of the current block; 8. The image prediction method according to claim 7.
10. Filtering the reference value of the first image component of the current block to obtain a filtered reference value, performing a first adjustment operation on the reference value of the first image component of the current block to update the reference value of the first image component of the current block if the resolution of the second image component of the image and the resolution of the first image component of the image are different; filtering a reference value of a first image component of the current block to obtain the filtered reference value; Including, The first adjustment process is downsampling filtering.
8. The image prediction method according to claim 7.
11. The image prediction method includes: filtering the reference value in a preset processing mode based on the reference value of the first image component of the current block; the preset processing modes include at least one of filtering and grouping; 11. The image prediction method according to claim 7 or 10.
12. Filtering the reference value of the first image component of the current block to obtain a filtered reference value, performing a second adjustment operation on the reference value of the second image component of the current block to update the reference value of the second image component of the current block when the resolution of the second image component of the image and the resolution of the first image component of the image are different; The second adjustment process is downsampling.
8. The image prediction method according to claim 7.
13. 1. An encoder comprising: a first memory and a first processor; the first memory is adapted to store a computer program executable by the first processor; The first processor is used to execute the image prediction method according to claims 1 to 6 by executing the computer program. An encoder characterized by:
14. A decoder comprising: a second memory and a second processor; the second memory is adapted to store a computer program executable by the second processor; The second processor is used to execute the image prediction method according to any one of claims 7 to 12 by executing the computer program. A decoder characterized in that
Citation Information
Patent Citations
Moving image decoder, moving image decoding method, moving image encoder, moving image encoding method and computer readable recording medium
JP2018107692A
Downsampling process for linear model prediction mode
JP2018514119A
Image prediction method, encoder, decoder and storage medium
JP7535057B2
Downsampling process for linear model prediction mode
US20160277762A1
Method, Apparatus, and System for Encoding and Decoding Image
US20190089983A1
