CPC H04N 19/117 (2014.11) [G06F 1/03 (2013.01); H04N 19/105 (2014.11); H04N 19/124 (2014.11); H04N 19/129 (2014.11); H04N 19/132 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/60 (2014.11); H04N 19/61 (2014.11); H04N 19/80 (2014.11); H04N 19/82 (2014.11)] | 18 Claims |
1. A method for processing a block for an image or a video, wherein the block comprises a plurality of pixels, wherein the method comprises:
scanning, according to a predefined scan template, to obtain a current pixel of the block and neighboring pixels of the current pixel, wherein the block is a reconstructed block or a predicted block, and wherein the predefined scan template is defined as a set of spatial or raster offsets relative to a position of the current pixel inside the reconstructed block or the predicted block;
obtaining spectrum components by performing transform for the current pixel and the neighboring pixels of the current pixel, wherein the transform is a Hadamard transform;
obtaining filtered spectrum components based on a filtering parameter and the spectrum components when an absolute value of at least one of the spectrum components is less than a threshold;
obtaining filtered pixels by performing inverse transform for the filtered spectrum components; and
generating a filtered block based on the filtered pixels.
|