CPC H04N 19/132 (2014.11) [H04N 19/105 (2014.11); H04N 19/176 (2014.11); H04N 19/186 (2014.11); H04N 19/189 (2014.11)] | 8 Claims |
1. A method for encoding images by deriving parameters of a linear model for obtaining a chroma sample of a target area from an associated luma sample of the target area, the method comprising:
determining two pairs of values for determining the parameters of the linear model, each of the two pairs being defined by two variables, a first variable of the two variables corresponding to a luma sample, a second variable of the two variables corresponding to a chroma sample;
determining the parameters of the linear model including a parameter corresponding to a slope of the linear model by using the two pairs of values; and
encoding the target area using the parameters of the linear model,
wherein a magnitude of the parameter corresponding to the slope is restricted so that a number of bits to represent the slope in integer arithmetic does not exceed 5 bits.
|