| CPC H04N 19/44 (2014.11) [H04N 19/105 (2014.11); H04N 19/124 (2014.11); H04N 19/186 (2014.11)] | 20 Claims |

|
1. A method of decoding a video signal, comprising:
receiving, from the video signal, a picture frame that includes a first component, and a second component;
determining a classifier for a respective sample of the second component according to an edge direction and one or more edge strengths of a collocated sample of the first component or a current sample of the second component relative to the respective sample of the second component;
determining a sample offset for the respective sample of the second component according to the classifier; and
modifying the respective sample of the second component based on the determined sample offset;
wherein determining the classifier for the respective sample of the second component according to the edge direction and the one or more edge strengths comprises:
selecting the edge direction across the collocated or current sample;
locating a first neighbouring sample and a second neighbouring sample of the collocated or current sample;
calculating a first edge strength by determining a difference between values of two samples from the group consisting of the collocated or current sample, the first neighbouring sample, and the second neighbouring sample;
quantizing the first edge strength into M segments according to M−1 threshold values T(1), . . . T(M−1), wherein M is a positive integer; and
determining the classifier based on the M segments.
|