Image component prediction method, encoder, decoder, and storage medium
By selecting a reference pixel subset to calculate model parameters, the method addresses the inefficiencies in existing predictive models, enhancing accuracy and efficiency in image processing.
Patent Information
- Application Number
- JP2024112963
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2019-03-25
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2039-10-28
AI Technical Summary
Existing image processing technologies face challenges in constructing accurate predictive models due to high computational complexity and memory bandwidth requirements, often exacerbated by abnormal sample points, leading to inaccurate color correction in video images.
The method involves determining a reference pixel subset from a first reference pixel set to calculate model parameters, thereby reducing the number of pixels and removing unimportant or abnormal reference pixels, which improves the accuracy and efficiency of prediction models.
This approach enhances the accuracy and efficiency of image component prediction by reducing computational complexity and memory bandwidth while improving the precision of video image prediction.
Smart Images

Figure 2024138498000001_ABST
Abstract
Description
[Technical field]
[0001] FIELD OF THE DISCLOSURE The embodiments of the present application relate to the field of image processing technology, and in particular to an image component prediction method, an encoder, a decoder and a storage medium. [Background technology]
[0002] Since the color information of a video image is always affected by the color deviation of the light source, the collection device, etc., the color as a whole shifts in a certain direction, which is a common phenomenon such as cooler colors, yellowing of photos, etc. In order to offset such color deviation of the entire video image, currently, an illumination compensation (IC) technique or a local illumination compensation (LIC) technique has been proposed to perform color correction of the video image.
[0003] In either IC or LIC technology, a prediction model needs to be constructed, and then a prediction value of a video image during video encoding and decoding is derived from the constructed prediction model. However, during the construction of the prediction model, the number of sample points currently used to derive the model parameters is large, the computational complexity and memory bandwidth are too high, and at the same time, there may be abnormal sample points among these sample points, resulting in inaccurate construction of the prediction model. Summary of the Invention [Means for solving the problem]
[0004] The embodiments of the present application provide an image component prediction method, an encoder, a decoder and a storage medium, which not only reduces the computational complexity and memory bandwidth by reducing the number of pixels in a reference pixel set, but also improves the accuracy of the prediction model, thereby improving the prediction accuracy of the image component to be predicted, and improving the prediction efficiency of video images.
[0005] The technical solutions in the embodiments of the present application may be realized as follows.
[0006] In a first aspect, a method for predicting an image component according to an embodiment of the present application includes: determining a first set of reference pixels of an image component to be predicted of a current block; determining a reference pixel subset from a first reference pixel set, the reference pixel subset including one or more candidate pixels selected from the first reference pixel set; and calculating model parameters of a prediction model using a reference pixel subset, the prediction model being used to perform an inter-component prediction process on an image component to be predicted of the current block.
[0007] In a second aspect, an encoder according to an embodiment of the present application comprises a first determining unit and a first calculating unit; The first determination unit is configured to determine a first set of reference pixels of a to-be-predicted image component of a current block; The first determining unit is further configured to determine a reference pixel subset from the first reference pixel set, the reference pixel subset including one or more candidate pixels selected from the first reference pixel set; The first calculation unit is configured to calculate model parameters of a prediction model using a reference pixel subset, where the prediction model is used to perform an inter-component prediction process on an image component to be predicted of the current block.
[0008] In a third aspect, an encoder according to an embodiment of the present application comprises a first memory and a first processor; the first memory is configured to store a computer program executable by the first processor; The computer program is configured to execute the method according to the first aspect.
[0009] In a fourth aspect, a decoder according to an embodiment of the present application comprises a second determining unit and a second calculating unit; The second determination unit is configured to determine a first set of reference pixels of the image component to be predicted of the current block; The second determining unit is further configured to determine a reference pixel subset from the first reference pixel set, the reference pixel subset including one or more candidate pixels selected from the first reference pixel set; The second calculation unit is configured to calculate model parameters of a prediction model using the reference pixel subset, where the prediction model is used to perform an inter-component prediction process on the image component to be predicted of the current block.
[0010] In a fifth aspect, a decoder according to an embodiment of the present application comprises a second memory and a second processor, the second memory is configured to store a computer program executable by the second processor; The second processor is configured to execute the computer program to perform the method of the first aspect.
[0011] In a sixth aspect, a computer-readable storage medium according to an embodiment of the present application stores an image component prediction program, and when the image component prediction program is executed by a first processor or a second processor, causes the first processor or the second processor to execute the method described in the first aspect. Effect of the Invention
[0012] The embodiments of the present application provide an image component prediction method, an encoder, a decoder and a storage medium, which comprises: determining a first reference pixel set of an image component to be predicted of a current block; determining a reference pixel subset from the first reference pixel set, the reference pixel subset including one or more candidate pixels selected from the first reference pixel set; calculating model parameters of a prediction model using the reference pixel subset; and using the prediction model to perform inter-component prediction processing on the image component to be predicted of the current block; thus, through a screening process of the first reference pixel set, unimportant reference pixels or abnormal reference pixels can be removed, so that the number of pixels in the first reference pixel set is reduced, and not only can the calculation complexity and memory bandwidth be reduced, but also the accuracy of the prediction model can be improved; and the prediction model is used to realize a prediction process of the image component to be predicted by the model parameters, so that the prediction accuracy of the image component to be predicted is improved, and the prediction efficiency of the video image is improved. [Brief description of the drawings]
[0013] [Figure 1] 2 is a flow chart of an image component prediction method according to an embodiment of the present application; [Figure 2A] FIG. 2 is a structural schematic diagram of a reference pixel position according to an embodiment of the present application; [Figure 2B] FIG. 13 is a structural schematic diagram of another reference pixel location according to an embodiment of the present application; [Diagram 3] FIG. 13 is a structural schematic diagram of selecting a neighboring reference pixel subset on the top edge of a current block according to an embodiment of the present application; [Figure 4] FIG. 13 is a structural schematic diagram of selecting a neighboring reference pixel subset on the top edge of another current block according to an embodiment of the present application; [Diagram 5] FIG. 2 is a comparative structural schematic diagram of a predictive model according to an embodiment of the present application. [Figure 6] 4 is a flowchart of another image component prediction method according to an embodiment of the present application. [Figure 7]FIG. 2 is a schematic diagram of the configuration of an encoder according to an embodiment of the present application; [Figure 8] FIG. 2 is a schematic diagram of a specific hardware structure of an encoder according to an embodiment of the present application; [Figure 9] FIG. 2 is a schematic diagram of a configuration structure of a decoder according to an embodiment of the present application; [Figure 10] FIG. 2 is a schematic diagram of a specific hardware structure of a decoder according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] In order to provide a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application will be described in detail below in combination with the drawings, and the accompanying drawings are only used for reference and description, and are not used to limit the embodiments of the present application.
[0015] In a video image, a coding block (CB) is generally characterized using a first image component, a second image component and a third image component, where these three image components are a luma component, a blue chroma component and a red chroma component, respectively; specifically, the luma component is usually represented by the symbol Y, the blue chroma component is usually represented by the symbol Cb or U, and the red chroma component is usually represented by the symbol Cr or V; thus, the video image may be represented in YCbCr format or in YUV format.
[0016] In an embodiment of the present application, the first image component may be a luminance component, the second image component may be a blue chrominance component, and the third image component may be a red chrominance component, but is not specifically limited in the embodiment of the present application.
[0017] In the current video image or video encoding and decoding process, not only the inter-component prediction technique needs to use the construction of a prediction model, but also the prediction technique within an image component needs to use the construction of a prediction model. Here, the inter-component prediction technique mainly includes a cross-component linear model prediction (CCLM: Cross-component Linear Model Prediction) mode and a multi-directional linear model prediction (MDLM: Multi-Directional Linear Model Prediction) mode, where the prediction model constructed by the CCLM mode and the MDLM mode can realize prediction between image components such as a first image component to a second image component, a second image component to a first image component, a first image component to a third image component, a third image component to a first image component, a second image component to a third image component, or a third image component to a second image component. The prediction technique within the image component mainly includes a chromaticity component compensation technique and a luminance component compensation technique such as IC technique or LIC technique, and the prediction model constructed by the prediction technique within the image component can realize the prediction technique within the image component such as prediction of the first image component by the first image component, prediction of the second image component by the second image component, or prediction of the third image component by the third image component. In the embodiments of the present application, the prediction model constructed by the prediction technique within the image component will be mainly taken as an example below.
[0018] In order to ensure the accuracy of the model parameters used in the prediction model, the reference pixel set configured for deriving the model parameters needs to be more accurate. Based on this, an embodiment of the present application provides an image component prediction method, in which a first reference pixel set of the image component to be predicted of a current block is determined, a reference pixel subset is determined from the first reference pixel set, the reference pixel subset includes one or more candidate pixels selected from the first reference pixel set, the reference pixel subset is used to calculate model parameters of a prediction model, and the prediction model is used to perform an inter-component prediction process on the image component to be predicted of the current block, in this way, the screening process of the first reference pixel set can remove unimportant reference pixels or abnormal reference pixels, so that the number of pixels in the first reference pixel set is reduced, which can not only reduce the computational complexity and memory bandwidth, but also improve the accuracy of the prediction model, and further improve the prediction accuracy of the image component to be predicted, thereby improving the prediction efficiency of the video image.
[0019] It should be noted that the image component prediction method of the embodiment of the present application can be applied not only to a video encoding system but also to a video decoding system, and can even be applied to both a video encoding system and a video decoding system, and is not specifically limited in the embodiment of the present application.In addition, when the method is applied to a video encoding system, the "current block" specifically refers to the current encoding block in intra prediction, and when the method is applied to a video decoding system, the "current block" specifically refers to the current decoded block in intra prediction.
[0020] Each embodiment of the present application will be described in detail below in conjunction with the drawings.
[0021] Please refer to FIG. 1, which shows a flow chart of an image component prediction method according to an embodiment of the present application. The method includes: A step S101 of determining a first set of reference pixels of an image component to be predicted of a current block; determining a reference pixel subset from the first reference pixel set, the reference pixel subset including one or more candidate pixels selected from the first reference pixel set; and step S103, a step of calculating model parameters of a prediction model using the reference pixel subset, the prediction model being used to perform inter-component prediction processing on an image component to be predicted of the current block.
[0022] In addition, the video image may be divided into a plurality of image blocks, and each of the image blocks currently waiting to be coded may be called a current block. Here, each of the current blocks may include a first image component, a second image component, and a third image component, and the current block is a current block of the video image where the prediction of the first image component, the second image component, or the third image component is performed. Here, when the first image component needs to be predicted by a prediction model, the image component to be predicted is the first image component, when the second image component needs to be predicted by a prediction model, the image component waiting to be predicted is the second image component, and when the third image component needs to be predicted by a prediction model, the image component to be predicted is the third image component.
[0023] It should be noted that the first reference pixel set is a reference pixel set corresponding to the prediction model constructed in the current related technical solution. In the first reference pixel set, there may be some unimportant reference pixels (for example, these reference pixels have low correlation) or some abnormal reference pixels, and in order to ensure the accuracy of the prediction model, these reference pixels need to be removed, thus obtaining a reference pixel subset, and based on the reference pixel subset, the accuracy of the prediction model can be ensured, so as to improve the prediction efficiency of the image components to be predicted.
[0024] In an embodiment of the present application, firstly, a first reference pixel set of an image component to be predicted of a current block is determined, and then a reference pixel subset is determined from the first reference pixel set, where the reference pixel subset includes one or more candidate pixels selected from the first reference pixel set; the reference pixel subset is used to calculate model parameters of a prediction model, and the prediction model is used to perform an inter-component prediction process on the image component to be predicted of the current block; in this way, unimportant reference pixels or abnormal reference pixels can be removed through the screening process of the first reference pixel set, so that the number of pixels in the first reference pixel set is reduced, which not only can reduce the calculation complexity and memory bandwidth, but also can improve the accuracy of the prediction model, further improving the prediction accuracy of the image component to be predicted, and improving the prediction efficiency of the video image.
[0025] Furthermore, the determination of the first reference pixel set may be obtained based on adjacent reference pixels around the current block, or based on adjacent reference pixels within the reconstruction block, which are not specifically limited in the embodiments of the present application and will be described respectively below.
[0026] Optionally, in some embodiments, the step of determining a first set of reference pixels of an image component to be predicted of the current block in step S101 includes: obtaining a reference pixel outside the current block and adjacent to at least one edge of the current block, the at least one edge of the current block including at least one of a top edge, a left edge, a top right edge, and a bottom left edge; obtaining the first set of reference pixels based on the obtained reference pixels.
[0027] Illustratively, refer to Fig. 2A, which shows a structural schematic diagram of a reference pixel position according to an embodiment of the present application. In Fig. 2A, the reference pixel is located around the current block, i.e., the reference pixel is adjacent to at least one side of the current block, and the at least one side of the current block can point to the left side of the current block, can point to the top side of the current block, or can even point to the left side and the top side of the current block, which is not specifically limited in the embodiment of the present application.
[0028] When at least one edge of the current block is a left edge and / or a top edge, the step S101 of determining a first reference pixel set of an image component to be predicted of the current block includes: obtaining a reference pixel adjacent to at least one edge of the current block, the at least one edge including a left edge of the current block and / or a top edge of the current block; It can be appreciated that the method may further include obtaining the first set of reference pixels based on the obtained reference pixels.
[0029] In addition, at least one edge of the current block may include the left edge of the current block and / or the top edge of the current block, i.e., at least one edge of the current block may point to the top edge of the current block, may point to the left edge of the current block, or may even point to both the top edge and the left edge of the current block, which is not specifically limited in the embodiments of the present application.
[0030] Thus, if the left adjacent region and the upper adjacent region are all valid regions, the first reference pixel set may be composed of the reference pixel adjacent to the left edge of the current block and the reference pixel adjacent to the top edge of the current block; if the left adjacent region is a valid region but the upper adjacent region is an invalid region, the first reference pixel set may be composed of the reference pixel adjacent to the left side of the current block; if the left adjacent region is an invalid region but the upper adjacent region is a valid region, the first reference pixel set may be composed of the reference pixel adjacent to the top edge of the current block.
[0031] When at least one edge of the current block is a column adjacent to the left edge and the lower left edge, and / or a row adjacent to the upper edge and the upper right edge, the step S101 of determining a first reference pixel set of the image component to be predicted of the current block includes: obtaining reference pixels in reference rows or columns adjacent to the current block, the reference rows being comprised of rows adjacent to the top and upper right edges of the current block, and the reference columns being comprised of columns adjacent to the left and lower left edges of the current block; It can be appreciated that the method may further include obtaining the first set of reference pixels based on the obtained reference pixels.
[0032] In addition, the reference row adjacent to the current block may be a row adjacent to the top edge and the top right edge of the current block, and the reference column adjacent to the current block may be a column adjacent to the left edge and the bottom left edge of the current block, and the reference row or column adjacent to the current block may refer to a reference row adjacent to the top edge of the current block, may be a reference column adjacent to the left edge of the current block, or may even be a reference row or column adjacent to the other edge of the current block, and are not specifically limited in the embodiments of the present application. For ease of explanation, in the embodiments of the present application, the reference row adjacent to the current block is described by taking the reference row adjacent to the top edge as an example, and the reference column adjacent to the current block is described by taking the reference column adjacent to the left edge as an example.
[0033] Here, the reference pixels in the reference row adjacent to the current block may include reference pixels adjacent to the top edge and the top right edge (also referred to as adjacent reference pixels corresponding to the top edge and the top right edge), where the top edge represents the top edge of the current block, and the top right edge represents a side length equal to the height of the current block when the top edge of the current block is extended horizontally to the right; the reference pixels in the reference column adjacent to the current block may further include reference pixels adjacent to the left edge and the bottom left edge (also referred to as adjacent reference pixels corresponding to the left edge and the bottom left edge), where the left edge represents the left edge of the current block, and the bottom left edge represents a side length equal to the width of the current decoded block when the left edge of the current block is extended vertically downward, but are not specifically limited in the embodiments of the present application.
[0034] Thus, if the left adjacent region and the bottom-left adjacent region are valid regions, the first set of reference pixels may consist of reference pixels in a reference column adjacent to the current block, and if the top adjacent region and the top-right adjacent region are valid regions, the first set of reference pixels may consist of reference pixels in a reference row adjacent to the current block.
[0035] Optionally, in some embodiments, the step of determining a first set of reference pixels of an image component to be predicted of the current block in step S101 includes: Obtaining reference pixels in a reconstructed block adjacent to at least one edge of the reconstructed block, the reconstructed block being an image block adjacent to the current block and having been coded and reconstructed, the at least one edge of the reconstructed block including a bottom edge, a right edge, or a bottom edge and a right edge; obtaining the first set of reference pixels based on the obtained reference pixels.
[0036] Illustratively, refer to Fig. 2B, which shows a structural schematic diagram of a reference pixel position according to an embodiment of the present application. In Fig. 2B, the reference pixel is located inside the reconstructed block, i.e., is a reference pixel adjacent to at least one side of the reconstructed block, and the at least one side of the reconstructed block can refer to the right side of the reconstructed block, can also refer to the bottom side of the reconstructed block, and can even refer to the right side and bottom side of the reconstructed block, which is not specifically limited in the embodiment of the present application.
[0037] In addition, from the viewpoint of constructing a prediction model, the reference pixel may be called "pixel used to construct a prediction model", and the current block has already been in the coding and reconstruction stage, and at this time, once a prediction model is constructed, the prediction model can be easily used for other coding blocks in the subsequent image.In addition, for a reconstructed block, the adjacent reference pixels in the reconstructed block can be used to obtain a first set of reference pixels, which is convenient for the subsequent construction of the prediction model of the current block; on the other hand, the prediction model corresponding to the reconstructed block can be directly borrowed and used as the current prediction model, that is, for the current block being coded, the related information of the reconstructed block in the neighboring area can be used by directly utilizing the corresponding prediction model, and there is no need to reconstruct the prediction model with the reference pixels adjacent to the reconstructed block.
[0038] Furthermore, after the first reference pixel set is obtained, there may be some unimportant reference pixels (e.g., these reference pixels have low correlation) or some abnormal reference pixels in the first reference pixel set, and these reference pixels need to be removed to ensure the accuracy of the derivation of model parameters, thereby obtaining a reference pixel subset; thus, based on the reference pixel subset, the accuracy of the prediction model can be ensured, thereby improving the prediction efficiency of the image components to be processed.
[0039] In some embodiments, determining a reference pixel subset based on the first reference pixel set in S102 comprises: determining a candidate location for a candidate pixel based on at least one edge of the current block or the reconstructed block; selecting a reference pixel from the first reference pixel set that corresponds to the candidate location and forming the reference pixel subset using the selected reference pixel.
[0040] Furthermore, the step of determining a candidate position of a candidate pixel based on at least one edge of the current block or the reconstructed block includes: The candidate locations may be determined based on pixel locations corresponding to reference pixels adjacent to the at least one side.
[0041] Furthermore, the step of determining a candidate position of a candidate pixel based on at least one edge of the current block or the reconstructed block includes: The candidate locations may be determined based on image component intensity values corresponding to reference pixels adjacent to the at least one edge.
[0042] Furthermore, the step of determining a candidate position of a candidate pixel based on at least one edge of the current block or the reconstructed block includes: The candidate locations may be determined based on pixel locations and image component intensity values corresponding to reference pixels adjacent the at least one edge.
[0043] In addition, the image component intensity may be expressed by an image component value such as a luminance value, a chromaticity value, etc., where a larger image component value indicates a higher image component intensity. In the embodiment of the present application, the selected reference pixel may be selected according to a candidate position of a candidate pixel, where the candidate position may be determined based on a pixel position or may be determined based on an image component intensity value (such as a luminance value, a chromaticity value), and is not specifically limited in the embodiment of the present application.
[0044] It should be noted that the reference pixel subset is constructed by performing a filtering process on the first reference pixel set and then selecting some reference pixels, and the model parameters are calculated based on the reference pixel subset. In this way, the number of samples in the reference pixel subset is reduced, and the number of samples required for calculating the model parameters is also reduced, so that the purpose of reducing the computational complexity and memory bandwidth (or referred to as storage device bandwidth) can be achieved.
[0045] It can be understood that in the embodiment of the present application, the selected part of the reference pixels may be selected according to the pixel positions corresponding to the reference pixels, or may be selected based on the image component intensity values (brightness values, chromaticity values, etc.) corresponding to the reference pixels, and are not specifically limited in the embodiment of the present application. Here, the first reference pixel set is screened based on either the pixel positions corresponding to the reference pixels or the image component intensity values corresponding to the reference pixels to select suitable reference points, and further a reference pixel subset is constructed, thus making the model parameters derived based on the reference pixel subset more accurate, thereby. , a predictive model built based on the model parameters can also become more accurate.
[0046] In some embodiments, determining a candidate location for a candidate pixel based on at least one edge of the current block or the reconstructed block comprises: determining a predetermined number of candidate pixels, the predetermined number of candidate pixels representing a number of pixels sampled from a reference pixel adjacent to the at least one edge; determining the candidate positions based on the predetermined number of candidate pixels and a length of the at least one side, wherein the length of the at least one side is equal to a number of pixels included in the at least one side.
[0047] In addition, the related information of the reconstructed block may be used by directly utilizing the corresponding prediction model without constructing a prediction model by reference pixels adjacent to the reconstructed block, therefore, in the embodiments of the present application, at least one edge of the current block is mainly taken as an example to describe how to determine the candidate position of the candidate pixel.
[0048] It should be noted that the preset number of pixels represents the preset number of pixels waiting to be sampled, i.e., the number of pixels included in the reference pixel subset. Taking pixel positions as an example, after the preset number of candidate pixels is determined, the candidate positions of the candidate pixels can be calculated based on the length of at least one side and the preset number of candidate pixels, and then the reference pixel subset can be constructed by selecting appropriate reference pixels from the first reference pixel set based on the candidate positions. In this way, since the model parameters calculated based on the reference pixel subset are more accurate, the constructed prediction model is also more accurate, and the prediction accuracy of the image components to be predicted is further improved, thereby improving the prediction efficiency of the video image.
[0049] Further, the determining of the candidate positions may include first calculating a first sampling interval, and then performing a sampling process on the at least one edge based on the first sampling interval to determine the candidate positions of the candidate pixels corresponding to the at least one edge. Thus, in some embodiments, the step of determining the candidate positions of the candidate pixels based on at least one edge of the current block or the reconstructed block may include: calculating a first sampling interval based on the predetermined number of candidate pixels and a length of the at least one edge; determining a reference point from the at least one edge and determining the candidate locations according to the first sampling interval.
[0050] In addition, the reference point may be the midpoint of the at least one side, may be the first reference pixel position to the left of the midpoint of the at least one side, may be the first reference pixel position to the right of the midpoint of the at least one side, or may even be another reference pixel position of the at least one side, and is not specifically limited in the embodiments of the present application.
[0051] Specifically, a midpoint of the at least one side can be determined based on the length of the at least one side, and then the midpoint of the at least one side can be used as the reference point, where the reference point can be the midpoint of the at least one side, a first reference pixel position to the left of the midpoint of the at least one side, a first reference pixel position to the right of the midpoint of the at least one side, or even another reference pixel position of the at least one side, and is not specifically limited in the embodiments of the present application.
[0052] In addition, considering that the importance of a reference pixel adjacent to at least one side of the current block is related to its corresponding position, it is necessary to select a reference pixel at the middle position of the side as much as possible and eliminate points with low importance (such as reference pixels at the edges on both sides of the side) so that the reference pixels in the reference pixel subset can represent the characteristics of the entire adjacent side. In the embodiment of the present application, taking the top side of the current block as an example, the first reference pixel position on the right or left side of the middle position can be used as the reference point of the side, and taking the left side of the current block as an example, the first reference pixel position on the lower or upper side of the middle position can be used as the reference point of the side.
[0053] Alternatively, before the reference point is determined, a preset number of reference pixels corresponding to an end position of one side of the current block may be first removed, or an initial offset may be performed on the side according to a preset offset amount from the end position, to obtain a new side using the offset reference pixel position as a starting point, and then the intermediate position corresponding to the new side may be used as a reference point; accordingly, a preset number of reference pixels corresponding to the start position of one side of the current block may be first removed, or an initial offset may be performed on the side according to a preset offset amount from the starting position, to obtain a new side using the offset reference pixel position as a starting point, and then the intermediate position corresponding to the new side may be used as a reference point.
[0054] In practical application, since the length of the left side or top side of the current block is an integer multiple of 2, the middle position of the left side or top side of the current block is in the middle of two points. In the example of FIG. 3, the first pixel on the left side of the middle position is used as the middle point of the side, but as shown in FIG. 4, in the embodiment of the present application, the first pixel on the right side of the middle position can also be used as the middle point of the side. In FIG. 3, the first pixel on the left side of the middle position (e.g., 3 in FIG. 3) is used as the middle point of the side, but if the number of pre-set samples is 2, it can be determined that the reference pixel positions waiting to be selected (example of gray points in FIG. 3) are 1 and 5, and the reference pixels corresponding to them can be selected based on these reference pixel positions to form a reference pixel subset. Therefore, in the embodiment of the present application, for the top edge of the current block, the first pixel to the right of the midpoint may be used as the midpoint of that edge, and the first pixel to the left of the midpoint may be used as the midpoint of that edge, which is not specifically limited in the embodiment of the present application, and for the left edge of the current block, the first pixel below the midpoint may be used as the midpoint of that edge, and the first pixel above the midpoint may be used as the midpoint of that edge, which is not specifically limited in the embodiment of the present application.
[0055] Unless otherwise specified, the following description will be given using the top edge of the current block as an example, but the image component prediction method in the embodiments of the present application can also be applied to the left edge of the current block, and even the right edge of the reconstructed block or the bottom edge of the reconstructed block, and is not specifically limited in the embodiments of the present application.
[0056] It can be seen that if the existence of adjacent reference pixels on the left or top edge of the current block is not taken into account, the construction of the second set of reference pixels can be performed according to equations (1) and (2);
number
number
[0057] JPEG2024138498000005.jpg85150
[0058] According to the preset number of candidate pixels and the length of one side of the current block, a first sampling interval corresponding to the side can be calculated. In addition, since the length of the left side or the top side of the current block is an integer multiple of 2, the middle position of the left side or the top side of the current block is between two points, and the calculated middle point value is a non-integer, and the calculated reference pixel position is also a non-integer; however, if the length of the left side or the top side of the current block is not an integer multiple of 2, the middle position of the left side or the top side of the current block is not between two points, and the calculated middle point value is an integer, and the calculated reference pixel position is also an integer, that is, the calculated middle point value may be an integer or a non-integer, and accordingly, the calculated reference pixel position may be an integer or a non-integer, and is not specifically limited in the embodiments of the present application.
[0059] In this way, if the calculated midpoint value is an integer, then the calculated reference pixel position is also an integer, and in this case, the calculated reference pixel position can be directly used as a candidate position; if the calculated midpoint value is a non-integer, then the calculated reference pixel position is also a non-integer, and in this case, the candidate position can be determined by rounding up and down.
[0060] Moreover, in some embodiments, after the first sampling interval is calculated, the method further comprises: adjusting the first sampling interval to obtain a second sampling interval; determining the candidate positions based on the reference points and according to the second sampling interval.
[0061] It should be noted that after the first sampling interval is calculated, the first sampling interval can be fine-tuned, for example, by adding or subtracting 1 to the first sampling interval, thereby obtaining the second sampling interval. For example, if the first sampling interval is 4, the second sampling interval after adjustment can be 3 or 5. In the embodiment of the present application, a small adjustment (for example, adding or subtracting 1) can be performed to adjust the first sampling interval, but the specific setting of the adjustment range is not specifically limited in the embodiment of the present application.
[0062] Moreover, in some embodiments, after the second sampling interval is obtained, the method further comprises: The method may further include determining, based on the reference point, a candidate position corresponding to one side of the reference point according to the first sampling interval, and determining a candidate position corresponding to the other side of the reference point according to the second sampling interval.
[0063] That is, after a reference point of at least one side of the current block is determined, uniform sampling can be performed according to a first sampling interval or a second sampling interval, or non-uniform sampling can be performed according to the first sampling interval and the second sampling interval, and the candidate positions determined after sampling can be distributed symmetrically on both sides of the reference point, or can be distributed asymmetrically on both sides of the reference point, which is not specifically limited in the embodiments of the present application.
[0064] Furthermore, since the reference pixel in the first reference pixel set that is highly related to the image component to be predicted of the current block is a reference pixel located at the middle position of at least one side, the reference pixel position of the preset number of consecutive samples near the middle position can be used as the reference pixel position to be selected, and the method may be called a solution for continuously obtaining points from the middle position. Specifically, assuming that the reference pixel positions on the first row / first column adjacent to the top or left side of the current block are numbered from 0, the number of adjacent reference pixels in the reference pixel subset configured in this embodiment and the corresponding reference pixel positions to be selected are shown in Table 1. In this case, the reference pixel subset can be configured using the reference pixel positions of the preset number of consecutive samples near the middle position as candidate positions.
[0065] [Table 1] Furthermore, in the screening process of the first reference pixel set, a skip process may be performed on the reference pixels of at least one side, i.e., unimportant or abnormal reference pixels may be skipped (also considered as a deletion process) to obtain a reference pixel subset, on the basis of which a second reference pixel set may be obtained after some reference pixels of at least one side are skipped, and a filtering process may be performed on the second reference pixel set to obtain a reference pixel subset. Thus, in some embodiments, the step of determining a candidate position of a candidate pixel based on at least one side of the current block or the reconstructed block may include: determining a preset number K of skip pixels corresponding to the at least one side, where K is a positive integer equal to or greater than 1; determining positions from the start and / or end positions of said at least one edge corresponding to K pixels to be skipped; skipping consecutive K pixels to be skipped from a start position and / or an end position of the at least one edge based on positions corresponding to the K pixels to be skipped to obtain at least one new edge; Determining the candidate location based on the at least one new edge and the preset number of candidate pixels may be included.
[0066] The preset number of skipped pixels represents a preset number of pixels to be deleted or skipped, the start position of at least one side represents the leftmost position of the top side of the current block or the topmost position of the left side of the current block, and the end position of at least one side represents the rightmost position of the top side of the current block or the bottommost position of the left side of the current block.
[0067] It should be noted that the value of K may be a preset reference pixel number such as 1, 2 or 4, and may be calculated based on the side length of the current block and the corresponding preset ratio, but in practical application, it is still set according to the actual situation, and is not specifically limited in the embodiment of the present application. Here, the preset ratio corresponding to the top side of the current block may be expressed by a first preset ratio, and the preset ratio corresponding to the left side of the current block may be expressed by a second preset ratio, and the values of the first preset ratio and the second preset ratio may be the same or different, and is not specifically limited in the embodiment of the present application.
[0068] In this way, assuming starting from the start position of at least one edge, if at least one edge is the top edge of the current block (which may also be referred to as the reference row of the current block), a position corresponding to K pixels to be skipped can be determined from the leftmost position of at least one edge, if at least one edge is the left edge of the current block (which may also be referred to as the reference column of the current block), a position corresponding to K pixels to be skipped can be determined from the topmost position of at least one edge; assuming starting from the end position of at least one edge, if at least one edge is the top edge of the current block, a position corresponding to K pixels to be skipped can be determined from the rightmost position of at least one edge, if at least one edge is the left edge of the current block, a position corresponding to K pixels to be skipped can be determined from the bottommost position of at least one edge; in actual applications, it is set according to actual situations, and is not specifically limited in the embodiments of the present application.
[0069] After the positions corresponding to the K pixels to be skipped are determined, assuming starting from a starting position of at least one edge, if at least one edge is a top edge of the current block, positions corresponding to K pixels to be skipped that are consecutive from the leftmost position of the top edge to the right can be determined, and then these K pixels can be successively skipped to obtain a new top edge, in which case, based on the length of the new top edge and a preset number of candidate pixels, a candidate position corresponding to the new top edge can be determined, and the selected candidate pixels can be used to form a reference pixel subset; if at least one edge is a left edge of the current block, positions corresponding to K pixels to be skipped that are consecutive from the topmost position of the left edge to the bottom can be determined, and then these K pixels can be successively skipped to obtain a new left edge, in which case, based on the length of the new left edge and a preset number of candidate pixels, a candidate position corresponding to the new left edge can be determined, and the selected candidate pixels can be used to form a reference pixel subset. Alternatively, assuming starting from an end position of at least one edge, if at least one edge is a top edge of the current block, a position corresponding to K consecutive pixels to be skipped from the rightmost position of the top edge to the left can be determined, and then these K pixels can be successively skipped to obtain a new top edge, in which case a candidate position corresponding to the new top edge can be determined based on the length of the new top edge and a preset number of candidate pixels, and the selected candidate pixels can be used to form a reference pixel subset; if at least one edge is a left edge of the current block, a position corresponding to K consecutive pixels to be skipped from the bottommost position of the left edge to the top can be determined, and then these K pixels can be successively skipped to obtain a new left edge, in which case a candidate position corresponding to the new left edge can be determined based on the length of the new left edge and a preset number of candidate pixels, and the selected candidate pixels can be used to form a reference pixel subset.
[0070] In this way, in the embodiment of the present application, a part of pixels (i.e., a reference pixel subset) in the first reference pixel set obtained from the reference pixels adjacent to the current block is used to derive model parameters corresponding to a complex model (e.g., a nonlinear model or a multi-model). Since unimportant or abnormal reference pixels are removed from the obtained subset (i.e., the reference pixel subset), the number of reference pixels is reduced, thus not only reducing the computational complexity and memory bandwidth, but also improving the accuracy of the complex model, thereby achieving the purpose of improving the prediction accuracy of the pending image components and the prediction efficiency of the video image.
[0071] Furthermore, after the reference pixel subset is determined, model parameters of a prediction model can be calculated based on the reference pixel subset to facilitate the construction of a prediction model. Thus, in some embodiments, the step of calculating model parameters of a prediction model using the reference pixel subset in step S103 can include: obtaining, based on the reference pixel subset, adjacent pixel reconstruction values of an image component to be predicted corresponding to the current block and adjacent pixel reconstruction values of an image component to be predicted corresponding to a reference block, where the current block is located in a video image of an N-th frame and the reference block is located in a video image of an N-1-th frame; and calculating model parameters based on adjacent pixel reconstruction values of an image component to be predicted corresponding to the current block and adjacent pixel reconstruction values of an image component to be predicted corresponding to the reference block.
[0072] It should be noted that the reference block and the current block are not located in the same frame, but are in an inter relationship, where the reference block and the current block are located in video images of different frames, and the frame in which the reference block is located is the frame before the frame in which the current block is located, that is, the current block is in the video image of the Nth frame, the reference block is in the video image of the N-1th frame, and there is a motion vector (MV) at the position of the current block in the video image of the Nth frame and the position of the current block in the video image of the N-1th frame.
[0073] JPEG2024138498000007.jpg51150
[0074] JPEG2024138498000008.jpg58150
[0075]
number
[0076] JPEG2024138498000011.jpg51150
number
[0077] JPEG2024138498000013.jpg67150
[0078] JPEG2024138498000014.jpg43150
number
[0079] JPEG2024138498000016.jpg50151
[0080] It should be noted that the prediction model in the embodiment of the present application may be a linear model or a nonlinear model. The nonlinear model may be a nonlinear form such as a quadratic curve, or may be a nonlinear form composed of multiple linear models, where the inter-component prediction technique of the multi-model CCLM (MMLM: Multiple Model CCLM) is a nonlinear form composed of multiple linear models. Referring to FIG. 5, it shows a comparative structure schematic diagram of the prediction model according to the embodiment of the present application. In FIG. 5, (a) shows that the prediction model is a linear model, which is derived from all reference pixels in the second reference pixel set, (b) shows that the prediction model is still a linear model, which is derived from the maximum and minimum values in the second reference pixel set, and (c) shows that the prediction model is a nonlinear model, which is an example of a nonlinear model composed of two linear models. In particular, the embodiment of the present application will be described as an example in which the prediction model is a linear model, but the image component prediction method of the embodiment of the present application may be applied to a nonlinear model as well.
[0081] In addition, the prediction model in the embodiment of the present application may be used not only for predicting the luminance component but also for predicting the chrominance component. Furthermore, the prediction model can realize updating of the predicted value of the image component to be predicted (such as the luminance component or the chrominance component), so that the prediction of the image component becomes more accurate, and the purpose of improving the prediction accuracy of the image component to be predicted and the prediction efficiency of the video image can be achieved.
[0082] Moreover, in some embodiments, after the step of calculating model parameters of a prediction model using the reference pixel subset, the method further comprises: constructing the predictive model based on the model parameters; The method may further include a step of performing a prediction process on an image component to be predicted of the current block using the prediction model to obtain a predicted value corresponding to the image component to be predicted.
[0083] After the prediction model is constructed, a prediction process can be performed on the image component to be predicted based on the prediction model. The first image component of the reference block is used to predict the first image component of the current block, for example, the luminance component of the reference block is used to predict the luminance component of the current block, thereby realizing the update of the luminance component predicted value; on the other hand, the second image component of the reference block is used to predict the second image component of the current block, for example, the blue chrominance component of the reference block is used to predict the blue chrominance component of the current block, thereby realizing the update of the predicted value of the blue chrominance component; on the other hand, the third image component of the reference block is used to predict the third image component of the current block, for example, the red chrominance component of the reference block is used to predict the red chrominance component of the current block, thereby realizing the update of the predicted value of the red chrominance component, which is not specifically limited in the embodiments of the present application.
[0084] This embodiment provides an image component prediction method, which comprises: determining a first reference pixel set of the image component to be predicted of a current block; determining a reference pixel subset from the first reference pixel set, where the reference pixel subset includes one or more candidate pixels selected from the first reference pixel set; and using the reference pixel subset to calculate model parameters of a prediction model, where the prediction model is used to perform inter-component prediction processing on the image component to be predicted of the current block; thus, through the screening processing of the first reference pixel set, unimportant reference pixels or abnormal reference pixels can be removed, so that the number of pixels in the first reference pixel set is reduced, and not only can the calculation complexity and memory bandwidth be reduced, but also the accuracy of the prediction model is improved; and the prediction model is used to realize the prediction processing of the image component to be predicted by the model parameters, so that the prediction accuracy of the image component to be predicted is improved, and the prediction efficiency of the video image is improved.
[0085] Please refer to FIG. 6, which shows a flowchart of another image component prediction method according to an embodiment of the present application. As shown in FIG. 6, the method includes: A step S601 of selecting a portion of reference pixels from the first reference pixel set to form a reference pixel subset; and calculating model parameters of a prediction model based on the reference pixel subset S602.
[0086] It should be noted that the reference pixel subset is obtained by selecting some reference pixels from the first reference pixel set, and the model parameters are calculated based on the reference pixel subset; in this way, the number of samples in the reference pixel subset is reduced, and the number of samples required for calculating the model parameters is also reduced, so that the purpose of reducing the computational complexity and memory bandwidth (or referred to as storage device bandwidth) can be achieved.
[0087] In some embodiments, the step of determining a first set of reference pixels of the image component to be predicted of the current block comprises: The method may include determining one or more first neighboring pixels of the current block as the first reference pixel set, wherein the first neighboring pixels are pixels adjacent to a vertical edge of the current block, a horizontal edge of the current block, or both a vertical edge and a horizontal edge of the current block.
[0088] Further, in some embodiments, the method further comprises: If the first adjacent pixel is outside the current block, the method may further include determining that a vertical edge of the current block is a left adjacent column outside the current block and that a horizontal edge of the current block is a top adjacent row outside the current block.
[0089] Further, in some embodiments, the method further comprises: If the first adjacent pixel is within the current block, the method may further include determining that a vertical edge of the current block is a right-adjacent column within the current block and that a horizontal edge of the current block is a bottom-adjacent row within the current block.
[0090] Note that if the first adjacent pixel is outside the current block, the vertical edge of the current block may be considered as the left edge of the current block and the horizontal edge of the current block may be considered as the top edge of the current block, and if the first adjacent pixel is inside the current block, the vertical edge of the current block may be considered as the right edge of the current block and the horizontal edge of the current block may be considered as the bottom edge of the current block.
[0091] In this way, after obtaining one or more first neighboring pixels of the current block, a first reference pixel set can be constructed. Since there may be some unimportant reference pixels (e.g., these reference pixels have low correlation) or some abnormal reference pixels in the first reference pixel set, these reference pixels need to be removed to ensure the accuracy of deriving the model parameters, and thus a reference pixel subset can be obtained. Therefore, in some embodiments, the step of determining the reference pixel subset includes: determining a candidate location for the candidate pixel at an edge of a current block, the edge being a vertical or horizontal edge of the current block; selecting pixels from the first reference pixel set that are at the candidate locations and using the selected pixels to form the reference pixel subset.
[0092] Moreover, the step of determining the candidate positions of the candidate pixels comprises: The method may include determining a candidate location for the candidate pixel based on a location of a pixel in the first reference pixel set.
[0093] Moreover, the step of determining the candidate positions of the candidate pixels comprises: The method may include determining a candidate location for the candidate pixel based on image component intensities of pixels in the first reference pixel set.
[0094] Moreover, the step of determining the candidate positions of the candidate pixels comprises: Determining a candidate location for the candidate pixel based on a pixel's location in the first reference pixel set and image component intensities can be included.
[0095] In addition, the image component intensity may be expressed by an image component value such as a luminance value, a chromaticity value, etc., where a larger image component value indicates a higher image component intensity. In the embodiment of the present application, the selected reference pixel may be selected according to a candidate position of a candidate pixel, where the candidate position may be determined based on a pixel position or may be determined based on an image component intensity value (such as a luminance value, a chromaticity value), and is not specifically limited in the embodiment of the present application.
[0096] It should be noted that the reference pixel subset is constructed by performing a filtering process on the first reference pixel set and then selecting some reference pixels, and the model parameters are calculated based on the reference pixel subset. In this way, the number of samples in the reference pixel subset is reduced, and the number of samples required for calculating the model parameters is also reduced, so that the purpose of reducing the calculation complexity and memory bandwidth (or called storage device bandwidth) can be achieved.
[0097] In the embodiment of the present application, the selected part of the reference pixels may be selected based on the pixel positions corresponding to the reference pixels, or based on the image component intensity values (such as luminance values, chromaticity values, etc.) corresponding to the reference pixels, and are not specifically limited in the embodiment of the present application. Here, the first reference pixel set is screened based on either the pixel positions corresponding to the reference pixels or the image component intensity values corresponding to the reference pixels to select suitable reference points, and further construct a reference pixel subset, in this way, the model parameters derived based on the reference pixel subset can be more accurate, and thus the prediction model constructed based on the model parameters can also be more accurate.
[0098] In some embodiments, determining candidate locations for the candidate pixels comprises: determining a preset number of candidate pixels, the preset number of candidate pixels indicating a number of pixels taken from an edge of the current block; determining a candidate location for the candidate pixel based on the first preset number of pixels and a length of a side of the current block, wherein the length of the side of the current block is equal to a number of reference pixels on the side of the current block in the first reference pixel set.
[0099] It should be noted that the preset number of pixels represents the preset number of pixels waiting to be sampled, i.e., the number of pixels included in the reference pixel subset. Taking pixel positions as an example, after the preset number of candidate pixels is determined, the candidate positions of the candidate pixels can be calculated based on the length of at least one side and the preset number of candidate pixels, and then the reference pixel subset can be constructed by selecting appropriate reference pixels from the first reference pixel set based on the candidate positions. In this way, since the model parameters calculated based on the reference pixel subset are more accurate, the constructed prediction model can also be more accurate, and the prediction accuracy of the image components to be predicted is further improved, thereby improving the prediction efficiency of the video image.
[0100] Further, the determining of the candidate positions may include first calculating a first sampling interval, and then performing a sampling process on the at least one edge based on the first sampling interval to determine the candidate positions of the candidate pixels corresponding to the at least one edge. Thus, in some embodiments, the determining of the candidate positions of the candidate pixels may include: The method may include calculating a first sampling interval based on a side length of the current block and the preset number of candidate pixels.
[0101] Moreover, the step of determining the candidate positions of the candidate pixels comprises: The step may include adjusting the first sampling interval to obtain a second sampling interval.
[0102] It should be noted that after the first sampling interval is calculated, the first sampling interval can be fine-tuned, for example, by adding or subtracting 1 to the first sampling interval, thereby obtaining the second sampling interval. For example, if the first sampling interval is 4, the second sampling interval after adjustment can be 3 or 5. In the embodiment of the present application, a small adjustment (for example, adding or subtracting 1) can be performed to adjust the first sampling interval, but the specific setting of the adjustment range is not specifically limited in the embodiment of the present application.
[0103] In some embodiments, optionally after the step of calculating the first sampling interval, the method further comprises: The method may further include determining a reference point on an edge of the current block, and determining from the reference point a candidate position on the edge of the current block according to the first sampling interval.
[0104] Further, after the step of calculating the first sampling interval, the method further comprises: The method may further include determining a reference point on an edge of the current block, and determining candidate positions on either side of the reference point according to the first sampling interval.
[0105] In some embodiments, optionally after the step of obtaining the second sampling interval, the method further comprises: The method may further include determining a reference point on an edge of the current block, and determining from the reference point a candidate position on the edge of the current block according to the second sampling interval.
[0106] Further, after the step of obtaining the second sampling interval, the method further comprises: The method may further include determining a reference point on an edge of the current block, and determining candidate positions on either side of the reference point according to the second sampling interval.
[0107] In addition, the reference point may be the midpoint of the at least one side, may be the first reference pixel position to the left of the at least one midpoint, may be the first reference pixel position to the right of the midpoint of the at least one side, or may even be another reference pixel position of the at least one side, and is not specifically limited in the embodiments of the present application.
[0108] Specifically, a midpoint of the at least one side can be determined based on the length of the at least one side, and then the midpoint of the at least one side can be used as the reference point, where the reference point can be the midpoint of the at least one side, a first reference pixel position to the left of the at least one midpoint, a first reference pixel position to the right of the at least one midpoint, or even another reference pixel position of the at least one side, and is not specifically limited in the embodiments of the present application.
[0109] Moreover, in some embodiments, after obtaining the second sampling interval, the method further comprises: The method may further include determining a reference point on an edge of the current block, determining a candidate position corresponding to one side of the reference point according to the first sampling interval, and determining a candidate position corresponding to the other side of the reference point according to the second sampling interval.
[0110] That is, after a reference point of at least one side of the current block is determined, uniform sampling can be performed according to a first sampling interval or a second sampling interval, or non-uniform sampling can be performed according to the first sampling interval and the second sampling interval, and the candidate positions determined after sampling can be distributed symmetrically on both sides of the reference point, or can be distributed asymmetrically on both sides of the reference point, which is not specifically limited in the embodiments of the present application.
[0111] Furthermore, in the selection process of the first reference pixel set, a skip process can be performed on the reference pixels of at least one side, i.e., unimportant or abnormal reference pixels can be skipped (also can be regarded as a deletion process) to obtain a reference pixel subset, and based on this, a second reference pixel set is obtained after a part of the reference pixels of at least one side is skipped, and a filtering process is performed on the second reference pixel set to obtain a reference pixel subset. Thus, the method includes: determining a preset number K of skip pixels of an edge of the current block, where K is a non-negative integer; and setting a K-th pixel position from an end position of the side of the current block as the reference point. Here, the end position of the edge of the current block is the start pixel position or the end pixel position of the edge of the current block.
[0112] The preset number of skipped pixels represents a preset number of pixels to be deleted or skipped, the start position of at least one side represents the leftmost position of the top side of the current block or the topmost position of the left side of the current block, and the end position of at least one side represents the rightmost position of the top side of the current block or the bottommost position of the left side of the current block.
[0113] It should be noted that the value of K may be a preset reference pixel number such as 1, 2 or 4, and may be calculated based on the side length of the current block and the corresponding preset ratio, but in actual application, it is still set according to the actual situation, and is not specifically limited in the embodiment of the present application. Here, the preset ratio corresponding to the top side of the current block may be expressed by a first preset ratio, and the preset ratio corresponding to the left side of the current block may be expressed by a second preset ratio, and the values of the first preset ratio and the second preset ratio may be the same or different, and is not specifically limited in the embodiment of the present application.
[0114] After the reference pixel subset is determined, model parameters of a prediction model can be calculated based on the reference pixel subset to facilitate building the prediction model. Thus, in some embodiments, the step of calculating model parameters of a prediction model using the reference pixel subset comprises: calculating model parameters of a prediction model using reference pixels in the reference pixel subset and pixels of a reference block of the current block that are co-located with reference pixels of the reference pixel set; Here, a pixel that is co-located with a reference pixel in the reference pixel subset is a pixel in the image in which the reference block is located that has the same relative position with respect to the reference block as the relative position between a reference pixel in the second reference pixel set and the current block.
[0115] Furthermore, after the step of calculating the model parameters of the predictive model, the method further comprises: The method may further include calculating a prediction value of an image component to be predicted of the current block based on the prediction model and a reference block of the current block.
[0116] It should be noted that the reference block may be the image block indicated in the inter prediction parameter of the current block.In this way, after calculating the model parameters (for example, the first model parameter and the second model parameter), a prediction model can be constructed as shown in the above formula (5).Based on the prediction model and the reference block of the current block, the prediction value of the image component to be predicted of the current block can be further calculated.
[0117] In addition, in an embodiment of the present application, when the image component prediction method is applied on an encoder side, some pixels can be selected from a first reference pixel set of a current block to constitute a reference pixel subset, and then model parameters of a prediction model can be calculated based on the reference pixel subset, and the calculated model parameters can be written into a code stream, and the code stream is transmitted from the encoder side to a decoder side; accordingly, when the image component prediction method is applied on a decoder side, the model parameters of the prediction model can be directly obtained by analyzing the code stream, or on the decoder side, some pixels can be selected from a first reference pixel set of a current block to constitute a reference pixel subset, and then model parameters of a prediction model can be calculated based on the reference pixel subset, thereby constructing a prediction model, and using the prediction model to perform inter-component prediction processing on at least one image component of the current block.
[0118] This embodiment provides an image component prediction method. The specific implementation of the above embodiment has been described in detail. It can be seen from the technical solution of the above embodiment that the screening process of the first reference pixel set can remove unimportant reference pixel or abnormal reference pixel, so that the number of pixels in the first reference pixel set is reduced, and not only can the calculation complexity and memory bandwidth be reduced, but also the accuracy of the prediction model is improved, and the prediction model is used to realize the prediction process of the image component to be predicted by the model parameter, so that the prediction accuracy of the image component to be predicted is improved, and the prediction efficiency of the video image is improved.
[0119] Based on the same inventive concept as the above embodiment, please refer to FIG. 7, which shows a structural schematic diagram of an encoder 70 according to an embodiment of the present application. As shown in FIG. 7, the encoder 70 may include a first determining unit 701 and a first calculating unit 702, where: the first determining unit 701 is configured to determine a first reference pixel set of an image component to be predicted of a current block; The first determining unit 701 is further configured to determine a reference pixel subset from the first reference pixel set, the reference pixel subset including one or more candidate pixels selected from the first reference pixel set; The first calculation unit 702 is configured to calculate model parameters of a prediction model using the reference pixel subset, and the prediction model is used to perform an inter-component prediction process on an image component to be predicted of the current block.
[0120] In the above solution, referring to FIG. 7 , the encoder 70 may further include a first acquisition unit 703 configured to acquire reference pixels outside the current block and adjacent to at least one edge of the current block, where the at least one edge of the current block includes at least one of a top edge, a left edge, a top right edge, and a bottom left edge, and to acquire the first reference pixel set based on the acquired reference pixels.
[0121] In the above solution, the first acquisition unit 703 is further configured to acquire reference pixels in a reconstructed block adjacent to at least one side of the reconstructed block, where the reconstructed block is an image block adjacent to the current block and for which encoding and reconstruction have been completed, and at least one side of the reconstructed block includes a bottom side, a right side, or a bottom side and a right side, and to acquire the first set of reference pixels based on the acquired reference pixels.
[0122] In the above solution, referring to FIG. 7, the encoder 70 may further include a first selection unit 70, where: The first determination unit 701 is further configured to determine a candidate position of a candidate pixel based on at least one edge of the current block or the reconstructed block; and the first acquisition unit 704 is configured to select a reference pixel corresponding to the candidate position from the first reference pixel set and form the reference pixel subset using the selected reference pixel.
[0123] In the above solution, the first determining unit 701 is further configured to determine the candidate positions based on pixel positions corresponding to reference pixels adjacent to the at least one side.
[0124] In the above solution, the first determining unit 701 is further configured to determine the candidate positions based on image component intensity values corresponding to reference pixels adjacent to the at least one edge.
[0125] In the above solution, the first determining unit 701 is further configured to determine the candidate positions based on pixel positions and image component intensity values corresponding to reference pixels adjacent to the at least one side.
[0126] In the above solution, the first determination unit 701 is further configured to determine a predetermined number of candidate pixels, where the predetermined number of candidate pixels represents a number of pixels sampled from a reference pixel adjacent to the at least one side, and determine the candidate position based on the predetermined number of candidate pixels and a length of the at least one side, where the length of the at least one side is equal to a number of pixels included in the at least one side.
[0127] In the above solution, the first calculation unit 702 is further configured to calculate a first sampling interval based on the predetermined number of candidate pixels and the length of the at least one side; The first determining unit 701 is further configured to determine a reference point from the at least one edge, and determine the candidate position according to the first sampling interval.
[0128] In the above solution, referring to FIG. 7, the encoder 70 may further include a first adjusting unit 705 configured to adjust the first sampling interval to obtain a second sampling interval; The first determining unit 701 is further configured to determine the candidate positions based on the reference points and according to the second sampling interval.
[0129] In the above solution, the first determination unit 701 is further configured, based on the reference point, to determine a candidate position corresponding to one side of the reference point according to the first sampling interval, and to determine a candidate position corresponding to the other side of the reference point according to the second sampling interval.
[0130] In the above solution, the first determination unit 701 is further configured to determine a predetermined number K of skip pixels corresponding to the at least one side, where K is an integer equal to or greater than 1, determine positions corresponding to K pixels to be skipped from a start position and / or an end position of the at least one side, and based on the positions corresponding to the K pixels to be skipped, continuously skip K pixels to be skipped from the start position and / or end position of the at least one side to obtain one new side, and determine the candidate position based on the at least one new side and the predetermined number of candidate pixels.
[0131] In the above solution, the first acquisition unit 704 is further configured to acquire, based on the reference pixel subset, adjacent pixel reconstruction values of an image component to be predicted corresponding to the current block and adjacent pixel reconstruction values of an image component to be predicted corresponding to a reference block, wherein the current block is located in a video image of an N-th frame, and the reference block is located in a video image of an N-1-th frame; The first calculation unit 702 is further configured to calculate model parameters based on neighboring pixel reconstruction values of an image component to be predicted corresponding to the current block and neighboring pixel reconstruction values of an image component to be predicted corresponding to the reference block.
[0132] In the above solution, referring to FIG. 7, the encoder 70 may further include a first construction unit 706 and a first prediction unit 707; The first construction unit 706 is configured to construct the predictive model based on the model parameters; The first prediction unit 707 is configured to perform a prediction process on the image component to be predicted of the current block according to the prediction model, and obtain a predicted value corresponding to the image component to be predicted.
[0133] In the above solution, the first determination unit 701 is further configured to determine one or more first adjacent pixels of the current block as the first reference pixel set, where the first adjacent pixels are pixels adjacent to a vertical edge of the current block, a horizontal edge of the current block, or a vertical edge and a horizontal edge of the current block.
[0134] In the above solution, the first determining unit 701 is further configured to determine that if the first adjacent pixel is outside the current block, a vertical edge of the current block is a left adjacent column outside the current block, and a horizontal edge of the current block is a top adjacent row outside the current block.
[0135] In the above solution, the first determination unit 701 is further configured to determine that if the first adjacent pixel is within the current block, a vertical edge of the current block is a right-side column within the current block, and a horizontal edge of the current block is a bottom-side row within the current block.
[0136] In the above solution, the first determination unit 701 is further configured to determine a candidate position of the candidate pixel on an edge of the current block, where the edge of the current block is a vertical edge or a horizontal edge of the current block, select a pixel at the candidate position from the first reference pixel set, and form the reference pixel subset using the selected pixel.
[0137] In the above solution, the first determining unit 701 is further configured to determine a candidate position of the candidate pixel based on a position of a pixel in the first reference pixel set.
[0138] In the above solution, the first determining unit 701 is further configured to determine the candidate location of the candidate pixel based on image component intensities of pixels of the first reference pixel set.
[0139] In the above solution, the first determining unit 701 is further configured to determine the candidate positions of the candidate pixels based on the positions and image component intensities of pixels of the first reference pixel set.
[0140] In the above solution, the first determining unit 701 further determines a preset number of candidate pixels, and the preset number of candidate pixels indicates a number of pixels selected from an edge of the current block; and configured to determine a candidate location for the candidate pixel based on the first preset number of pixels and a length of a side of the current block, the length of the side of the current block being equal to a number of reference pixels on the side of the current block in the first reference pixel set.
[0141] In the above solution, the first calculation unit 702 is further configured to calculate a first sampling interval based on a side length of the current block and the preset number of candidate pixels.
[0142] In the above solution, the first adjusting unit 705 is configured to adjust the first sampling interval to obtain a second sampling interval.
[0143] In the above solution, the first determining unit 701 is further configured to determine a reference point on an edge of the current block, and determine from the reference point a candidate position on the edge of the current block according to the first sampling interval.
[0144] In the above solution, the first determining unit 701 is further configured to determine a reference point on an edge of the current block, and determine candidate positions on both sides of the reference point according to the first sampling interval.
[0145] In the above solution, the first determining unit 701 is further configured to determine a reference point on an edge of the current block, and determine from the reference point a candidate position on the edge of the current block according to the second sampling interval.
[0146] In the above solution, the first determining unit 701 is further configured to determine a reference point on an edge of the current block, and determine candidate positions on both sides of the reference point according to the second sampling interval.
[0147] In the above solution, the first determination unit 701 is further configured to determine a reference point on an edge of the current block, determine a candidate position corresponding to one side of the reference point according to the first sampling interval, and determine a candidate position corresponding to the other side of the reference point according to the second sampling interval.
[0148] In the above solution, the first determination unit 701 is further configured to determine a preset skip pixel number K of the edge of the current block, where K is a non-negative integer, and set the Kth pixel position from the end position of the edge of the current block as the reference point, where the end position of the edge of the current block is the start pixel position or the end pixel position of the edge of the current block.
[0149] In the above solution, the first calculation unit 702 is further configured to calculate model parameters of a prediction model using a reference pixel in the reference pixel subset and a pixel of a reference block of the current block that is co-located with a reference pixel of the reference pixel set, wherein the pixel that is co-located with a reference pixel in the reference pixel subset is a pixel in the image in which the reference block is located and whose relative position with respect to the reference block is the same as the relative position between a reference pixel of the second reference pixel set and the current block.
[0150] In the above solution, the first calculation unit 702 is further configured to calculate a prediction value of the image component to be predicted of the current block based on the prediction model and a reference block of the current block.
[0151] In the above solutions, the reference block is the image block indicated in the inter prediction parameters of the current block.
[0152] In the embodiments of the present application, it can be understood that a "unit" may be a part of a circuit, a part of a processor, a part of a program or software, etc., and may be a module or may not be modularized. Furthermore, each component in the present embodiment may be integrated into one processing unit, each unit may exist physically alone, and two or more units may be integrated into one unit. The above integrated unit may be realized in the form of hardware or in the form of a software functional module.
[0153] When the integrated unit is realized in the form of a software functional module and sold or used as an independent product, it may be stored in one computer-readable storage medium. Based on this understanding, the technical solution of the present embodiment can be essentially embodied in the form of a software product, or the part contributing to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in one storage medium and includes some instructions for causing a computer device (such as a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the method in the present embodiment. The storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0154] Therefore, an embodiment of the present application provides a computer-readable storage medium having stored thereon an image component prediction program, which, when executed by the at least one processor, causes the processor to implement the steps of the method according to the embodiment.
[0155] Based on the above configuration of the encoder 70 and the computer-readable storage medium, reference is made to FIG. 8, which illustrates a specific hardware structure of the encoder 70 according to an embodiment of the present application. The encoder 701 may include a first communication interface 801, a first memory 802 and a first processor 803, and each component is coupled via a first bus system 804. It can be understood that the first bus system 804 is configured to realize the connection communication between these components. The first bus system 804 includes a power bus, a control bus and a status signal bus in addition to a data bus. However, for the sake of clarity, various bus systems are marked as the first bus system 804 in FIG. 8. Herein, The first communication interface 801 is configured to receive and transmit signals in the process of transmitting and receiving information to and from other external network elements; A first memory 802 is configured to store a computer program executable by a first processor 803; The first processor 803 executes the computer program, determining a first set of reference pixels of an image component to be predicted of the current block; determining a reference pixel subset from the first reference pixel set, the reference pixel subset including one or more candidate pixels selected from the first reference pixel set; and calculating model parameters of a prediction model using the reference pixel subset, the prediction model being used to perform an inter-component prediction process on an image component to be predicted of the current block.
[0156] It can be understood that the first memory 802 in the embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Here, the non-volatile storage device 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 storage device may be a random access memory (RAM) that functions as an external cache memory. By way of example and not of limitation, many forms 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), synchronous link dynamic random access memory (SLDRAM), and direct Rambus random access memory (DR RAM). The first memory 802 of the systems and methods described herein is intended to include, without being limited to, these and any other suitable types of memory.
[0157] The first processor 803 may be an integrated circuit chip having signal processing functions. In the implementation process, each step of the above method may be completed by an instruction in the form of a hardware integrated logic circuit or software in the first processor 803. The above first processor 803 may 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. Each method, step and logic block diagram disclosed in the embodiments of the present application can be realized or executed. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied to be executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module may be located 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 located in the first memory 802, and the first processor 803 reads the information in the first memory 802 and completes the steps of the above method in combination with its hardware.
[0158] It is understood that the embodiments described in this application may be realized in hardware, software, firmware, middleware, microcode, or a combination thereof. When realized in hardware, the processing unit may be realized in one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in this application, or a combination thereof. When realized in software, the techniques described in this application may be realized by modules (e.g., processes, functions, etc.) for performing the functions described in this application. The software code may be stored in a memory and executed by a processor. The memory may be realized within the processor or outside the processor.
[0159] Optionally, as another embodiment, the first process 803 is further configured to execute the computer program to perform the method according to any one of the above embodiments.
[0160] This embodiment provides an encoder, which may include a first determining unit and a first calculating unit, the first determining unit is configured to determine a first reference pixel set of an image component to be predicted of a current block, and is configured to determine a reference pixel subset from the first reference pixel set, the reference pixel subset includes one or more candidate pixels selected from the first reference pixel set, and the first calculating unit is configured to use the reference pixel subset to calculate model parameters of a prediction model, where the prediction model is used to perform an inter-component prediction process on the image component to be predicted of the current block, in this way, the screening process of the first reference pixel set can remove unimportant reference pixels or abnormal reference pixels, so that the number of pixels in the first reference pixel set is reduced, and the calculation complexity and memory bandwidth can be reduced, as well as the accuracy of the prediction model can be improved, and the prediction model is used to realize a prediction process of the image component to be predicted by the model parameters, so that the prediction accuracy of the image component to be predicted is improved, and the prediction efficiency of the video image is improved.
[0161] Based on the same inventive concept as the above embodiment, refer to FIG. 9, which shows a schematic diagram of the configuration structure of a decoder 90 according to an embodiment of the present application. As shown in FIG. 9, the decoder 90 can include a second determining unit 901 and a second calculating unit 902; The second determination unit 901 is configured to determine a first set of reference pixels of a to-be-predicted image component of a current block; The second determining unit 901 is further configured to determine a reference pixel subset from the first reference pixel set, the reference pixel subset including one or more candidate pixels selected from the first reference pixel set; The second calculation unit 902 is configured to calculate model parameters of a prediction model using the reference pixel subset, and the prediction model is used to perform an inter-component prediction process on an image component to be predicted of the current block.
[0162] In the above solution, referring to FIG. 9 , the decoder 90 may further include a second acquisition unit 903 configured to acquire reference pixels outside the current block and adjacent to at least one edge of the current block, where the at least one edge of the current block includes at least one of a top edge, a left edge, a top right edge, and a bottom left edge, and to acquire the first set of reference pixels based on the acquired reference pixels.
[0163] In the above solution, the second acquisition unit 903 is further configured to acquire reference pixels adjacent to at least one side of the reconstructed block within the reconstructed block, where the reconstructed block is an image block adjacent to the current block and for which encoding and reconstruction have been completed, and at least one side of the reconstructed block includes a bottom side, a right side, or a bottom side and a right side, and to acquire the first set of reference pixels based on the acquired reference pixels.
[0164] In the above solution, referring to FIG. 9, the decoder 90 may further include a second selection unit 904; The second determination unit 901 is further configured to determine a candidate position of a candidate pixel based on at least one edge of the current block or the reconstructed block; and the second acquisition unit 904 is configured to select a reference pixel corresponding to the candidate position from the first reference pixel set and form the reference pixel subset using the selected reference pixel.
[0165] In the above solution, the second determining unit 901 is further configured to determine the candidate positions based on pixel positions corresponding to reference pixels adjacent to the at least one side.
[0166] In the above solution, the second determining unit 901 is further configured to determine the candidate positions based on image component intensity values corresponding to reference pixels adjacent to the at least one edge.
[0167] In the above solution, the second determining unit 901 is further configured to determine the candidate positions based on pixel positions and image component intensity values corresponding to reference pixels adjacent to the at least one side.
[0168] In the above solution, the second determination unit 901 is further configured to determine a predetermined number of candidate pixels, where the predetermined number of candidate pixels represents a number of pixels sampled from a reference pixel adjacent to the at least one side, and determine the candidate position based on the predetermined number of candidate pixels and a length of the at least one side, where the length of the at least one side is equal to a number of pixels included in the at least one side.
[0169] In the above solution, the second calculation unit 902 is further configured to calculate a first sampling interval based on the predetermined number of candidate pixels and the length of the at least one side; The second determining unit 901 is further configured to determine a reference point from the at least one edge, and determine the candidate position according to the first sampling interval.
[0170] In the above solution, referring to FIG. 9, the decoder 90 may further include a second adjusting unit 905 configured to adjust the first sampling interval to obtain a second sampling interval; The second determining unit 901 is further configured to determine the candidate positions based on the reference points and according to the second sampling interval.
[0171] In the above solution, the second determination unit 901 is further configured, based on the reference point, to determine a candidate position corresponding to one side of the reference point according to the first sampling interval, and to determine a candidate position corresponding to the other side of the reference point according to the second sampling interval.
[0172] In the above solution, the second determination unit 901 is further configured to determine a predetermined number K of skip pixels corresponding to the at least one side, where K is an integer equal to or greater than 1, determine a position corresponding to K pixels to be skipped from a start position and / or an end position of the at least one side, and based on the positions corresponding to the K pixels to be skipped, continuously skip K pixels to be skipped from the start position and / or end position of the at least one side to obtain one new side, and determine the candidate position based on the at least one new side and the predetermined number of candidate pixels.
[0173] In the above solution, the second acquisition unit 904 is further configured to acquire, based on the reference pixel subset, adjacent pixel reconstruction values of an image component to be predicted corresponding to the current block and adjacent pixel reconstruction values of an image component to be predicted corresponding to a reference block, wherein the current block is located in a video image of an Nth frame, and the reference block is located in a video image of an N-1th frame; The second calculation unit 902 is further configured to calculate model parameters based on neighboring pixel reconstruction values of an image component to be predicted corresponding to the current block and neighboring pixel reconstruction values of an image component to be predicted corresponding to the reference block.
[0174] In the above solution, referring to FIG. 9, the decoder 90 may further include a second construction unit 906 and a second prediction unit 907; the second construction unit 906 is configured to construct the predictive model based on the model parameters; The second prediction unit 907 is configured to perform a prediction process on the image component to be predicted of the current block according to the prediction model, and obtain a predicted value corresponding to the image component to be predicted.
[0175] In the above solution, the second determination unit 901 is further configured to determine one or more first adjacent pixels of the current block as the first reference pixel set, where the first adjacent pixels are pixels adjacent to a vertical edge of the current block, a horizontal edge of the current block, or a vertical edge and a horizontal edge of the current block.
[0176] In the above solution, the second determining unit 901 is further configured to determine that if the first adjacent pixel is outside the current block, a vertical edge of the current block is a left adjacent column outside the current block, and a horizontal edge of the current block is a top adjacent row outside the current block.
[0177] In the above solution, the second determination unit 901 is further configured to determine that if the first adjacent pixel is within the current block, a vertical edge of the current block is a right-side column within the current block, and a horizontal edge of the current block is a bottom-side row within the current block.
[0178] In the above solution, the second determination unit 901 is further configured to determine a candidate position of the candidate pixel on an edge of the current block, where the edge of the current block is a vertical edge or a horizontal edge of the current block, select a pixel at the candidate position from the first reference pixel set, and form the reference pixel subset using the selected pixel.
[0179] In the above solution, the second determining unit 901 is further configured to determine a candidate position of the candidate pixel based on a position of a pixel in the first reference pixel set.
[0180] In the above solution, the second determining unit 901 is further configured to determine the candidate location of the candidate pixel based on image component intensities of pixels in the first reference pixel set.
[0181] In the above solution, the second determining unit 901 is further configured to determine a candidate position of the candidate pixel based on a position of a pixel in the first reference pixel set and an image component intensity.
[0182] In the above solution, the second determining unit 901 further determines a predetermined number of candidate pixels, and the predetermined number of candidate pixels indicates a number of pixels selected from an edge of the current block; and configured to determine a candidate location for the candidate pixel based on the first preset number of pixels and a length of a side of the current block, the length of the side of the current block being equal to a number of reference pixels on the side of the current block in the first reference pixel set.
[0183] In the above solution, the second calculation unit 902 is further configured to calculate a first sampling interval based on a side length of the current block and the preset number of candidate pixels.
[0184] In the above solution, the second adjusting unit 905 is configured to adjust the first sampling interval to obtain a second sampling interval.
[0185] In the above solution, the second determining unit 901 is further configured to determine a reference point on an edge of the current block, and determine from the reference point a candidate position on the edge of the current block according to the first sampling interval.
[0186] In the above solution, the second determining unit 901 is further configured to determine a reference point on an edge of the current block, and determine candidate positions on both sides of the reference point according to the first sampling interval.
[0187] In the above solution, the second determining unit 901 is further configured to determine a reference point on an edge of the current block, and determine from the reference point a candidate position on the edge of the current block according to the second sampling interval.
[0188] In the above solution, the second determining unit 901 is further configured to determine a reference point on an edge of the current block, and determine candidate positions on both sides of the reference point according to the second sampling interval.
[0189] In the above solution, the second determination unit 901 is further configured to determine a reference point on an edge of the current block, determine a candidate position corresponding to one side of the reference point according to the first sampling interval, and determine a candidate position corresponding to the other side of the reference point according to the second sampling interval.
[0190] In the above solution, the second determination unit 901 is further configured to determine a preset skip pixel number K of the edge of the current block, where K is a non-negative integer, and set the Kth pixel position from the end position of the edge of the current block as the reference point, where the end position of the edge of the current block is the start pixel position or the end pixel position of the edge of the current block.
[0191] In the above solution, the second calculation unit 902 is further configured to calculate model parameters of a prediction model using a reference pixel in the reference pixel subset and a pixel of a reference block of the current block that is co-located with a reference pixel of the reference pixel set, wherein a pixel that is co-located with a reference pixel in the reference pixel subset is a pixel in the image in which the reference block is located and whose relative position with respect to the reference block is the same as the relative position between a reference pixel in the second reference pixel set and the current block.
[0192] In the above solution, the second calculation unit 902 is further configured to calculate a prediction value of the image component to be predicted of the current block based on the prediction model and a reference block of the current block.
[0193] In the above solutions, the reference block is the image block indicated in the inter prediction parameters of the current block.
[0194] In this embodiment, it can be understood that a "unit" may be a partial circuit, a partial processor, a partial program or software, etc., and may be a module or may not be modularized. Furthermore, each component in this embodiment may be integrated into one processing unit, and each unit may exist physically alone, and two or more units may be integrated into one unit. The above integrated unit may be realized in the form of hardware or in the form of a software functional module.
[0195] The integrated unit may be realized in the form of a software functional module and stored in one computer-readable storage medium when sold or used as an independent product. Based on this understanding, this embodiment provides a computer-readable storage medium. The computer-readable storage medium stores an image component prediction program, and when the image component prediction program is executed by a second processor, the second processor executes the method according to any one of the above embodiments.
[0196] Based on the above configuration of the decoder 90 and the computer-readable storage medium, reference is made to FIG. 10, which illustrates a specific hardware structure of the decoder 90 according to an embodiment of the present application. The decoder 90 may include a second communication interface 1001, a second memory 1002 and a second processor 1003, and each component is coupled via a second bus system 1004. It can be understood that the second bus system 1004 is configured to realize the connection communication between these components. The second bus system 1004 includes a power bus, a control bus and a status signal bus in addition to a data bus. However, for the sake of clarity, various bus systems are marked as the second bus system 1004 in FIG. 10. Here, The second communication interface 1001 is configured to receive and transmit signals in the process of transmitting and receiving information to and from other external network elements; The second memory 1002 is configured to store a computer program executable by the second processor 1003; The second processor 1003 executes the computer program, determining a first set of reference pixels of an image component to be predicted of the current block; determining a reference pixel subset from the first reference pixel set, the reference pixel subset including one or more candidate pixels selected from the first reference pixel set; and calculating model parameters of a prediction model using the reference pixel subset, the prediction model being used to perform an inter-component prediction process on an image component to be predicted of the current block.
[0197] Optionally, as another embodiment, the second process 1003 is further configured to execute the computer program to perform the method according to any one of the above embodiments.
[0198] The hardware functions of the second memory 1002 and the first memory 802 are similar, and the hardware functions of the second processor 1003 and the first processor 803 are similar, so a description thereof will be omitted here.
[0199] This embodiment provides a decoder, which may include a second determining unit and a second calculating unit, the second determining unit is configured to determine a first reference pixel set of an image component to be predicted of a current block, and is configured to determine a reference pixel subset from the first reference pixel set, the reference pixel subset includes one or more candidate pixels selected from the first reference pixel set, and the second calculating unit is configured to use the reference pixel subset to calculate model parameters of a prediction model, where the prediction model is used to perform an inter-component prediction process on the image component to be predicted of the current block, in this way, the screening process of the first reference pixel set can remove unimportant reference pixels or abnormal reference pixels, so that the number of pixels in the first reference pixel set is reduced, and the calculation complexity and memory bandwidth can be reduced, as well as the accuracy of the prediction model is improved, and the prediction model is used to realize a prediction process of the image component to be predicted by the model parameters, so that the prediction accuracy of the image component to be predicted is improved, and the prediction efficiency of the video image is improved.
[0200] It is noted that, in this application, the terms "comprehensive," "including," or any variation thereof, are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that includes a set of elements includes not only those elements but also other elements not expressly stated, or includes the elements inherent in such process, method, article, or apparatus. In the absence of further limitations, an element qualified by the phrase "comprising a..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0201] The example numbers in the present application above are for illustrative purposes only and do not represent the superiority or inferiority of the examples.
[0202] The methods disclosed in the several method embodiments provided by this application may be combined in any non-conflicting manner to arrive at new method embodiments.
[0203] Features disclosed in the several product embodiments provided by this application may be combined in any non-conflicting manner to arrive at new product embodiments.
[0204] Features disclosed in any method or device embodiment provided by this application may be combined in any non-conflicting manner to yield new method or device embodiments.
[0205] The above are only specific embodiments of the present application, but the scope of protection of the present application is not limited thereto, and any changes or substitutions that a person skilled in the art can easily think of within the technical scope disclosed in the present application should be included within the scope of protection of the present application. Therefore, the scope of protection of the present application should be governed by the scope of protection of the claims.
[0206] Industrial Applicability In an embodiment of the present application, firstly, a first reference pixel set of an image component to be predicted of a current block is determined, and then a reference pixel subset is determined from the first reference pixel set, where the reference pixel subset includes one or more candidate pixels selected from the first reference pixel set; the reference pixel subset is used to calculate model parameters of a prediction model, and the prediction model is used to perform an inter-component prediction process on the image component to be predicted of the current block; in this way, unimportant reference pixels or abnormal reference pixels can be removed through a screening process of the first reference pixel set, so that the number of pixels in the first reference pixel set is reduced, which not only can reduce the calculation complexity and memory bandwidth, but also can improve the accuracy of the prediction model; and the prediction model is used to realize a prediction process of the image component to be predicted through the model parameters, so that the prediction accuracy of the image component to be predicted is improved, and the prediction efficiency of the video image is improved.
Claims
1. 1. A method for predicting an image component applied to an encoder or a decoder, comprising: determining a first set of reference pixels of an image component to be predicted of a current block; determining a reference pixel subset from the first reference pixel set, the reference pixel subset including one or more candidate pixels selected from the first reference pixel set; and calculating model parameters of a prediction model using the reference pixel subset, the prediction model being used to perform an inter-component prediction process on an image component to be predicted of the current block.
2. The step of determining a first set of reference pixels of an image component to be predicted of the current block comprises: obtaining a reference pixel outside the current block and adjacent to at least one edge of the current block, the at least one edge of the current block including at least one of a top edge, a left edge, a top right edge, and a bottom left edge; and obtaining the first set of reference pixels based on the obtained reference pixels. The method of claim 1.
3. The step of determining a first set of reference pixels of an image component to be predicted of the current block comprises: Obtaining reference pixels in a reconstructed block adjacent to at least one edge of the reconstructed block, the reconstructed block being an image block adjacent to the current block and having been coded and reconstructed, the at least one edge of the reconstructed block including a bottom edge, a right edge, or a bottom edge and a right edge; and obtaining the first set of reference pixels based on the obtained reference pixels. The method of claim 1.
4. Determining a reference pixel subset based on the first reference pixel set includes: determining a candidate location for a candidate pixel based on at least one edge of the current block or the reconstructed block; selecting a reference pixel from the first set of reference pixels corresponding to the candidate location and forming the reference pixel subset using the selected reference pixel. The method according to claim 2 or 3.
5. Determining a candidate location for a candidate pixel based on at least one edge of the current block or the reconstructed block includes: determining the candidate positions based on pixel positions corresponding to reference pixels adjacent to the at least one side The method according to claim 4.
6. Determining a candidate location for a candidate pixel based on at least one edge of the current block or the reconstructed block includes: determining the candidate locations based on image component intensity values corresponding to reference pixels adjacent to the at least one side The method according to claim 4.
7. Determining a candidate location for a candidate pixel based on at least one edge of the current block or the reconstructed block includes: determining the candidate positions based on pixel positions and image component intensity values corresponding to reference pixels adjacent to the at least one side. The method according to claim 4.
8. Determining a candidate location for a candidate pixel based on at least one edge of the current block or the reconstructed block includes: determining a predetermined number of candidate pixels, the predetermined number of candidate pixels representing a number of pixels sampled from a reference pixel adjacent to the at least one edge; determining the candidate positions based on the predetermined number of candidate pixels and a length of the at least one side, the length of the at least one side being equal to a number of pixels included in the at least one side; The method according to claim 4.
9. Determining a candidate location for a candidate pixel based on at least one edge of the current block or the reconstructed block includes: calculating a first sampling interval based on the predetermined number of candidate pixels and the length of the at least one edge; determining a reference point from the at least one edge and determining the candidate locations according to the first sampling interval. The method according to claim 8.
10. After the step of calculating the first sampling interval, the method further comprises: adjusting the first sampling interval to obtain a second sampling interval; determining the candidate locations based on the reference points and according to the second sampling interval.
10. The method of claim 9.
11. After obtaining the second sampling interval, the method further comprises: The method further includes determining, based on the reference point, a candidate position corresponding to one side of the reference point according to the first sampling interval, and determining a candidate position corresponding to the other side of the reference point according to the second sampling interval. The method of claim 10.
12. Determining a candidate location for a candidate pixel based on at least one edge of the current block or the reconstructed block includes: determining a preset number K of skip pixels corresponding to the at least one side, where K is a positive integer equal to or greater than 1; determining positions from the start and / or end positions of said at least one edge corresponding to K pixels to be skipped; skipping consecutive K pixels to be skipped from a start position and / or an end position of the at least one edge based on positions corresponding to the K pixels to be skipped to obtain at least one new edge; determining the candidate location based on the at least one new edge and the preset number of candidate pixels. A method according to any one of claims 8 to 11.
13. Calculating model parameters of a predictive model using the reference pixel subset, obtaining, based on the reference pixel subset, adjacent pixel reconstruction values of an image component to be predicted corresponding to the current block and adjacent pixel reconstruction values of an image component to be predicted corresponding to a reference block, the current block being located in a video image of an N-th frame, and the reference block being located in a video image of an N-1-th frame; and calculating model parameters based on adjacent pixel reconstruction values of an image component to be predicted corresponding to the current block and adjacent pixel reconstruction values of an image component to be predicted corresponding to the reference block. The method according to any one of claims 1 to 12.
14. After the step of calculating model parameters of a prediction model using the reference pixel subset, the method further comprises: constructing the predictive model based on the model parameters; and performing a prediction process on the image component to be predicted of the current block using the prediction model to obtain a predicted value corresponding to the image component to be predicted. The method of claim 1.
15. The step of determining a first set of reference pixels of an image component to be predicted of the current block comprises: determining one or more first neighboring pixels of the current block as the first reference pixel set, the first neighboring pixels being pixels adjacent to a vertical edge of the current block, a horizontal edge of the current block, or both a vertical edge and a horizontal edge of the current block. The method of claim 1.
16. The method comprises: If the first adjacent pixel is outside the current block, determining that a vertical edge of the current block is a left adjacent column outside the current block and that a horizontal edge of the current block is a top adjacent row outside the current block. The method of claim 15.
17. The method comprises: If the first neighboring pixel is within the current block, the method further includes determining that a vertical edge of the current block is a right-side column within the current block and that a horizontal edge of the current block is a bottom-side row within the current block. The method of claim 15.
18. The step of determining the reference pixel subset comprises: determining a candidate location for the candidate pixel at a side of the current block, the side of the current block being a vertical or horizontal edge of the current block; selecting pixels from the first reference pixel set at the candidate locations and using the selected pixels to form the reference pixel subset. The method of claim 15.
19. The step of determining candidate locations of the candidate pixels comprises: determining a candidate location for the candidate pixel based on a location of a pixel in the first reference pixel set.
20. The method of claim 18.
20. The step of determining candidate locations of the candidate pixels comprises: determining a candidate location for the candidate pixel based on image component intensities of pixels in the first reference pixel set.
20. The method of claim 18.
21. The step of determining candidate locations of the candidate pixels comprises: determining a candidate location for the candidate pixel based on a pixel location and image component intensity within the first reference pixel set.
20. The method of claim 18.
22. The step of determining candidate locations of the candidate pixels comprises: determining a predetermined number of candidate pixels, the predetermined number of candidate pixels indicating a number of pixels selected from an edge of the current block; and determining a candidate location of the candidate pixel based on the first predetermined number of pixels and a length of an edge of the current block, the length of the edge of the current block being equal to a number of reference pixels on the edge of the current block in the first reference pixel set.
20. The method of claim 18.
23. The step of determining candidate locations of the candidate pixels comprises: and calculating a first sampling interval based on a length of a side of the current block and the predetermined number of candidate pixels.
23. The method of claim 22.
24. The step of determining candidate locations of the candidate pixels comprises: and adjusting the first sampling interval to obtain a second sampling interval.
24. The method of claim 23.
25. After the step of calculating the first sampling interval, the method further comprises: determining a reference point on an edge of the current block and determining candidate positions on the edge of the current block from the reference point according to the first sampling interval.
24. The method of claim 23.
26. After the step of calculating the first sampling interval, the method further comprises: determining a reference point on an edge of the current block and determining candidate positions on either side of the reference point according to the first sampling interval.
24. The method of claim 23.
27. After obtaining the second sampling interval, the method further comprises: determining a reference point on an edge of the current block and determining candidate positions on the edge of the current block from the reference point according to the second sampling interval.
25. The method of claim 24.
28. After obtaining the second sampling interval, the method further comprises: determining a reference point on an edge of the current block and determining candidate positions on either side of the reference point according to the second sampling interval.
25. The method of claim 24.
29. After obtaining the second sampling interval, the method further comprises: determining a reference point on an edge of the current block; determining a candidate position corresponding to one side of the reference point according to the first sampling interval; and determining a candidate position corresponding to the other side of the reference point according to the second sampling interval.
25. The method of claim 24.
30. The method comprises: determining a preset number K of skip pixels of an edge of the current block, where K is a non-negative integer; and setting a K-th pixel position from an end position of the side of the current block as the reference point; Here, the end position of the side of the current block is a start pixel position or an end pixel position of the side of the current block.
30. The method according to any one of claims 23 to 29.
31. Calculating model parameters of a predictive model using the reference pixel subset, calculating model parameters of a prediction model using reference pixels in the reference pixel subset and pixels of a reference block of the current block that are co-located with reference pixels in the reference pixel set; wherein a pixel co-located with a reference pixel in the reference pixel subset is a pixel located in an image in which the reference block is located, the pixel having a relative position with respect to the reference block being the same as a relative position between a reference pixel in the second reference pixel set and the current block. The method of claim 1.
32. After the step of calculating model parameters of the predictive model, the method further comprises: and calculating a predicted value of an image component to be predicted of the current block based on the prediction model and a reference block of the current block. The method of claim 1.
33. 33. The method according to claim 31 or 32, wherein the reference block is an image block indicated by the inter prediction parameters of the current block.
34. An encoder, the encoder comprising a first determination unit and a first calculation unit; The first determination unit is configured to determine a first set of reference pixels of an image component to be predicted of a current block; The first determining unit is further configured to determine a reference pixel subset from the first reference pixel set, the reference pixel subset including one or more candidate pixels selected from the first reference pixel set; The first calculation unit is configured to calculate model parameters of a prediction model using the reference pixel subset, and the prediction model is used to perform an inter-component prediction process on an image component to be predicted of the current block.
35. An encoder comprising: a first memory and a first processor; the first memory is configured to store a computer program executable by the first processor; An encoder, wherein the first processor is configured to execute the computer program to perform the method of any one of claims 1-33.
36. a decoder, the decoder comprising a second determination unit and a second calculation unit; The second determination unit is configured to determine a first set of reference pixels of a to-be-predicted image component of a current block; The second determining unit is further configured to determine a reference pixel subset from the first reference pixel set, the reference pixel subset including one or more candidate pixels selected from the first reference pixel set; The second calculation unit is configured to calculate model parameters of a prediction model using the reference pixel subset, and the prediction model is used to perform inter-component prediction processing on an image component to be predicted of the current block.
37. A decoder comprising: a second memory and a second processor, the second memory configured to store a computer program executable by the second processor; The second processor is configured to execute the computer program to perform the method of any one of claims 1-33.
38. A computer-readable storage medium having an image prediction program stored therein, the image prediction program causing a first processor or a second processor to execute a method according to any one of claims 1 to 33 when executed by the first processor or the second processor.
Citation Information
Patent Citations
Illumination compensation based inter-prediction method and apparatus in a video coding system
JP2019530345A
System and method for adaptively determining template size for illumination compensation
JP2019531029A
Method of Cross Color Intra Prediction
US20150365684A1
