Encoder, decoder and method for enhancing the robustness of the calculation of cross-component linear model parameters
By determining multiple luminance-chrominance sample pairs in the adjacent area of the current block of the image and using a straight line fitting algorithm to calculate a linear function, the problem that the CCLM prediction method is sensitive to statistical outliers is solved, chroma coding efficiency is improved and The coding complexity is reduced and efficient image coding is achieved.
Patent Information
- Application Number
- CN201980090930.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-12-07
- Filing Date
- 2019-12-06
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2039-12-06
AI Technical Summary
Existing cross-component linear model (CCLM) prediction methods are sensitive to statistical outliers in image coding, resulting in loss of chroma coding efficiency, especially in UHD content, where simplified line fitting algorithms are inaccurate for data fitting, Affect coding efficiency.
By identifying multiple luma-chroma sample pairs in the vicinity of the current block of the image, a linear function is calculated using a line fitting algorithm to predict chroma sample values, reducing sensitivity to statistical outliers and improving computational robustness.
The chroma coding efficiency is improved, the sensitivity to statistical outliers is reduced, and the coding complexity is reduced, while maintaining high coding performance and achieving a BD-PSNR gain of approximately 0.4%.
Smart Images

Figure CN113396584B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to a decoder for block-based decoding of image data of an image and an encoder for block-based encoding of image data of an image, both of which include inventive features that enhance the robustness of calculating cross-component linear model parameters. Further embodiments relate to corresponding methods for block-based decoding of image data of an image and for block-based encoding of image data of an image using the inventive features, and also to a computer-readable digital storage medium having a computer program stored thereon, the computer program having program code, which, when run on a computer, is used to perform at least one of the methods for block-based decoding and for block-based encoding. Some embodiments may belong to the field of line fitting algorithms, and in particular to the field of cross-component linear model (CCLM) prediction. Background Art
[0002] Cross-Component Linear Model (CCLM) prediction is a coding tool that allows exploiting statistical redundancy in the coding of multiple signal channels (in this case, luminance / brightness and chrominance / chrominance image planes). Traditionally, CCLM prediction parameters α and β are derived by linear regression methods that attempt to approximate the data points (in this case, luminance-chrominance sample pairs) [x, y] by the least mean squares (LMS) of the line y = α x + β, as shown in Figure 8.
[0003] In the case of picture and video coding, this method can be used to predict chrominance sample values y from already encoded luma sample values x, thereby achieving improved coding efficiency over multiple input sequences (e.g., references [1], [2]). Because the computational complexity of line fitting algorithms based on linear regression is very high, especially in image coding, a simplified line fitting (hereinafter referred to as JVET-L0191) was recently proposed in reference [2] and subsequently incorporated into the VVC draft specification (reference [3]).
[0004] According to reference [2], instead of determining a straight line from all available luma-chroma sample pairs, this proposal instead fits a line only between one data point A with minimum luma value and one data point B with maximum luma value. This reduces the number of operations (especially multiplication operations) required by the algorithm, while the search for local luma minimum and maximum values is the main operation of the CCLM method. Note that the actual CCLM prediction uses more operations than the model calculation at medium or large CUs (because it is performed for each chroma sample in the CU).
[0005] According to JVET-L0191, this simplified CCLM calculation saves about 80 lines of raw code and reduces the decoding runtime by several percent in random access and low-latency B configurations. Unfortunately, reference [2] also reports a loss of up to 1% in chroma coding efficiency for UHD content (category A), which can be attributed to the increased sensitivity of this simplified CCLM fitting algorithm to statistical outliers: strong variations in the extreme values (minimum A and maximum B) compared to the rest of the set of luma-chroma points are more likely to lead to inaccurate line fits than the LMS-based CCLM. In fact, this situation is depicted in Figure 8 taken from JVET-L0191, where the solid line does not fit the data well - i.e., almost all of the remaining luma-chroma pairs between A and B lie below the fitted line. Summary of the invention
[0006] The object of the present invention is to improve the robustness of the calculation for linear model parameters, said improved calculation having a reduced sensitivity to statistical outliers, thereby reducing the loss of chrominance coding efficiency.
[0007] According to the invention, this object is achieved with a decoder according to claim 1, an encoder according to claim 6, a method for decoding according to claim 12, a method for encoding according to claim 13 and a computer-readable storage medium according to claim 15.
[0008] A first embodiment relates to a decoder for block-based decoding of image data of an image. This decoder is configured to decode a current block of the image by predicting chrominance samples of the current block associated with luma samples of the current block using a linear function. The linear function can be determined based on a neighboring region, such as a neighboring block. In particular, the linear function can be determined based on luma-chrominance sample pairs in the neighboring region. Such luma-chrominance sample pairs can include a luma sample and a corresponding chroma sample, such as co-located. More generally, the luma-chrominance sample pair can include at least one luma sample and a corresponding chroma sample, such as co-located; this is the case of a downsampled chroma representation, where only one chroma sample can be used for two (4:2:2 downsampling) or four (4:2:0 downsampling) co-located luma samples. In other words, in order to obtain luma-chroma sample pairs in the case of chroma downsampled input, implicit intermediate luma downsampling may be performed when forming the luma-chroma sample pairs, so that for simplicity, the resulting pairs include exactly one (implicitly downsampled) luma sample and one corresponding (explicitly downsampled) chroma sample, e.g. co-located, see reference [1]. In order to obtain luma-chroma sample pairs in a neighboring region, the decoder is configured to determine a first group of luma samples and a second group of luma samples in a neighboring region of the current block. The first group of luma samples and the second group of luma samples may each include a plurality of luma samples, e.g. two or more. The luma values of the luma samples included in the first group of luma samples are less than the luma values of the luma samples included in the second group of luma samples. In other words, the first group of luma samples may include a plurality of luma samples of small values, while the second group of luma samples may include a plurality of luma samples of large values. The luma samples and the corresponding chroma samples in the neighboring region may together form a luma-chroma sample pair in the neighboring region. Because the first group of luma samples may include a plurality of small-valued luma samples, a plurality of corresponding luma-chroma sample pairs with small luma values may be obtained, which may also be referred to as first luma-chroma sample pairs. Next, because the second group of luma samples may include a plurality of large-valued luma samples, a plurality of corresponding luma-chroma sample pairs with large luma values may be obtained, which may also be referred to as second luma-chroma sample pairs. In other words, a plurality of first luma-chroma sample pairs and a plurality of second luma-chroma sample pairs may be obtained, wherein the first luma-chroma sample pairs include luma samples whose luma values are smaller than the luma samples included in the second luma-chroma sample pairs.In summary, the first luminance-chrominance sample pair can be determined based on the first group of luminance samples and the first corresponding chrominance samples (e.g., co-located) in the neighboring area of the current block, and the second luminance-chrominance sample pair can be determined based on the second group of luminance samples and the second corresponding chrominance samples in the neighboring area of the current block. According to the principles of the present invention, the decoder is configured to fit a straight line having a linear function through a first luminance-chrominance sample pair (e.g., through at least two first luminance-chrominance sample pairs) and a second luminance-chrominance sample pair (e.g., through at least two second luminance-chrominance sample pairs) according to a straight line fitting algorithm. The straight line itself does not necessarily need to contact the multiple first luminance-chrominance sample pairs and the second luminance-chrominance sample pairs. More generally, it can be understood as fitting a line through a point cloud, wherein the first luminance-chrominance sample pair and the second luminance-chrominance sample pair represent points in the point cloud. Therefore, fitting the straight line through multiple luminance-chrominance sample pairs can be synonymously understood as calculating a linear function of the straight line, wherein the calculation is based on the first luminance-chrominance sample pair and the second luminance-chrominance sample pair. The decoder is configured to use the linear function to predict a current chrominance sample in the current block associated with a current luma sample of the current block, the linear function being collected in the neighborhood of the current block. Because the inventive concept uses more than one first luma-chrominance sample pair and more than one second luma-chrominance sample pair for calculating the linear function, the straight line fit according to the principles of the present invention has reduced sensitivity to statistical outliers.
[0009] A second embodiment relates to an encoder for block-based encoding of image data of an image into a data stream, the encoder being configured to encode a current block of the image by determining a first group of luma samples and a second group of luma samples in a neighboring area of the current block, the luma values of the first group of luma samples being less than the luma values of the second group of luma samples. The encoder may also be configured to fit a straight line having a linear function through a first luma-chroma sample pair and a second luma-chroma sample pair, wherein the first luma-chroma sample pair is determined based on the first group of luma samples and a first corresponding chroma sample in the neighboring area of the current block, and wherein the second luma-chroma sample pair is determined based on the second group of luma samples and a second corresponding chroma sample in the neighboring area of the current block. The encoder may also be configured to predict the chroma samples of the current block using the luma samples of the current block and the linear function. To avoid repetition, reference is made to the above description of the decoder for the advantages of the encoder of the present invention.
[0010] A third embodiment relates to a block-based decoding method for image data of an image, wherein decoding a current block of the image comprises the following steps: determining a first set of luma samples and a second set of luma samples in a neighboring area of the current block, the luma values of the first set of luma samples being less than the luma values of the second set of luma samples. The method further comprises the following steps: fitting a straight line having a linear function through a first luma-chroma sample pair and a second luma-chroma sample pair, wherein the first luma-chroma sample pair is determined based on the first set of luma samples and a first corresponding chroma sample in the neighboring area of the current block, and wherein the second luma-chroma sample pair is determined based on the second set of luma samples and a second corresponding chroma sample in the neighboring area of the current block. The method further comprises the following steps: predicting the chroma samples of the current block using the luma samples of the current block and the linear function. To avoid repetition, reference is made to the above description of the decoder with regard to the advantages of the method for decoding of the present invention.
[0011] A fourth embodiment relates to a method for block-based encoding of image data of an image, wherein encoding a current block of the image comprises the following steps: determining a first set of luma samples and a second set of luma samples in a neighboring area of the current block, the luma values of the first set of luma samples being less than the luma values of the second set of luma samples. The method further comprises the following steps: fitting a straight line having a linear function through a first luma-chroma sample pair and a second luma-chroma sample pair, wherein the first luma-chroma sample pair is determined based on the first set of luma samples and a first corresponding chroma sample in the neighboring area of the current block, and wherein the second luma-chroma sample pair is determined based on the second set of luma samples and a second corresponding chroma sample in the neighboring area of the current block. The method may further comprise the following steps: predicting the chroma samples of the current block using the luma samples of the current block and the linear function. To avoid repetition, reference is made to the above description of the decoder with respect to the advantages of the method for encoding of the present invention.
[0012] According to a fifth embodiment, computer programs are provided, wherein each of the computer programs is configured to implement one of the above methods when executed on a computer or a signal processor, so that the above method is implemented by one of the computer programs. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In the following, embodiments of the present invention are described in more detail with reference to the accompanying drawings, in which:
[0014] Figure 1 A schematic diagram showing an apparatus for predictive encoding of an image as an example of an encoder, in which the concept of intra prediction according to an embodiment of the present application can be implemented,
[0015] Figure 2 A schematic diagram showing an apparatus for predictive decoding of an image as an example of a decoder, which is suitable for Figure 1 The device can realize the concept of internal prediction according to the embodiment of the present application,
[0016] Figure 3 showing a schematic diagram illustrating an example of a relationship between a prediction residual signal, a prediction signal and a reconstructed signal to illustrate possibilities of setting subdivisions for coding mode selection, transform selection and transform representation, respectively,
[0017] Figure 4 shows an example of a plurality of first luma-chroma sample pairs and second luma-chroma sample pairs that may potentially be used by an encoder and / or decoder for line fitting according to an embodiment,
[0018] Figure 5 shows an example of using exactly two first luminance-chrominance sample pairs and exactly two second luminance-chrominance sample pairs for straight line fitting according to an embodiment,
[0019] Figure 6 A schematic diagram showing a method for block-based decoding according to an embodiment is shown,
[0020] Figure 7 A schematic diagram of a method for block-based coding according to an embodiment is shown,
[0021] FIG. 8 is taken from reference [2] and shows a simplified Cross-Component Linear Model (CCLM) prediction method according to the prior art, which uses exactly one first luma-chroma sample and exactly one second luma-chroma sample. DETAILED DESCRIPTION
[0022] In the following description, the same or equivalent elements or elements having the same or equivalent functions are also represented by the same or equivalent symbols.
[0023] The method steps indicated by means of the block diagrams and the method steps described with reference to the block diagrams may also be performed in an order different from the order indicated and / or described. In addition, method steps relating to specific features of an apparatus may be replaced with the features of the apparatus, and vice versa.
[0024] The following description of the drawings begins with the presentation of a description of an encoder and a decoder of a block-based predictive codec for encoding images of a video, in order to form an example of a coding framework in which embodiments of the present invention may be built. Figures 1 to 3In the following, a description of embodiments of the concepts of the present invention and how such concepts can be respectively constructed into Figure 1 and Figure 2 The encoder and decoder are described together, although the subsequent Figure 4 The embodiments described in the following figures can also be used to form Figure 1 and Figure 2 The encoder and decoder are based on the coding framework that operates the encoder and decoder.
[0025] Figure 1 An apparatus is shown for predictively encoding an image 12 into a data stream 14 using, for example, transform-based residual coding. The device, or encoder, is shown using the reference numeral 10 . Figure 2 A corresponding decoder 20 is shown, i.e. an apparatus 20 configured to predictively decode an image 12' from a data stream 14 also using transform-based residual decoding, wherein a prime has been used to indicate that the image 12' reconstructed by the decoder 20 deviates from the image 12 originally encoded by the apparatus 10 in terms of coding losses introduced by quantization of the prediction residual signal. Figure 1 and Figure 2 Transform-based prediction residual coding is used illustratively, although embodiments of the present application are not limited to this type of prediction residual coding. Figure 1 and Figure 2 The same is true for the other details of the description, which will be outlined below.
[0026] The encoder 10 is configured to perform a spatial to spectral transform on a prediction residual signal and encode the prediction residual signal thus obtained into a data stream 14. Likewise, the decoder 20 is configured to decode the prediction residual signal from the data stream 14 and perform a spectral to spatial transform on the prediction residual signal thus obtained.
[0027] Internally, the encoder 10 may include a prediction residual signal former 22, which generates a prediction residual 24 in order to measure the deviation of the prediction signal 26 from the original signal, i.e. the image 12. The prediction residual signal former 22 may, for example, be a subtractor, which subtracts the prediction signal from the original signal, i.e. from the image 12. The encoder 10 then also includes a transformer 28, which performs a spatial to spectral transform on the prediction residual signal 24 to obtain a spectral domain prediction residual signal 24'. The spectral domain prediction residual signal 24' is then quantized by a quantizer 32 also included in the encoder 10. Thus, the quantized prediction residual signal 24" is encoded into the bitstream 14. To this end, the encoder 10 may optionally include an entropy encoder 34, which entropy encodes the prediction residual signal to transform and quantize it into the data stream 14. The prediction signal 26 is generated by a prediction stage 36 of the encoder 10 based on the prediction residual signal 24" encoded into the data stream 14 and decodable from the data stream 14. To this end, as Figure 1 As shown, the prediction stage 36 may internally include an inverse quantizer 38, which inversely quantizes the prediction residual signal 24" to obtain a spectral domain prediction residual signal 24'". Except for the quantization loss, the spectral domain prediction residual signal 24'" corresponds to the signal 24'. Next is an inverse transformer 40, which inversely transforms the latter prediction residual signal 24'", such as a spectral to spatial transform, to obtain a prediction residual signal 24". Except for the quantization loss, the prediction residual signal 24"" corresponds to the original prediction residual signal 24. Then, a combiner 42 of the prediction stage 36 recombines the prediction signal 26 and the prediction residual signal 24", for example by addition, to obtain a reconstructed signal 46, i.e., a reconstruction of the original signal 12. The reconstructed signal 46 may correspond to the signal 12'. Then, the prediction module 44 of the prediction stage 36 generates the prediction signal 26 based on the signal 46 by using, for example, spatial prediction (i.e., intra-image prediction) and / or temporal prediction (i.e., inter-image prediction).
[0028] Likewise, Figure 2 As shown, the decoder 20 can be internally composed of components corresponding to the prediction stage 36 and connected to each other in a manner corresponding to the prediction stage 36. Specifically, the entropy decoder 50 of the decoder 20 can entropy decode the quantized spectral domain prediction residual signal 24" from the data stream, whereby the inverse quantizer 52, the inverse transformer 54, the combiner 56 and the prediction module 58 are connected to each other and cooperate in the manner described above with respect to the modules of the prediction stage 36 to recover the reconstructed signal based on the prediction residual signal 24". Therefore, as Figure 2 As shown, the output of the combiner 56 produces the reconstructed signal, ie, image 12'.
[0029] Although not specifically described above, it is easy to understand that according to certain optimization schemes, such as optimizing certain rate and distortion related criteria, i.e., coding cost in a certain way, the encoder 10 can set some coding parameters, including, for example, prediction modes, motion parameters, etc. For example, the encoder 10 and the decoder 20 and the corresponding modules 44 and 58 can support different prediction modes, such as intra-coding mode and inter-coding mode, respectively. The granularity of the encoder and the decoder switching between these prediction mode types can correspond to the subdivision of the pictures 12 and 12', respectively, into coding segments or coding blocks. For example, in units of these coding segments, the image can be subdivided into intra-coding blocks and inter-coding blocks. The intra-coding blocks are predicted based on the spatially encoded / decoded neighboring regions of the corresponding blocks, as described in more detail below. Several intra-coding modes can exist and be selected for the corresponding intra-coding segments, and the corresponding intra-coding segments include directional or angular intra-coding modes, according to which the corresponding segments are filled into the corresponding intra-coding segments by extrapolating the sample values of the neighboring regions along the specific direction of the intra-coding mode specific to the corresponding direction. For example, the intra-coding mode may also include one or more modes, such as a DC coding mode, according to which the prediction for the corresponding intra-coding block assigns a DC value to all samples within the corresponding intra-coding segment, and / or a plane coding mode, according to which the prediction of the corresponding block is approximated or determined as a spatial distribution of sample values described by a two-dimensional linear function at the sample positions of the corresponding intra-coding block, and the driving tilt and offset of the plane are defined based on neighboring samples by the two-dimensional linear function. In contrast, inter-coding blocks can be predicted, for example, temporally predicted. For inter-coding blocks, a motion vector can be signaled in the data stream, the motion vector indicating the spatial displacement of a part of a previously encoded picture of the video to which the image 12 belongs, and the previously encoded / decoded picture is sampled according to the spatial displacement to obtain a prediction signal for the corresponding inter-coding block. This means that, in addition to the residual signal encoding comprised by the data stream 14, for example entropy coded transform coefficient levels representing the quantized spectral domain prediction residual signal 24″, the data stream 14 may have encoded therein coding mode parameters for assigning a coding mode to the individual blocks, prediction parameters for some of the blocks, such as motion parameters for inter-coded segments, and optionally further parameters, such as parameters for controlling the subdivision of the images 12 and 12′, respectively, and signaling it into segments. The decoder 20 uses these parameters to subdivide the images in the same way as the encoder, assign the same prediction modes to the segments and perform the same prediction to produce the same prediction signal.
[0030] Figure 3The relationship between the reconstructed signal on the one hand and the combination of the prediction residual signal 24"" signaled in the data stream 14 and the prediction signal 26 on the other hand is illustrated. As mentioned above, the combination can be an addition. The prediction signal 26 is Figure 3 , a subdivision of the image area is shown, the image area being subdivided into intra-coding blocks illustrated using shaded diagrams, and inter-coding blocks illustrated using non-shaded diagrams. The subdivision may be any partitioning, such as a regular subdivision of the image area into rows and columns of square blocks or non-square blocks, or a multi-tree subdivision of the image 12 from a root block into a plurality of leaf blocks of varying sizes, such as a quadtree subdivision, etc., wherein in Figure 3 A mixture of these is shown in , where the image region is first subdivided into rows and columns of root blocks and then further subdivided into one or more leaf blocks according to a recursive multi-tree subdivision.
[0031] Likewise, the data stream 14 may have an intra-coding mode encoded therein for an intra-coding block 80, which assigns one of several supported intra-coding modes to the corresponding intra-coding block 80. For the inter-coding blocks 82, the data stream 14 may have one or more motion parameters encoded therein. In general, the inter-coding blocks 82 are not limited to being temporally coded. Alternatively, the inter-coding blocks 82 may be any block predicted from a previously coded portion other than the current picture 12 itself, such as a previously coded picture of the video to which the picture 12 belongs, or a picture of another view, or a lower layer of the hierarchy in the case where the encoder and decoder are a scalable encoder and a scalable decoder, respectively.
[0032] Figure 3 The prediction residual signal 24"" in is also illustrated as subdividing the image area into blocks 84. These blocks can be called transform blocks to distinguish them from intra-coded blocks 80 and inter-coded blocks 82. In practice, Figure 3 The diagram shows that the encoder 10 and the decoder 20 can use two different subdivisions of the image 12 and the image 12', respectively, into blocks, namely one subdivision into coding blocks 80 and 82, respectively, and another subdivision into transform blocks. The two subdivisions can be identical, i.e. each subdividing into coding blocks 80 and 82, or both forming a transform block 84, but Figure 3The illustrated situation is one in which, for example, the subdivision into transform blocks 84 forms an extension of the subdivision into coding blocks 80 and 82, such that any boundary between two blocks of blocks 80 and 82 overlaps with a boundary between two blocks 84, or in other words, each block 80, 82 either coincides with one of the transform blocks or with a cluster of transform blocks 84. However, the subdivisions may also be determined or selected independently of one another, such that the transform block 84 may alternatively straddle a block boundary between blocks 80, 82. With regard to the subdivision into transform blocks 84, similar statements hold as those made with respect to the subdivision into blocks 80, 82, i.e. the blocks 84 may be the result of a regular subdivision of the image region into blocks (with or without an arrangement in rows and columns), the result of a recursive multi-tree subdivision of the image region, or a combination thereof or any other type. Incidentally, it is noted that the blocks 80, 82, 84 are not limited to square, rectangular or any other shape.
[0033] Figure 3 It is further illustrated that the combination of the prediction signal 26 and the prediction residual signal 24"" directly produces the reconstructed signal 12'. However, it should be noted that according to alternative embodiments more than one prediction signal 26 may be combined with the prediction residual signal 24"" to produce the image 12'.
[0034] exist Figure 3 In the embodiment described below, the transform block 84 should have the following meaning. The transformer 28 and the inverse transformer 54 perform their transforms in units of transform blocks 84. For example, various codecs use a certain DST or DCT for all transform blocks 84. Some codecs allow skipping of transforms, so that for some transform blocks 84, the prediction residual signal is encoded directly in the spatial domain. However, according to the embodiments described below, the encoder 10 and the decoder 20 are configured in a way that they support several transforms. For example, the transforms supported by the encoder 10 and the decoder 20 may include:
[0035] o DCT-II (or DCT-III), where DCT stands for Discrete Cosine Transform
[0036] o DST-IV, where DST stands for Discrete Sine Transform
[0037] o DCT-IV
[0038] o DST-VII
[0039] oIdentity Transformation (IT)
[0040] Naturally, while the transformer 28 will support all forward transformed versions of these transforms, the decoder 20 or inverse transformer 54 will support their corresponding backward or inverse versions:
[0041] o Inverse DCT-II (or Inverse DCT-III)
[0042] o Inverse DST-IV
[0043] o Inverse DCT-IV
[0044] o Inverse DST-VII
[0045] oIdentity Transformation (IT)
[0046] The subsequent description provides more details on which transforms may be supported by the encoder 10 and decoder 20. In any case, it should be noted that the set of supported transforms may include only one transform, such as a spectral to spatial transform or a spatial to spectral transform.
[0047] As outlined above, Figures 1 to 3 An example has been presented in which the inventive concepts further described below can be implemented to form a specific example for an encoder and a decoder according to the present application. In this regard, Figure 1 and Figure 2 The encoder and decoder of can represent possible implementations of the encoder and decoder described below in this document, respectively. However, Figure 1 and Figure 2 However, an encoder according to an embodiment of the present application may use the concepts outlined in more detail below to perform block-based encoding of the image 12, and different from Figure 1 The encoder of the invention may be, for example, different in that it is not a video encoder but a still picture encoder, different in that it does not support inter prediction, or different in that the subdivision of the plurality of blocks 80 is in the same manner as Figure 3 Likewise, a decoder according to an embodiment of the present application may perform block-based decoding of an image 12' from a data stream 14 using the coding concepts outlined further below, but may differ from Figure 2 The decoder 20 of FIG. 1 differs in that, for example, it is not a video decoder but a still picture decoder, in that it does not support intra prediction, or in that it uses the same method as described with respect to FIG. Figure 3 The described different ways subdivide the image 12 ′ into blocks and / or differ in that the prediction residual is derived from the data stream 14 not in the transform domain but, for example, in the spatial domain.
[0048] In the following, some examples and embodiments will be discussed in order to exemplarily describe how an embodiment of an encoder 10 for block-based encoding and an embodiment of a decoder 20 for block-based decoding can utilize the inventive principles described herein. Specifically, it will be described how to use the inventive principles in a current block to predict chrominance sample values from encoded luma sample values, i.e., using a linear function obtained by using luma-chrominance samples of neighboring blocks. Even though an example of a decoder 20 is described below, it is also valid for the corresponding example of the encoder 10.
[0049] Figure 4 A scatter plot of the accumulation of luma-chroma sample pairs collected in the neighborhood of the current block is shown. The neighborhood can be a neighboring block in the immediate neighborhood of the current block, or even a neighboring block in a slightly farther neighborhood of the current block, i.e. with one or more blocks in between.
[0050] First, it will be described how the encoder 10 and / or the decoder 20 obtain the above-mentioned luminance-chrominance sample pairs. Therefore, the encoder 10 and / or the decoder 20 can be configured to determine a first group of luminance samples in a neighboring area of the current block and determine a second group of luminance samples in the neighboring area. The first group of luminance samples may include a plurality of luminance samples with different luminance values, for example, at least two. The second group of luminance samples may include a plurality of luminance samples with different luminance values, for example, at least two. However, the luminance samples contained in the first group of luminance samples can be distinguished from the luminance samples contained in the second group of luminance samples according to their respective luminance values. Specifically, the luminance value of the luminance sample contained in the first group of luminance samples is less than the luminance value of the plurality of luminance samples contained in the second group of luminance samples.
[0051] One or more chroma samples may be linked to luma samples of the first group of luma samples and the second group of luma samples, respectively. The encoder 10 and / or the decoder 20 may obtain a corresponding number of luma-chroma sample pairs by linking the luma samples with the corresponding chroma samples. These luma-chroma sample pairs may then be classified based on their respective luma values.
[0052] For example, a luma-chroma sample pair including luma samples of the first group of luma samples (i.e., those with smaller luma values) can be classified as a first luma-chroma sample pair. Then, a luma-chroma sample pair including luma samples of the second group of luma samples (i.e., those with larger luma values) can be classified as a second luma-chroma sample pair.
[0053] Figure 4A plurality of first luminance-chrominance sample pairs are shown, which are symbolically surrounded by a schematic oval 41, and a plurality of second luminance-chrominance sample pairs, which are symbolically surrounded by a schematic oval 42. Three first luminance-chrominance sample pairs A, A', A" and three second luminance-chrominance sample pairs B, B', B" may be determined by the encoder 10 and / or the decoder 20 for use in a subsequent line fitting step.
[0054] Likewise, the luma value of the first luma-chroma sample pair A, A', A" is less than the luma value of the second luma-chroma sample pair B, B', B". This can be seen in the depicted scatter plot, since the x-axis represents the respective luma values of the luma-chroma sample pairs, while the y-axis represents the corresponding chroma values of the respective luma-chroma sample pairs. Thus, each luma-chroma sample pair A, A', A", B, B', B" comprises a luma sample value and a corresponding chroma sample value.
[0055] The encoder 10 and / or the decoder 20 may also be configured as described in Figure 4 The scattered points are used to fit the straight line 43. Basically, the scattered points are equivalent to a point cloud, wherein each of the first luminance-chrominance sample pair A, A', A'' and the second luminance-chrominance sample pair B, B', B'' may correspond to a point in the point cloud.
[0056] The encoder 10 and / or the decoder 20 can fit the straight line 43 by means of three first luminance-chrominance sample pairs A, A', A" selected by way of example and three second luminance-chrominance sample pairs B, B', B" selected by way of example. For example, the encoder 10 and / or the decoder 20 can use the three first luminance-chrominance sample pairs A, A', A" and the three second luminance-chrominance sample pairs B, B', B" as a calculation basis for a straight line fitting algorithm that fits the straight line 43 through a point cloud.
[0057] It can be seen that the straight line 43 does not necessarily have to touch or even extend through one or more of the first luminance-chrominance sample pairs A, A', A", and the second luminance-chrominance sample pairs B, B', B". Rather, fitting the straight line 43 through the first luminance-chrominance sample pairs A, A', A", and / or the second luminance-chrominance sample pairs B, B', B", should be understood as the fitting algorithm itself being based on the selected number of first luminance-chrominance sample pairs A, A', A", and / or second luminance-chrominance sample pairs B, B', B", resulting in a linear function of the straight line 43 as depicted.
[0058] To visualize the line fitting algorithm in question, Figure 4 The straight line 43 depicted in the figure should be understood as a schematic construction. An important information is that the linear function of the straight line 43 can be derived from the straight line fit. The linear function can be given by the following equation:
[0059] y=α·x+β
[0060] Where α is the first cross-component linear model parameter representing the slope of the straight line, and β is the second cross-component linear model parameter representing the offset of the straight line.
[0061] According to the invention, the encoder 10 and / or decoder 20 is configured to predict, for a current luma sample x of the current block, a corresponding chroma sample y of the current block by means of the linear function determined from a neighboring area of the current block as explained above.
[0062] According to an embodiment, the decoder 20 may be configured to reconstruct the luma samples of the current block by intra prediction and / or inter prediction. According to yet another embodiment, the decoder 20 is configured to decode luma sample residuals for the current block from the data stream 14, and reconstruct the luma samples of the current block by intra prediction and / or inter prediction to obtain predicted luma samples, and use the luma sample residuals to correct the predicted luma samples.
[0063] Therefore, an embodiment provides a corresponding encoder 10, which is configured to encode a luma sample residual for a current block into a data stream 14, so that the luma samples of the current block can be reconstructed by intra prediction and / or inter prediction to obtain a plurality of predicted luma samples, wherein the predicted luma samples are correctable by using the luma sample residual.
[0064] In the above example, three first luminance-chrominance sample pairs A, A', A", and three second luminance-chrominance sample pairs B, B', B", are exemplarily used as the basis for a fitting algorithm, which fits a straight line 43 by at least these three first luminance-chrominance sample pairs A, A', A", and these three second luminance-chrominance sample pairs B, B', B", respectively. However, more than the three first luminance-chrominance sample pairs A, A', A", and three second luminance-chrominance sample pairs B, B', B", as exemplarily described, may also be used in the principles of the present invention. Additionally or alternatively, in the principles of the present invention, only two first and second luminance-chrominance sample pairs A, A', B, B' may also be used in the principles of the present invention. However, according to the principles of the present invention, at least two first luminance-chrominance sample pairs A, A' and at least two second luminance-chrominance sample pairs B, B' will be used in the principles of the present invention.
[0065] This is an important distinguishing feature relative to JVET-L01915, in which only one first luma-chroma sample pair A and only one second luma-chroma sample pair B are used.
[0066] For example, the encoder 10 and / or the decoder 20 may be configured to select two or more first luma-chroma samples A, A', A". having minimum luma values. Therefore, the encoder 10 and / or the decoder 20 may be configured to determine a first group of luma samples by finding the n minimum luma values in a neighboring area of the current block, where n is greater than 1. Together with the corresponding chroma values, n greater than 1 first luma-chroma samples A, A', A". having minimum luma values may be selected from a plurality of first luma-chroma sample pairs 41 by the encoder 10 and / or the decoder 20.
[0067] Additionally or alternatively, the encoder 10 and / or the decoder 20 may be configured to select two or more second luma-chroma samples B, B', B". having maximum luma values. Thus, the encoder 10 and / or the decoder 20 may be configured to determine a second set of luma samples by finding n maximum luma values in a neighboring area of the current block, where n is greater than 1. Together with the corresponding chroma values, n greater than 1 second luma-chroma samples B, B', B". having maximum luma values may be selected from a plurality of second luma-chroma sample pairs 42 by the encoder 10 and / or the decoder 20.
[0068] As described above, at least two, and according to some exemplary embodiments, exactly two, first luminance-chrominance samples A, A' having minimum luminance values may be selected from the plurality of first luminance-chrominance sample pairs 41. In addition, at least two, and according to some exemplary embodiments, exactly two second luminance-chrominance samples B, B' having maximum luminance values may be selected from the plurality of second luminance-chrominance sample pairs 42.
[0069] According to such embodiments, the encoder 10 and / or the decoder 20 may be configured to determine a first set of luma samples by finding n minimum luma values in a neighboring area of the current block, where n is equal to 2, and / or determine a second set of luma samples by finding n maximum luma values in a neighboring area of the current block, where n is equal to 2. By concatenating corresponding chroma values, the encoder 10 and / or the decoder 20 may obtain n equal to 2 first luma-chroma samples A, A' having minimum luma values, and n equal to 2 second luma-chroma samples B, B' having maximum luma values.
[0070] Now refer to Figure 5 Discuss the corresponding examples, Figure 5 Shown with the previous Figure 4 Therefore, we will describe the point cloud similar to Figure 4 difference.
[0071] exist Figure 5In the example shown, the two first luminance-chrominance samples A, A' with minimum luminance values and the two second luminance-chrominance samples B, B' with maximum luminance values are selected by the encoder 10 and / or the decoder 20 for fitting a straight line 43 through the first luminance-chrominance sample pair A, A' and the second luminance-chrominance sample pair B, B'.
[0072] It can be seen that the first temporary straight line 51 can be fitted using the first luminance-chrominance sample pair A with the minimum luminance value and the second luminance-chrominance sample B with the maximum luminance value. The second temporary straight line 52 can be fitted using the first luminance-chrominance sample pair A' with the second smallest luminance value and the second luminance-chrominance sample B' with the second largest luminance value.
[0073] An average value 53 between two first luminance-chrominance sample pairs A, A' having a minimum luminance value and a second minimum luminance value and an average value 54 between two second luminance-chrominance sample pairs B, B' having a maximum luminance value and a second maximum luminance value can be determined for fitting a straight line 43 through the first luminance-chrominance sample pairs A, A' and the second luminance-chrominance sample pairs B, B', i.e., deriving a linear function y=α·x+β.
[0074] Therefore, according to an embodiment, the encoder 10 and / or the decoder 20 may be configured to fit the straight line 43 so that the straight line 43 extends through the average value 53 of the first luminance-chrominance sample pair A, A' and the average value 54 of the second luminance-chrominance sample pair B, B', for deriving a linear function of the straight line 43. In other words, it is suggested to search not only the minimum luminance value A and the maximum luminance value B (as done in JVET-L0191), but also the second smallest luminance value A' and the second largest luminance value B', as shown in FIG. Figure 5 Then, a straight line 43 can be fitted between the average 53 of the data points at A and A' and the average 54 of the data points at B and B', yielding Figure 5 , which generally results in a better fit to the data than the prior art. Two variants of averaging A, A' and B, B' can be specified, which differ in complexity:
[0075] 1. Exact integer average: (A+A'+1)>>1, (B+B'+1)>>1, where ">>" is a bitwise right shift.
[0076] 2. Inexact integer average: (A+A')>>1, (B+B')>>1, saving four "+1"s compared to the exact variant.
[0077] Both variants represent fixed-point integer implementations of the arithmetic mean; other forms of averaging, such as the geometric mean, are also possible but are not considered here.
[0078] like Figure 5 As shown, the straight line 43 fits the point cloud, i.e., the plurality of first and second luma-chroma sample pairs, better than in the earlier proposal which was originally represented only by the upper first temporary straight line 51. The encoder 10 and / or the decoder 20 can encode / decode the luma sample residuals, and it can be seen that the prediction residual 55 predicted from the upper first temporary straight line 51 according to the earlier proposal can be significantly larger than the prediction residual 56 predicted from the straight line 43 which has been fitted according to the inventive concept. Therefore, the inventive concept described herein can significantly offset the CCLM inaccuracies of the previous concept.
[0079] Table 1 summarizes the algorithmic operations consumed by the modified CCLM calculation described in this paper compared to the previously adopted CCLM version. It can be seen that the number of comparisons is doubled because more than two extreme brightness values A', B' are searched. It should be noted that the number of operations required for either of the two proposed variants is still much less than the number of operations of the original CCLM adopted in VTM2 of reference [1].
[0080] The SDR-like Common Test Conditions (CTC) sequence set [5][6] was measured. The delta(BD) PSNR gain is calculated to verify that there is a significant coding efficiency improvement due to the proposed changes without increasing the codec runtime. VTM software version 3 [4] with default configuration is used.
[0081] Table 1. Number of operations in different CCLM calculations. N: number of chrominance reference samples, *: includes the right shift required for averaging. Note that the actual CCLM application is not included here.
[0082]
[0083] Table 2 lists the BD-PSNR results for the above averaging variant 1 (exact integer averaging), while Table 3 contains the BD-PSNR values for averaging variant 2 (inexact integer averaging). It should be noted that:
[0084] Both variants lead to very similar overall BD-PSNR performance,
[0085] Achieve consistent BD-PSNR gains for both chroma channels,
[0086] • No significant runtime increase was observed for either variant.
[0087] This shows that both proposals described in this paper successfully improve chroma coding efficiency by about 0.4% and, as expected, have an insignificant impact on the algorithmic complexity of the CCLM prediction tool.
[0088] Table 2. BD-PSNR[6] data for VTM 3.0.0, with and without the proposed modification Variant 1, SDR CTC[5].
[0089]
[0090]
[0091] Table 3. BD-PSNR[6] data for VTM 3.0.0, with and without the proposed modification Variant 2, SDR CTC[5].
[0092]
[0093]
[0094] In summary, this paper describes two variants of the modification of the simplified cross-component linear model (CCLM) predictor described in L0191. The proposed low-complexity changes stabilize the straight-line fitting algorithm in the CCLM, resulting in a 0.3-0.4% BD-PSNR gain in the chroma channels. At the same time, the algorithmic complexity of the CCLM calculation is only half of the algorithmic complexity of the CCLM design previously adopted in VTM 2 (even lower for large CUs).
[0095] Specifically, JVET-L0191 describes a simplified parameter calculation for the cross-component linear model (CCLM) predictor in the Versatile Video Coding (VVC) standard. According to this simplification, the CCLM parameters α and β can be derived by a straight-line fit between the maximum and minimum luma-chroma pair sample values, as opposed to the more complex linear regression from multiple luma and chroma samples used previously. As a result, the algorithmic complexity of the CCLM tool is reduced without losing too much coding efficiency.
[0096] This paper provides evidence that a simplified line fit between two extreme sample values is easily affected by statistical outliers and suggests some modifications to the CCLM method, such as:
[0097] 1. Fit a straight line 43 between the average 54 of the two largest brightness samples B, B' and the average 53 of the two smallest brightness samples A, A' with exact averaging (instead of only the maximum and only the minimum).
[0098] 2. To save some additive inaccurate averaging (no offset by 1 before division), fit a straight line 43 between the average 54 of the two largest luminance samples B, B' and the average 53 of the two smallest luminance samples A, A'.
[0099] Variant 2 can produce the same BD-PSNR gain as Variant 1, while requiring four fewer additions per CCLM-coded CU.
[0100] However, both modifications have negligible impact on the complexity of the VTM encoder and decoder (encoder runtime 100%, decoder runtime 99-101%) and reportedly provide approximately 0.3-0.4% coding efficiency gain in each chroma channel (Cb and Cr BD-PSNR gains for both full intra and random access).
[0101] Figure 6 A schematic diagram of an embodiment of a method for block-based decoding of image data of an image is shown, wherein decoding a current block of the image comprises at least the following steps.
[0102] In block 601 , a first group of luma samples and a second group of luma samples in a neighboring area of a current block are determined, wherein luma values of the first group of luma samples are less than luma values of the second group of luma samples.
[0103] In box 602, a straight line 43 with a linear function is fitted through a first luma-chroma sample pair A, A' and a second luma-chroma sample pair B, B', wherein the first luma-chroma sample pair A, A' is determined based on a first group of luma samples and a first corresponding chroma sample in a neighboring area of the current block, and wherein the second luma-chroma sample pair B, B' is determined based on a second group of luma samples and a second corresponding chroma sample in the neighboring area of the current block.
[0104] In block 603, chroma samples of the current block are predicted using luma samples of the current block and the linear function that has been determined from the neighboring area of the current block as described above.
[0105] Figure 7 A schematic diagram of an embodiment of a method for block-based encoding of image data of an image is shown, wherein encoding a current block of the image comprises at least the following steps.
[0106] In block 701 , a first group of luma samples and a second group of luma samples in a neighboring area of a current block are determined, luma values of the first group of luma samples being less than luma values of the second group of luma samples.
[0107] In box 702, a straight line 43 with a linear function is fitted by a first luma-chroma sample pair A, A', and a second luma-chroma sample pair B, B', wherein the first luma-chroma sample pair A, A' is determined based on a first group of luma samples and a first corresponding chroma sample in a neighboring area of the current block, and wherein the second luma-chroma sample pair B, B' is determined based on a second group of luma samples and a second corresponding chroma sample in the neighboring area of the current block.
[0108] In block 703, chroma samples of the current block are predicted using the luma samples of the current block and the linear function that has been determined from the neighborhood of the current block as described above.
[0109] As discussed, both the decoder 20 and the encoder 10 can determine a first set of luma samples and a second set of luma samples in a neighboring area of the current block 80, 82, 84. The neighboring area can be a row or column of luma samples directly adjacent to the current block, preferably (in picture or video compression) an adjacent row above the sample or an adjacent column to the left of the sample. However, when determining the first set of luma samples and the second set of luma samples, it is not necessarily necessary to consider all available adjacent luma samples. In other words, it is sufficient to form a subset of all available adjacent luma samples for this purpose. In particular, the present invention is still applicable when only four adjacent luma samples are considered, in which case the first set of luma samples can include n equals 2 smaller luma values among the four considered values, and the second set of luma samples can include n equals 2 larger luma values among the four considered values.
[0110] The selection of these four neighboring luminance samples in the neighboring area of the current block can be arbitrary, but preferably, these four neighboring luminance samples can be selected in an equidistant (or almost equidistant) manner along the spatial top and / or left boundary of the current block. In addition, the selection of the four neighboring luminance samples used to determine the first group of luminance samples and the second luminance sample can be adjusted according to the existence of the upper neighboring row of samples and / or the left neighboring column of samples. More specifically, if the upper vertical neighboring area is not available (for example, at the upper image boundary), all four neighboring luminance samples can be selected from the left neighboring column of luminance samples, and if the left horizontal neighboring area is not available (for example, at the left image boundary), all four neighboring luminance samples can be selected from the upper neighboring row of luminance samples. However, if both the upper and left neighboring areas are available (this is the default situation, for example, in the center of the image to be compressed), two luminance samples can be selected from the upper neighboring sample row, and another two luminance samples can be selected from the left neighboring sample column. Finally, it should be noted that if the image is stored in a downsampled chroma format (e.g., 4:2:0), the (e.g., four) neighboring luma samples may also be downsampled according to the chroma format before selecting the neighboring luma samples from which to determine the first and second sets of luma samples.
[0111] It should be noted that the neighboring region of the current block generally represents a previously decoded and reconstructed portion, such as a block, of the current image (spatial neighboring region), or another previously decoded and reconstructed image (temporal neighboring region). However, it should be understood that, on the encoder side, the original input image region may also be used, rather than the previously decoded and reconstructed image region, as the source for the neighboring region of the current block. Furthermore, it should be apparent to those skilled in the art that the method of the present invention is equally applicable to arbitrary cross-component predictions, such as predicting green or blue from the red component in an RGB color encoding.
[0112] Furthermore, it should be noted that the first / second luma-chroma sample pair groups may overlap (at least partially). This is particularly true in the case when the decoded, reconstructed luma of the neighboring region of the current block consists of samples that all have the same value. Then, both the first and second luma-chroma sample pairs may retain the same value. However, during "normal" operation on "natural" image content, this situation rarely occurs.
[0113] Although some aspects are described in the context of an apparatus, it is apparent that these aspects also represent a description of a corresponding method, wherein the blocks or devices correspond to method steps or features of method steps. Similarly, aspects described in the context of method steps also represent a description of corresponding blocks or items or features of corresponding devices.
[0114] Some or all of the method steps may be performed by (or using) a hardware device (eg, a microprocessor, a programmable computer or an electronic circuit). In some embodiments, one or more of the most important method steps may be performed by such a device.
[0115] Depending on certain implementation requirements, embodiments of the present invention may be implemented in hardware or software. Embodiments may be implemented using digital storage media, such as floppy disks, DV, Blu-ray, CD, ROM, PROM, EPROM, EEPROM, or flash memory storing electronically readable control signals, which cooperate (or can cooperate) with a programmable computer system to perform the corresponding method. Therefore, the digital storage medium may be computer readable.
[0116] Some embodiments according to the invention comprise a data carrier having electronically readable control signals, which are capable of cooperating with a programmable computer system, such that one of the methods described herein is performed.
[0117] Generally, embodiments of the present invention can be implemented as a computer program product with a program code, when the computer program product runs on a computer, the program code is operative for performing one of the methods. The program code may, for example, be stored on a machine readable carrier.
[0118] Other embodiments comprise the computer program for performing one of the methods described herein, stored on a machine readable carrier.
[0119] In other words, an embodiment of the inventive method is, therefore, a computer program having a program code for performing one of the methods described herein, when the computer program runs on a computer.
[0120] Therefore, another embodiment of the inventive method is a data carrier (or a digital storage medium, or a computer-readable medium) comprising, recorded thereon, the computer program for performing one of the methods described herein. The data carrier, the digital storage medium, or the recorded medium is typically tangible and / or non-transitory.
[0121] A further embodiment of the inventive method is, therefore, a data stream or a sequence of signals representing the computer program for performing one of the methods described herein.The data stream or the sequence of signals may, for example, be configured to be transmitted via a data communication connection, for example via a network.
[0122] A further embodiment comprises a processing means, for example a computer or a programmable logic device, configured to or adapted to perform one of the methods described herein.
[0123] A further embodiment comprises a computer on which is installed the computer program for performing one of the methods described herein.
[0124] Another embodiment according to the invention comprises a device or system, which is configured to transmit (for example, electronically or optically) a computer program for performing one of the methods described herein to a receiver. The receiver may be, for example, a computer, an action device, a storage element, etc. The device or system may, for example, comprise a file server for transmitting the computer program to the receiver.
[0125] In some embodiments, a programmable logic device (e.g., a field programmable gate array) may be used to perform some or all of the functions of the method described herein. In some embodiments, a field programmable gate array may collaborate with a microprocessor to perform one of the methods described herein. Typically, the method is preferably performed by any hardware device.
[0126] The devices described herein may be implemented using a hardware device, or using a computer, or using a combination of a hardware device and a computer.
[0127] The methods described herein may be performed using a hardware device, or using a computer, or using a combination of a hardware device and a computer.
[0128] Although the present disclosure has been described with reference to illustrative embodiments, the description is not intended to be interpreted in a restrictive sense. Various modifications and combinations of other embodiments of the reference specification, exemplary embodiments, and the present disclosure will be apparent to those skilled in the art. Therefore, the appended claims are intended to cover any such modifications or embodiments.
[0129] References
[0130] [1]K.Zhang, J.Chen, L.Zhang, M.Karczewicz, "Enhanced cross-componentlinear model intra prediction," JVET-D0110, 2016,
[0131] [2]G.Laroche, J.Taquet, C.Gisquet, P.Onno, "CE3-5.1: Cross-componentlinear model simplification," JVET-L0191, 2018,
[0132] [3]B.Bross,J.Chen,S.Liu,“Versatile Video Coding(Draft 2),”JVET-K1001,ver.6 / 7,Sep. / Oct.2018.
[0133] [4]Fraunhofer HHI,“VVCSoftware_VTM,”
[0134] [5]F.Bossen,J.Boyce,X.Li,V.Seregin,K.Sühring,“JVET common testconditions and software reference configurations for SDR video,”JVET-L1010,2018.
[0135] [6]G. “Calculation of average PSNR differences between RD-curves,”VCEG-M33,2001.
Claims
1. A decoder (20) for block-based decoding of image data of an image (12'), the decoder (20) comprising a prediction module, the decoder (20) being configured to decode a current block (80, 82, 84) of the image (12') by: determining a first group of luma samples and a second group of luma samples in a neighboring area of the current block (80, 82, 84), luma values of the first group of luma samples being less than luma values of the second group of luma samples, wherein the decoder is configured to: determine the first group of luma samples by finding n minimum luma values in the neighboring area of the current block (80, 82, 84), where n is equal to 2; and determine the second group of luma samples by finding n maximum luma values in the neighboring area of the current block (80, 82, 84), where n is equal to 2, fitting a straight line (43) having a linear function through a first luma-chroma sample pair (A, A') and a second luma-chroma sample pair (B, B'), wherein the first luma-chroma sample pair (A, A') is determined based on the first group of luma samples and first corresponding chroma samples in the neighboring area of the current block (80, 82, 84), and wherein the second luma-chroma sample pair (B, B') is determined based on the second group of luma samples and second corresponding chroma samples in the neighboring area of the current block (80, 82, 84), and The chrominance samples of the current block (80, 82, 84) are predicted using the luma samples of the current block (80, 82, 84) and the linear function.
2. The decoder (20) according to claim 1, configured to The luma samples of the current block (80, 82, 84) are reconstructed by intra prediction and / or by inter prediction.
3. The decoder (20) according to claim 1, configured to decoding luma sample residuals for the current block (80, 82, 84) from a data stream (14); and The luma samples of the current block (80, 82, 84) are reconstructed by intra prediction and / or inter prediction to obtain predicted luma samples, and the predicted luma samples are corrected using the luma sample residuals.
4. The decoder (20) according to claim 1, configured to The straight line (43) is fitted so that the straight line (43) extends through an average value (53) of the first luminance-chrominance sample pair (A, A') and an average value (54) of the second luminance-chrominance sample pair (B, B') to derive the linear function of the straight line (43).
5. The decoder (20) according to claim 1, wherein the linear function is given by the equation y=α·x+β, wherein α is a first cross-component linear model parameter representing the slope of the straight line (43), β is a second cross-component linear model parameter representing the offset of the straight line (43), and wherein the decoder (20) is further configured to Using the linear function, at least one corresponding chrominance sample y of the current block (80, 82, 84) is predicted for one or more luma samples x of the current block (80, 82, 84).
6. An encoder (10) for block-based encoding of image data of an image (12) into a data stream (14), the encoder (10) comprising a prediction module, the encoder (10) being configured to encode a current block (80, 82, 84) of the image (12) by: determining a first group of luma samples and a second group of luma samples in a neighboring area of the current block (80, 82, 84), luma values of the first group of luma samples being less than luma values of the second group of luma samples, wherein the encoder is configured to: determine the first group of luma samples by finding n minimum luma values in the neighboring area of the current block (80, 82, 84), where n is equal to 2; and determine the second group of luma samples by finding n maximum luma values in the neighboring area of the current block (80, 82, 84), where n is equal to 2, fitting a straight line (43) having a linear function through a first luma-chroma sample pair (A, A') and a second luma-chroma sample pair (B, B'), wherein the first luma-chroma sample pair (A, A') is determined based on the first group of luma samples and first corresponding chroma samples in the neighboring area of the current block (80, 82, 84), and wherein the second luma-chroma sample pair (B, B') is determined based on the second group of luma samples and second corresponding chroma samples in the neighboring area of the current block (80, 82, 84), and The chrominance samples of the current block (80, 82, 84) are predicted using the luma samples of the current block (80, 82, 84) and the linear function.
7. The encoder (10) according to claim 6, configured as follows A luma sample residual for the current block (80, 82, 84) is encoded into the data stream (14) such that the luma samples of the current block (80, 82, 84) can be reconstructed by intra prediction and / or inter prediction to obtain predicted luma samples, wherein the predicted luma samples are correctable by using the luma sample residual.
8. The encoder (10) according to claim 6, configured to determining the first set of luma samples by finding n minimum luma values in the neighboring area of the current block (80, 82, 84), where n is greater than 1; and / or The second set of luma samples is determined by finding n maximum luma values in the neighboring area of the current block (80, 82, 84), where n is greater than one.
9. The encoder (10) according to claim 6, configured to determining said first set of luma samples by finding n minimum luma values in said neighboring area of said current block (80, 82, 84), where n is equal to 2; and / or The second set of luma samples is determined by finding n maximum luma values in the neighboring area of the current block (80, 82, 84), where n is equal to two.
10. The encoder (10) according to claim 6, configured to The straight line (43) is fitted so that the straight line (43) extends through an average value (53) of the first luminance-chrominance sample pair (A, A') and an average value (54) of the second luminance-chrominance sample pair (B, B') to derive the linear function of the straight line (43).
11. The encoder (10) according to claim 6, wherein the linear function is given by the equation y=α·x+β, wherein α is a first cross-component linear model parameter representing the slope of the straight line (43), β is a second cross-component linear model parameter representing the offset of the straight line (43), and wherein the encoder (10) is further configured as Using the linear function, at least one corresponding chrominance sample y of the current block (80, 82, 84) is predicted for one or more luma samples x of the current block (80, 82, 84).
12. A method for block-based decoding of image data of an image (12'), wherein a current block (80, 82, 84) of the image (12') is decoded The following steps are involved: Determine a first group of luma samples and a second group of luma samples in a neighboring area of the current block (80, 82, 84), luma values of the first group of luma samples being less than luma values of the second group of luma samples, wherein determining the first group of luma samples or the second group of luma samples comprises: determining the first group of luma samples by finding n minimum luma values in the neighboring area of the current block (80, 82, 84), where n is equal to 2; and determining the second group of luma samples by finding n maximum luma values in the neighboring area of the current block (80, 82, 84), where n is equal to 2, fitting a straight line (43) having a linear function through a first luma-chroma sample pair (A, A') and a second luma-chroma sample pair (B, B'), wherein the first luma-chroma sample pair (A, A') is determined based on the first group of luma samples and first corresponding chroma samples in the neighboring area of the current block (80, 82, 84), and wherein the second luma-chroma sample pair (B, B') is determined based on the second group of luma samples and second corresponding chroma samples in the neighboring area of the current block (80, 82, 84), and The chrominance samples of the current block (80, 82, 84) are predicted using the luma samples of the current block and the linear function.
13. A method for block-based encoding of image data of an image (12), wherein a current block (80, 82, 84) of the image (12) is encoded The following steps are involved: Determine a first group of luma samples and a second group of luma samples in a neighboring area of the current block (80, 82, 84), wherein luma values of the first group of luma samples are less than luma values of the second group of luma samples, wherein determining the first group of luma samples or the second group of luma samples comprises: determining the first group of luma samples by finding n minimum luma values in the neighboring area of the current block (80, 82, 84), where n is equal to 2; and determining the second group of luma samples by finding n maximum luma values in the neighboring area of the current block (80, 82, 84), where n is equal to 2, fitting a straight line (43) having a linear function through a first luma-chroma sample pair (A, A') and a second luma-chroma sample pair (B, B'), wherein the first luma-chroma sample pair (A, A') is determined based on the first group of luma samples and first corresponding chroma samples in the neighboring area of the current block (80, 82, 84), and wherein the second luma-chroma sample pair (B, B') is determined based on the second group of luma samples and second corresponding chroma samples in the neighboring area of the current block (80, 82, 84), and The chrominance samples of the current block (80, 82, 84) are predicted using the luma samples of the current block (80, 82, 84) and the linear function.
14. The method according to claim 13, further comprising: include: A data stream (14) is generated including chrominance samples.
15. A computer-readable digital storage medium having a computer program stored thereon, the computer program having a program code for executing the method according to any one of claims 12 to 14 when running on a computer.
Citation Information
Patent Citations
Reference pixel reduction for intra lm prediction
CN104380741A
Enhanced chroma coding using cross plane filtering
CN107836116A
Luma-Based Chroma Intra-Prediction for Video Coding
US20120287995A1
Luma-Based Chroma Intra-Prediction for Video Coding
US20120328013A1
Linear model chroma intra prediction for video coding
US20180077426A1
