Image block prediction method and apparatus, and electronic device
By fitting the reconstructed values and predicted values of the target image block and the prediction block, the fusion prediction model parameters are obtained, which solves the problem of insufficient prediction accuracy of image blocks in the existing technology and achieves efficient processing of image textures in real video scenes. and accurate predictions.
Patent Information
- Application Number
- PCT/CN2024/086351
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-14
- Filing Date
- 2024-04-07
- Publication Date
- 2024-10-17
AI Technical Summary
When existing technology processes image textures in real video scenes, it is difficult to achieve high-precision prediction using intra-frame prediction or inter-frame prediction fusion methods, which is limited by the number of weight combinations.
By determining the fitting relationship between the reconstructed value of the target image block and the predicted value of the prediction block, the fusion prediction model parameters are obtained, and then the fusion prediction value of the target image block is calculated to enhance the correlation between the prediction value and the reconstruction value, and improve the prediction accuracy. .
It achieves efficient processing of image textures in real video scenes, improves the accuracy of image block prediction, and avoids the reduction in accuracy caused by the limit on the number of weight combinations.
Smart Images

Figure CN2024086351_17102024_PF_FP_ABST
Abstract
Description
Image block prediction method, device and electronic device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application No. 202310399581.X filed in China on April 14, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present application belongs to the field of coding and decoding technology, and specifically relates to an image block prediction method, device and electronic equipment. Background Art
[0004] In related prediction fusion techniques, intra-frame or inter-frame prediction methods are used to obtain at least two prediction values, which are then weighted according to preset weights to obtain the final prediction value. However, due to the diversity of image textures in real video scenes, this fusion method cannot effectively handle image textures in real video scenes.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide an image block prediction method, device, and electronic device to process image textures in real video scenes and improve prediction accuracy.
[0007] In a first aspect, a method for predicting an image block is provided, the method comprising:
[0008] Determining a reconstructed value of a target template corresponding to a target image block and at least two first prediction values corresponding to at least two prediction blocks of the target image block, the at least two first prediction values including a first prediction value of the prediction template corresponding to each prediction block of the at least two prediction blocks;
[0009] Performing fitting according to the reconstructed value and the at least two first prediction values to obtain model parameters, where the model parameters are parameters of a fusion prediction model corresponding to the target image block;
[0010] A fused prediction value of the target image block is determined according to the model parameters and at least two second prediction values corresponding to the at least two prediction blocks, where the second prediction value is obtained by predicting the target image block according to a prediction mode.
[0011] In a second aspect, an image block prediction device is provided, comprising:
[0012] a first determination module, configured to determine a reconstructed value of a target template corresponding to a target image block and at least two first prediction values corresponding to at least two prediction blocks of the target image block, the at least two first prediction values comprising a first prediction value of the prediction template corresponding to each prediction block of the at least two prediction blocks;
[0013] an acquisition module, configured to perform fitting based on the reconstructed value and the at least two first prediction values to acquire model parameters, wherein the model parameters are parameters of a fusion prediction model corresponding to the target image block;
[0014] The second determination module is used to determine the fused prediction value of the target image block according to the model parameters and at least two second prediction values corresponding to the at least two prediction blocks, where the second prediction value is obtained by predicting the target image block according to the prediction mode.
[0015] In a third aspect, an electronic device is provided, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0016] According to a fourth aspect, an electronic device is provided, comprising a processor and a communication interface, wherein the processor is configured to determine a reconstructed value of a target template corresponding to a target image block and at least two first prediction values corresponding to at least two prediction blocks of the target image block, the at least two first prediction values comprising a first prediction value of the prediction template corresponding to each of the at least two prediction blocks;
[0017] Performing fitting according to the reconstructed value and the at least two first prediction values to obtain model parameters, where the model parameters are parameters of a fusion prediction model corresponding to the target image block;
[0018] A fused prediction value of the target image block is determined according to the model parameters and at least two second prediction values corresponding to the at least two prediction blocks, where the second prediction value is obtained by predicting the target image block according to a prediction mode.
[0019] In a fifth aspect, an image block prediction system is provided, comprising: an image block prediction device, wherein the image block prediction device can be used to perform the steps of the method described in the first aspect.
[0020] In a sixth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0021] In a seventh aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the steps of the method described in the first aspect.
[0022] In an eighth aspect, a computer program / program product is provided, wherein the computer program / program product is stored in a storage medium and is executed by at least one processor to implement the steps of the method described in the first aspect.
[0023] In an embodiment of the present application, by fitting the reconstructed value of the target template corresponding to the target image block and at least two first predicted values corresponding to at least two prediction blocks of the target image block, the linear relationship between the predicted value and the reconstructed value is adjusted so that the predicted value is fitted toward the reconstructed value, and model parameters are obtained, and then a fused predicted value of the target image block is obtained based on the model parameters. In the related art, the predicted values corresponding to the image blocks are fused through a preset weight combination. The weight combination has a limitation in quantity, which reduces the accuracy of the predicted value. However, this implementation method of the embodiment of the present application makes the fused predicted value of the target image block strongly correlated with the fitting results of the reconstructed value of the target template and the predicted value of the prediction template corresponding to the prediction block, and is no longer limited by the number of weight combinations, thereby improving the accuracy of the predicted value. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] FIG1 is a schematic diagram of a flow chart of an image block prediction method according to an embodiment of the present application;
[0025] FIG2 is a schematic diagram showing the principle of an image block prediction method according to an embodiment of the present application;
[0026] FIG3 is a schematic diagram of a prediction block and a prediction template according to an embodiment of the present application;
[0027] FIG4 is a second schematic diagram of a prediction block and a prediction template provided in an embodiment of the present application;
[0028] FIG5 is a module diagram of an image block prediction device according to an embodiment of the present application;
[0029] FIG6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
[0030] FIG7 is a schematic structural diagram of a communication device according to an embodiment of the present application. DETAILED DESCRIPTION
[0031] The following will be combined with the accompanying drawings in the embodiments of this application to clearly describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0032] The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same type, and do not limit the number of objects, for example, the first object can be one or more. In addition, "or" in this application represents at least one of the connected objects. For example, "A or B" covers three options, namely, Option 1: including A but not including B; Option 2: including B but not including A; Option 3: including both A and B. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0033] The term "indication" in this application can be either a direct indication (or explicit indication) or an indirect indication (or implicit indication). A direct indication can be understood as the sender explicitly informing the receiver of specific information, the operation to be performed, or the requested result, etc. in the instruction sent; an indirect indication can be understood as the receiver determining the corresponding information based on the instruction sent by the sender, or making a judgment and determining the operation to be performed or the requested result, etc. based on the judgment result.
[0034] It is worth noting that the technology described in the embodiments of the present application is not limited to the Long Term Evolution (LTE) / LTE-Advanced (LTE-A) system, but can also be used in other wireless communication systems, such as Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Frequency Division Multiple Access (FDMA), Orthogonal Frequency Division Multiple Access (OFDMA), Single-carrier Frequency Division Multiple Access (SC-FDMA) and other systems. The terms "system" and "network" in the embodiments of the present application are often used interchangeably, and the technology described can be used for the systems and radio technologies mentioned above, as well as for other systems and radio technologies. The following description describes a New Radio (NR) system for illustrative purposes, and the NR terminology is used in most of the following description, but these technologies can also be applied to applications other than NR system applications, such as 6th generation (6G) systems. th Generation, 6G) communication system.
[0035] The following first describes the technologies related to the embodiments of the present application.
[0036] 1. Intra-frame prediction mode
[0037] Traditional intra-frame prediction modes include direct current (DC) mode, planar mode, and angular prediction mode. These modes use the adjacent encoded or decoded reconstructed pixels of the current coding unit as reference pixels to calculate the predicted pixels through a preset model.
[0038] In the pre-research of the next generation compression standard, for the intra prediction mode, a method of deriving the intra prediction by weighting the intra prediction obtained from the reference line is proposed, and the expression is p fusion =w0p line +w1p line+1 , where p line is the intra prediction from the default reference line, p line+1 is the prediction from the previous row of the default reference row. The weights are set to w0 = 3 / 4 and w1 = 1 / 4.
[0039] 2. Inter-frame prediction mode
[0040] In videos, the content of adjacent frames is often very similar, with minimal background changes. Leveraging temporal correlation in the video, inter-frame motion information and prediction residuals can be used for inter-frame predictive coding, effectively improving compression efficiency. Inter-frame coding tools also include some predictive fusion techniques.
[0041] Combined inter and intra prediction (CIIP)
[0042] In Versatile Video Coding (VVC), CIIP prediction combines the inter-frame prediction signal with the intra-frame prediction signal. inter is derived using the same inter-frame prediction applied to the regular Merge mode; the intra-frame prediction signal P inter is derived from the planar mode in conventional intra prediction. The intra and inter prediction signals are then combined using a weighted average, where the weights wt are calculated based on the coding modes of the top and left neighboring blocks. The CIIP prediction is shown below: CIIP =((4-wt)*P inter +wt*P intra +2)>>2.
[0043] Bi-prediction with CU-level weight (BCW)
[0044] In High Efficiency Video Coding (HEVC), a bidirectional prediction signal is generated by averaging two prediction signals obtained from two different reference frames or using two different motion vectors. In VVC, the bidirectional prediction mode is extended beyond simple averaging to allow weighted averaging of the two prediction signals. Weighted average bidirectional prediction allows five weights, w∈{-2,3,4,5,10}.
[0045] 3. Inter-component model prediction mode
[0046] In order to reduce redundancy between components (i.e., luminance component and chrominance component), a model relationship between components is established through luminance reconstructed pixels and chrominance reconstructed pixels, and the chrominance predicted pixels of the current coding unit are obtained using the coded luminance reconstructed pixels and the model in the same coding unit.
[0047] Inter-component linear single model prediction mode
[0048] Based on the coded luma reconstructed pixel in the same coding unit, the chroma prediction pixel is obtained through the following linear model. C (i,j)=α·rec L ′(i,j)+β
[0049] Among them, pred C (i, j) represents the chroma prediction value determined based on the inter-component linear single model prediction mode, rec L ′(i, j) represents the luma value of the image block. Parameters α and β are obtained by using the minimum linear mean square error between adjacent luma and chroma reconstructed pixels. The position of the reconstructed pixel used to obtain these parameters can be above, to the left, or both above and to the left. The final position selected is written into the bitstream.
[0050] Inter-component linear multi-model prediction model
[0051] In the inter-component linear multi-model, the reconstructed luminance pixels encoded in the same coding unit are divided into two categories using a threshold value, which is the average value of the luminance pixels. The model parameters of each category are obtained by minimizing the linear mean square error.
[0052] 4. Luma mapping and chroma scaling (LMCS)
[0053] LMCS improves compression efficiency by redistributing codewords across the dynamic range. It consists of two components: luminance mapping based on an adaptive piecewise linear model and luminance-based chrominance residual scaling. Luminance mapping, applied at the pixel level, improves video coding efficiency by fully utilizing the luminance range and photoelectric conversion characteristics. Chroma scaling, applied at the chrominance block level, compensates for the effects of luminance signal mapping on chrominance signals.
[0054] The image block prediction method, device, and electronic device provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through some embodiments and their application scenarios.
[0055] As shown in FIG1 , an embodiment of the present application provides an image block prediction method, comprising:
[0056] Step 101, determining a reconstructed value of a target template corresponding to a target image block and at least two first prediction values corresponding to at least two prediction blocks of the target image block, wherein the at least two first prediction values include a first prediction value of the prediction template corresponding to each prediction block of the at least two prediction blocks;
[0057] It should be noted that the target template refers to the template used by the target image block, which is composed of the decoded reconstructed pixels near the target image block, and may include: one row / several rows above the target image block, one column / several columns to the left, or the surrounding L-shaped area; the prediction block refers to the image block obtained by predicting the target image block; the prediction template refers to the template used by the prediction block, that is, the image block obtained by predicting the template, and may include: one row / several rows above the prediction block, one column / several columns to the left, or the surrounding L-shaped area. It should be noted that the number of rows or columns of the template can be set according to the encoding method. For example, in the low delay encoding configuration, the number of rows / columns of the template is set to 2, and in the random access encoding configuration, the number of rows / columns of the template is set to 1. The number of rows and columns of the template may be unequal.
[0058] Step 102: performing fitting based on the reconstructed value and the at least two first prediction values to obtain model parameters, where the model parameters are parameters of a fusion prediction model corresponding to the target image block;
[0059] It should be noted that the fitting method described in the embodiment of the present application can be based on minimizing the mean square error (MSE) of regression to derive model parameters. MSE minimization is performed by calculating the autocorrelation matrix of the predicted values of at least two prediction templates and the cross-correlation vector between the predicted values of at least two prediction templates and the reconstructed value of the target template; performing LDL decomposition on the autocorrelation matrix and using inverse substitution to calculate the final filter coefficient; making the at least two first predicted values fit toward the reconstructed value, that is, by adjusting the parameters, making the calculation results of the at least two first predicted values and the parameters approach the reconstructed value.
[0060] Step 103: Determine a fused prediction value of the target image block based on the model parameters and at least two second prediction values corresponding to the at least two prediction blocks, where the second prediction value is obtained by predicting the target image block according to a prediction mode.
[0061] It should be noted that in the embodiment of the present application, by fitting the reconstruction value of the target template corresponding to the target image block and the at least two first prediction values corresponding to the at least two prediction blocks of the target image block, the linear relationship between the prediction value and the reconstruction value is adjusted so that the prediction value is fitted toward the reconstruction value, and the model parameters are obtained, and then the fused prediction value of the target image block is obtained based on the model parameters. In the related art, the prediction values corresponding to the image blocks are fused through a preset weight combination. The weight combination has a limitation in quantity, which reduces the accuracy of the prediction value. However, this implementation method of the embodiment of the present application makes the fused prediction value of the target image block strongly correlated with the fitting results of the reconstruction value of the target template and the prediction value of the prediction template corresponding to the prediction block, and is no longer limited by the number of weight combinations, thereby improving the accuracy of the prediction value.
[0062] For example, taking the use of two first prediction values as an example, as shown in Figure 2, by fitting the predicted pixel 0 of the prediction module corresponding to the prediction block 0 (i.e., the first first prediction value) and the predicted pixel 1 of the prediction module corresponding to the prediction block 1 (i.e., the second first prediction value), the predicted pixel 0 and the predicted pixel 1 are fitted toward the reconstructed value of the target module corresponding to the target image block, and the model parameters are obtained; then the predicted value 0 (i.e., the first second prediction value) obtained by the prediction block 0 corresponding to the target image and the predicted value 1 (i.e., the second second prediction value) obtained by the prediction block 1 corresponding to the target image are substituted into the fusion prediction model with determined model parameters, and the fusion prediction value of the target image can be obtained.
[0063] In an optional implementation, the target image block can be understood as the current coding unit, and its corresponding target template is at least part of the pixels in the pixel area adjacent to the target image block. The target template can be located inside or outside the target image block, for example, the target template is located above or to the left of the inside of the target image block; or, for example, the target template is located above or to the left of the outside of the target image block.
[0064] In another optional implementation, a method for obtaining a reconstruction value of a target template corresponding to the target image block includes:
[0065] The reconstructed value of the target template corresponding to the target image block is determined according to pixels of the reconstructed image above or to the left of the target image block.
[0066] That is, the reconstructed value of the target template corresponding to the target image block includes at least a portion of pixels in the reconstructed image area above or to the left of the target image block.
[0067] Optionally, the prediction block corresponding to the target image block may be an inter-frame prediction block or an intra-frame prediction block.
[0068] In another optional implementation, the at least two prediction blocks include a first prediction block, and obtaining a first prediction value corresponding to the first prediction block includes at least one of the following:
[0069] A11. Obtain a first prediction value corresponding to the first prediction block by performing inter-frame prediction on the prediction template corresponding to the first prediction block;
[0070] It should be noted that, in this case, the first prediction value corresponding to the first prediction block is obtained based on inter-frame prediction of the prediction template.
[0071] Optionally, this situation is mainly applicable to the situation where the pixels corresponding to the prediction template are predicted pixels and the prediction block is an inter-frame prediction block; that is, in this case, the first prediction value of the predicted pixel of the prediction template corresponding to the inter-frame prediction block corresponding to the target image block is obtained by performing inter-frame prediction on the prediction template.
[0072] It should be noted that this method of obtaining the first prediction value can make the prediction result more accurate.
[0073] A12. Determine a first prediction value corresponding to the first prediction block based on pixels in a reference frame corresponding to a prediction template corresponding to the first prediction block;
[0074] It should be noted that the first prediction value in this case is obtained by copying the pixels at the corresponding position in the reference frame corresponding to the prediction template corresponding to the first prediction block.
[0075] Optionally, this situation is mainly applicable to the situation where the pixels corresponding to the prediction template are reconstructed pixels and the prediction block is an inter-frame prediction block; that is, in this case, the first prediction value of the reconstructed pixel of the prediction template corresponding to the inter-frame prediction block corresponding to the target image block is obtained by copying the pixel at the corresponding position in the reference frame corresponding to the prediction template corresponding to the inter-frame prediction block corresponding to the target image block.
[0076] It should be noted that this method of obtaining the first prediction value can make the acquisition of the first prediction value simpler and faster, and can reduce the implementation complexity.
[0077] A13. Obtain a first prediction value corresponding to the first prediction block by performing intra-frame prediction on the prediction template corresponding to the first prediction block;
[0078] It should be noted that, in this case, the first prediction value corresponding to the first prediction block is obtained by performing intra-frame prediction based on the prediction template corresponding to the first prediction block.
[0079] Optionally, this situation is mainly applicable to the situation where the pixels corresponding to the prediction template are predicted pixels and the prediction block is an intra-frame prediction block; that is, in this case, the first prediction value of the predicted pixel of the prediction template corresponding to the intra-frame prediction block corresponding to the target image block is obtained by intra-frame prediction of the prediction template.
[0080] It should be noted that the method for obtaining the first prediction value in this manner is consistent with the prediction method of the prediction block, which can ensure that the texture of the prediction result is more highly correlated with the prediction block.
[0081] In another optional implementation, the size of the target template is the same as the size of the prediction template, that is, the width and height are the same.
[0082] Taking the use of two first prediction values as an example, for example, one first prediction value can be obtained through A11, and then another first prediction value can be obtained through A12 or A13; for example, two first prediction values can also be obtained through A11.
[0083] In another optional implementation, the first prediction value is located in the original domain or the mapped domain; or
[0084] The reconstructed value is located in the original domain or the mapped domain.
[0085] It should be noted that the original domain refers to the pixels corresponding to the unmapped image, also known as the pixel domain. The mapped domain refers to the domain where the pixels are located after the image is mapped.
[0086] In another optional implementation, the fusion prediction model includes: a linear prediction model or a nonlinear prediction model.
[0087] For example, the fusion prediction model is a linear prediction model. In this case, the fusion prediction value of the target image block can be determined by Formula 1. Formula 1, pred C (i,j)=α0·pred′0(i,j)+α1·pred′1(i,j)+α2·midValue;
[0088] Among them, pred C (i, j) represents the fused prediction value of the target image block; α0, α1, and α2 represent model parameters; pred′0(i, j) represents the first second prediction value of the target image block; pred′1(i, j) represents the second second prediction value of the target image block; and midValue represents the corresponding median value of the target image block. midValue is determined by the video bit depth (optional, for 10-bit depth, midValue = 512, or no midValue is possible).
[0089] For example, the fusion prediction model is a nonlinear prediction model. In this case, the fusion prediction value of the target image block can be determined by Formula 2. Formula 2, pred C (i,j)=α0·(((pred′0(i,j)) 2 +midValue)>>bitDepth)+α1·pred′0(i,j)+α2·pred′1(i,j)+α3·midValue;
[0090] Among them, pred C (i, j) represents the fused prediction value of the target image block; α0, α1, α2 and α3 represent model parameters; pred′0(i, j) represents the first second prediction value of the target image block; pred′1(i, j) represents the second second prediction value of the target image block; midValue represents the median value corresponding to the target image block; bitDepth represents the video bit depth corresponding to the target image block.
[0091] It should be noted that the above median is associated with the above video bit depth. Optionally, when the video bit depth is 10, the median is 512. Of course, midValue may not exist in the above formulas 1 and 2, that is, the value of midValue is 0.
[0092] In another optional implementation, the prediction template is located above or to the left of the prediction block; or
[0093] The prediction template is located above or on the left side of the prediction block.
[0094] As shown in Figure 3, an optional implementation is that the prediction template is adjacent to the prediction block and is located above and to the left of the outside of the prediction block. As shown in Figure 4, another optional implementation is that the prediction template is located above and to the left of the inside of the prediction block.
[0095] In an optional implementation, the prediction mode includes at least one of the following: intra-frame prediction mode, inter-frame prediction mode, intra-frame block copy mode, and color palette mode;
[0096] Intra-block copy mode searches for the optimal block vector (also called a motion vector) within the reconstruction area of the current image block. The block vector indicates the displacement from the current block to a reference block, which is then used directly as a prediction block for the current block. The palette mode utilizes the characteristic that pixels within an image block are composed of only a few typical colors for encoding.
[0097] It should be noted that, when obtaining the model parameters above, several first prediction values are used, and the same number of second prediction values needs to be obtained here.
[0098] For example, taking obtaining two second prediction values as an example, in a specific implementation, for example, the two intra-frame prediction blocks corresponding to the target image block can be used to perform intra-frame prediction to obtain two second prediction values; or, the two inter-frame prediction blocks corresponding to the target image block can be used to perform inter-frame prediction to obtain two second prediction values; or, one intra-frame prediction block corresponding to the target image block can be used to perform intra-frame prediction to obtain a second prediction value, and one inter-frame prediction block corresponding to the target image block can be used to perform inter-frame prediction to obtain a second prediction value, thereby obtaining two second prediction values.
[0099] It should be noted that, by using the implementation method of at least one embodiment of the present application, the accuracy of the predicted value of the target image block can be improved.
[0100] The image block prediction method provided in the embodiment of the present application can be executed by an image block prediction device. In the embodiment of the present application, the image block prediction device performing the image block prediction method is used as an example to illustrate the image block prediction device provided in the embodiment of the present application.
[0101] As shown in FIG5 , an image block prediction device 500 according to an embodiment of the present application includes:
[0102] A first determination module 501 is configured to determine a reconstructed value of a target template corresponding to a target image block and at least two first prediction values corresponding to at least two prediction blocks of the target image block, wherein the at least two first prediction values include a first prediction value of the prediction template corresponding to each prediction block of the at least two prediction blocks;
[0103] an acquisition module 502, configured to perform fitting based on the reconstructed value and the at least two first prediction values to acquire model parameters, where the model parameters are parameters of a fusion prediction model corresponding to the target image block;
[0104] The second determination module 503 is used to determine the fused prediction value of the target image block according to the model parameters and at least two second prediction values corresponding to the at least two prediction blocks, where the second prediction value is obtained by predicting the target image block according to the prediction mode.
[0105] Optionally, the fusion prediction model includes: a linear prediction model or a nonlinear prediction model.
[0106] Optionally, the first predicted value is located in the original domain or the mapped domain; or
[0107] The reconstructed value is located in the original domain or the mapped domain.
[0108] Optionally, the pixels corresponding to the prediction template are reconstructed pixels or predicted pixels.
[0109] Optionally, the prediction template is located above or to the left of the prediction block; or
[0110] The prediction template is located above or on the left side of the prediction block.
[0111] Optionally, a method for obtaining a reconstruction value of a target template corresponding to the target image block includes:
[0112] The reconstructed value of the target template corresponding to the target image block is determined according to pixels of the reconstructed image above or to the left of the target image block.
[0113] Optionally, the at least two prediction blocks include a first prediction block, and a method for obtaining a first prediction value corresponding to the first prediction block includes at least one of the following:
[0114] Obtaining a first prediction value corresponding to the first prediction block by performing inter-frame prediction on the prediction template corresponding to the first prediction block;
[0115] determining a first prediction value corresponding to the first prediction block based on pixels in a reference frame corresponding to a prediction template corresponding to the first prediction block;
[0116] A first prediction value corresponding to the first prediction block is obtained by performing intra-frame prediction on the prediction template corresponding to the first prediction block.
[0117] Optionally, the prediction mode includes at least one of the following: intra-frame prediction mode, inter-frame prediction mode, intra-frame block copy mode, and color version mode.
[0118] It should be noted that the device embodiment corresponds to the above method, and all implementation methods in the above method embodiment are applicable to the device embodiment and can achieve the same technical effects.
[0119] The image block prediction device in the embodiments of the present application can be an electronic device, such as an electronic device with an operating system, or a component of an electronic device, such as an integrated circuit or chip. The electronic device can be a terminal or other device other than a terminal. For example, the terminal can include, but is not limited to, the types of terminal 11 listed above. Other devices can include servers, network attached storage (NAS), etc., and are not specifically limited in the embodiments of the present application.
[0120] The image block prediction device provided in the embodiment of the present application can implement each process implemented by the method embodiment of Figure 1 and achieve the same technical effect. To avoid repetition, it will not be described here.
[0121] An embodiment of the present application further provides an electronic device, including a processor and a communication interface, wherein the processor is configured to determine a reconstructed value of a target template corresponding to a target image block and at least two first prediction values of prediction templates corresponding to at least two prediction blocks corresponding to the target image block;
[0122] Performing fitting according to the reconstructed value and the at least two first prediction values to obtain model parameters, where the model parameters are parameters of a fusion prediction model corresponding to the target image block;
[0123] A fused prediction value of the target image block is determined according to the model parameters and at least two second prediction values corresponding to the target image block.
[0124] Optionally, the fusion prediction model includes: a linear prediction model or a nonlinear prediction model.
[0125] Optionally, the first predicted value is located in the original domain or the mapped domain; or
[0126] The reconstructed value is located in the original domain or the mapped domain.
[0127] Optionally, the pixels corresponding to the prediction template are reconstructed pixels or predicted pixels.
[0128] Optionally, the prediction template is located above or to the left of the prediction block; or
[0129] The prediction template is located above or on the left side of the prediction block.
[0130] Optionally, the processor is configured to:
[0131] A reconstruction value of a target template corresponding to the target image block is determined according to pixels of a reconstructed image above or to the left of the target image block.
[0132] Optionally, the processor is configured to implement at least one of the following:
[0133] Obtaining a first prediction value corresponding to the first prediction block by performing inter-frame prediction on the prediction template corresponding to the first prediction block;
[0134] determining a first prediction value corresponding to the first prediction block based on pixels in a reference frame corresponding to a prediction template corresponding to the first prediction block;
[0135] A first prediction value corresponding to the first prediction block is obtained by performing intra-frame prediction on the prediction template corresponding to the first prediction block.
[0136] Optionally, the prediction mode includes at least one of the following: intra-frame prediction mode, inter-frame prediction mode, intra-frame block copy mode, and color version mode.
[0137] The electronic device embodiment corresponds to the above method embodiment, and each implementation process and implementation method of the above method embodiment are applicable to the electronic device embodiment and can achieve the same technical effect. Specifically, Figure 6 is a hardware structure diagram of an electronic device that implements the embodiment of the present application.
[0138] The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609 and at least some of the components of the processor 610.
[0139] Those skilled in the art will appreciate that the electronic device 600 may further include a power source (e.g., a battery) to power various components. The power source may be logically connected to the processor 610 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG6 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components or arrange the components differently, which will not be described in detail here.
[0140] It should be understood that in an embodiment of the present application, the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and at least one of other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0141] In this embodiment of the present application, after receiving downlink data from the access network device, the radio frequency unit 601 can transmit the data to the processor 610 for processing. In addition, the radio frequency unit 601 can send uplink data to the network-side device. Generally, the radio frequency unit 601 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, etc.
[0142] The memory 609 can be used to store software programs or instructions and various data. The memory 609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 609 may include a volatile memory or a non-volatile memory, or the memory 609 may include both volatile and non-volatile memories. Among them, the non-volatile memory may 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 may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 609 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0143] Processor 610 may include one or more processing units. Optionally, processor 610 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 610.
[0144] The processor 610 is configured to:
[0145] Determining a reconstruction value of a target template corresponding to a target image block and at least two first prediction values of prediction templates corresponding to at least two prediction blocks corresponding to the target image block;
[0146] Performing fitting according to the reconstructed value and the at least two first prediction values to obtain model parameters, where the model parameters are parameters of a fusion prediction model corresponding to the target image block;
[0147] A fused prediction value of the target image block is determined according to the model parameters and at least two second prediction values corresponding to the target image block.
[0148] Optionally, the fusion prediction model includes: a linear prediction model or a nonlinear prediction model.
[0149] Optionally, the first predicted value is located in the original domain or the mapped domain; or
[0150] The reconstructed value is located in the original domain or the mapped domain.
[0151] Optionally, the pixels corresponding to the prediction template are reconstructed pixels or predicted pixels.
[0152] Optionally, the prediction template is located above or to the left of the prediction block; or
[0153] The prediction template is located above or on the left side of the prediction block.
[0154] Optionally, the processor 610 is configured to:
[0155] A reconstruction value of a target template corresponding to the target image block is determined according to pixels of a reconstructed image above or to the left of the target image block.
[0156] Optionally, the processor 610 is configured to implement at least one of the following:
[0157] Obtaining a first prediction value corresponding to the first prediction block by performing inter-frame prediction on the prediction template corresponding to the first prediction block;
[0158] determining a first prediction value corresponding to the first prediction block based on pixels in a reference frame corresponding to a prediction template corresponding to the first prediction block;
[0159] A first prediction value corresponding to the first prediction block is obtained by performing intra-frame prediction on the prediction template corresponding to the first prediction block.
[0160] Optionally, the prediction mode includes at least one of the following: intra-frame prediction mode, inter-frame prediction mode, intra-frame block copy mode, and color version mode.
[0161] Preferably, an embodiment of the present application also provides an electronic device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the various processes of the above-mentioned image block prediction method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they will not be described here.
[0162] An embodiment of the present application also provides a computer-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned image block prediction method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0163] The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0164] Optionally, as shown in Figure 7, an embodiment of the present application also provides a communication device 700, including a processor 701 and a memory 702, wherein the memory 702 stores a program or instruction that can be run on the processor 701, and when the program or instruction is executed by the processor 701, the various steps of the above-mentioned image block prediction method embodiment are implemented and the same technical effect can be achieved.
[0165] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image block prediction method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0166] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0167] An embodiment of the present application further provides a computer program / program product, which is stored in a storage medium. The computer program / program product is executed by at least one processor to implement the various processes of the above-mentioned information transmission method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0168] An embodiment of the present application further provides an image block prediction system, comprising: an image block prediction device, wherein the image block prediction device can be used to execute the steps of the above-mentioned image block prediction method.
[0169] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0170] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0171] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. An image block prediction method, comprising: Determine a reconstruction value of a target template corresponding to a target image block and at least two first prediction values corresponding to at least two prediction blocks of the target image block, wherein the at least two first prediction values include a first prediction value of a prediction template corresponding to each prediction block of the at least two prediction blocks; Perform fitting according to the reconstructed value and the at least two first prediction values to obtain model parameters, where the model parameters are parameters of a fusion prediction model corresponding to the target image block; A fused prediction value of the target image block is determined according to the model parameters and at least two second prediction values corresponding to the at least two prediction blocks, wherein the second prediction value is obtained by predicting the target image block according to a prediction mode.
2. The method according to claim 1, wherein: The fusion prediction model includes: a linear prediction model or a nonlinear prediction model.
3. The method according to claim 1 or 2, wherein: The first predicted value is located in the original domain or the mapped domain; or The reconstructed values are located in the original domain or the mapped domain.
4. The method according to claim 1 or 2, wherein: The pixels corresponding to the prediction template are reconstructed pixels or predicted pixels.
5. The method according to claim 1 or 2, wherein: The prediction template is located above or on the left side outside the prediction block; or The prediction template is located above or on the left side of the prediction block.
6. The method according to any one of claims 1 to 5, wherein: The method for obtaining the reconstruction value of the target template corresponding to the target image block includes: The reconstruction value of the target template corresponding to the target image block is determined according to the pixels of the reconstructed image above or on the left side of the target image block.
7. The method according to any one of claims 1 to 5, wherein: The at least two prediction blocks include a first prediction block, and obtaining a first prediction value corresponding to the first prediction block includes at least one of the following: Obtaining a first prediction value corresponding to the first prediction block by performing inter-frame prediction on a prediction template corresponding to the first prediction block; Determine a first prediction value corresponding to the first prediction block based on pixels in a reference frame corresponding to a prediction template corresponding to the first prediction block; A first prediction value corresponding to the first prediction block is obtained by performing intra-frame prediction on a prediction template corresponding to the first prediction block.
8. The method according to any one of claims 1 to 5, wherein: The prediction mode includes at least one of the following: intra-frame prediction mode, inter-frame prediction mode, intra-frame block copy mode, and color palette mode.
9. An image block prediction device, comprising: The first determination module is used to determine the reconstruction value of the target template corresponding to the target image block and the reconstruction value of the target image block. At least two first prediction values corresponding to at least two prediction blocks, the at least two first prediction values comprising a first prediction value of a prediction template corresponding to each prediction block in the at least two prediction blocks; an acquisition module, configured to perform fitting according to the reconstructed value and the at least two first prediction values to acquire model parameters, wherein the model parameters are parameters of a fusion prediction model corresponding to the target image block; The second determination module is used to determine the fused prediction value of the target image block according to the model parameters and at least two second prediction values corresponding to the at least two prediction blocks, where the second prediction value is obtained by predicting the target image block according to a prediction mode.
10. The device according to claim 9, wherein: The fusion prediction model includes: a linear prediction model or a nonlinear prediction model.
11. The device according to claim 9 or 10, wherein: The first predicted value is located in the original domain or the mapped domain; or The reconstructed values are located in the original domain or the mapped domain.
12. The device according to claim 9 or 10, wherein: The pixels corresponding to the prediction template are reconstructed pixels or predicted pixels.
13. The device according to claim 9 or 10, wherein: The prediction template is located above or on the left side outside the prediction block; or The prediction template is located above or on the left side of the prediction block.
14. The device according to any one of claims 9 to 13, wherein: The method for obtaining the reconstruction value of the target template corresponding to the target image block includes: The reconstruction value of the target template corresponding to the target image block is determined according to the pixels of the reconstructed image above or on the left side of the target image block.
15. The device according to any one of claims 9 to 13, wherein: The at least two prediction blocks include a first prediction block, and a method for obtaining a first prediction value corresponding to the first prediction block includes at least one of the following: Obtaining a first prediction value corresponding to the first prediction block by performing inter-frame prediction on a prediction template corresponding to the first prediction block; Determine a first prediction value corresponding to the first prediction block based on pixels in a reference frame corresponding to a prediction template corresponding to the first prediction block; A first prediction value corresponding to the first prediction block is obtained by performing intra-frame prediction on a prediction template corresponding to the first prediction block.
16. The device according to any one of claims 9 to 13, wherein: The prediction mode includes at least one of the following: intra-frame prediction mode, inter-frame prediction mode, intra-frame block copy mode, and color palette mode.
17. An electronic device comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the image block prediction method according to any one of claims 1 to 8 are implemented.
18. A readable storage medium storing a program or instruction, wherein the program or instruction, when executed by a processor, implements the steps of the image block prediction method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Bidirectional inter-frame prediction method and device
CN110121073A
Intra-frame prediction method, video / image coding and decoding method and related device
CN113489974A
Encoding method, decoding method, encoder, decoder, and electronic device
WO2022155923A1
