| CPC H04N 19/117 (2014.11) [H04N 19/132 (2014.11); H04N 19/176 (2014.11); H04N 19/423 (2014.11)] | 8 Claims | 

| 
               1. A method for processing an image, the method comprising: 
            obtaining a set of sample values associated with the image, the set of sample values comprising a current sample value and sample values neighboring the current sample value, wherein the obtained set of sample values is included within a rectangular block of sample values, and the current sample value has a vertical position, y; 
                selecting a filter strength value based on y, wherein selecting the filter strength value based on y comprises: selecting a first filter strength value if a condition is satisfied, otherwise if the condition is not satisfied selecting a second filter strength value, wherein the condition is satisfied if and only if y is equal to a single predetermined value and zero or more other criterions are satisfied and the condition is not satisfied for every value of y that is not equal to the predetermined value; and 
                filtering the current sample based on the selected filter strength value. 
               |