Filtering method for removing blocking artifact and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsHuanbang Chen, Sixin Lin, Haitao Yang, Shan Gao
Life of this patent
Estimating the term…
Abstract
The present invention relates to the field of video image processing, and provides a filtering method and an apparatus, to resolve a problem that subjective quality and objective quality of an image deteriorate because filtering processing cannot be performed on internal blocks of a non-translational motion prediction unit.
Claims15
A method for performing filtering processing on an affine image block that is one of a plurality of coding blocks of an image, wherein the affine image block is divided into two or more affine motion subunits, the method comprising:
- obtaining pixel values of a first affine motion subunit and pixel values of a second affine motion subunit, wherein the first affine motion subunit and the second affine motion subunit are adjacent to a filtering boundary and in the two or more affine motion subunits;
- and
- performing filtering processing on pixels adjacent to the filtering boundary based on a boundary strength value of the filtering boundary, the pixel values of the first affine motion subunit, and the pixel values of the second affine motion subunit;
- wherein the boundary strength value of the filtering boundary is set to 1 when:
- the first affine motion subunit has two motion vectors that correspond to a same reference image;
- the second affine motion subunit has two motion vectors that correspond to the same reference image;
- (a) a difference between horizontal components or vertical components of two motion vectors that corresponds to a forward reference candidate list (list0) is greater than or equal to a motion vector difference threshold T, or a difference between horizontal components or vertical components of two motion vectors that corresponds to a backward reference candidate list (list1) is greater than or equal to the motion vector difference threshold T;
- and
- (b) a difference between horizontal components or vertical components of a motion vector that corresponds to a forward reference candidate list (list0) and that is of the first affine motion subunit and a motion vector that corresponds to a backward reference candidate list (list1) and that is of the second affine motion subunit is greater than or equal to the motion vector difference threshold T, or a difference between horizontal components or vertical components of a motion vector that corresponds to a backward reference candidate list (list1) and that is of the first affine motion subunit and a motion vector that corresponds to a forward reference candidate list (list0) and that is of the second affine motion subunit is greater than or equal to the motion vector difference threshold T.
An apparatus for performing filtering processing on an affine image block that is one of a plurality of coding blocks of an image, wherein the affine image block is divided into two or more affine motion subunits, and the apparatus comprises:
- a processor, configured to:
- obtain pixel values of a first affine motion subunit and pixel values of a second affine motion subunit, wherein the first affine motion subunit and the second affine motion subunit are adjacent to a filtering boundary and in the two or more affine motion subunits;
- and
- perform filtering processing on pixels adjacent to the filtering boundary based on a boundary strength value of the filtering boundary, the pixel values of the first affine motion subunit, and the pixel values of the second affine motion subunit;
- wherein the boundary strength value of the filtering boundary is set to 1 when:
- the first affine motion subunit has two motion vectors that correspond to a same reference image;
- the second affine motion subunit has two motion vectors that correspond to the same reference image;
- (a) a difference between horizontal components or vertical components of two motion vectors that corresponds to a forward reference candidate list (list0) is greater than or equal to a motion vector difference threshold T, or a difference between horizontal components or vertical components of two motion vectors that corresponds to a backward reference candidate list (list1) is greater than or equal to the motion vector difference threshold T;
- and
- (b) a difference between horizontal components or vertical components of a motion vector that corresponds to a forward reference candidate list (list0) and that is of the first affine motion subunit and a motion vector that corresponds to a backward reference candidate list (list1) and that is of the second affine motion subunit is greater than or equal to the motion vector difference threshold T, or a difference between horizontal components or vertical components of a motion vector that corresponds to a backward reference candidate list (list1) and that is of the first affine motion subunit and a motion vector that corresponds to a forward reference candidate list (list0) and that is of the second affine motion subunit is greater than or equal to the motion vector difference threshold T.
A non-transitory computer readable medium storing instructions which when executed on a processor cause the processor to perform a method for performing filtering processing on an affine image block that is one of a plurality of coding blocks of an image, wherein the affine image block is divided into two or more subunits, the method comprising:
- obtaining pixel values of a first affine motion subunit and pixel values of a second affine motion subunit, wherein the first affine motion subunit and the second affine motion subunit are adjacent to a filtering boundary and in the two or more affine motion subunits;
- and
- performing filtering processing on pixels adjacent to the filtering boundary based on a boundary strength value of the filtering boundary, the pixel values of the first affine motion subunit, and the pixel values of the second affine motion subunit;
- wherein the boundary strength value of the filtering boundary is set to 1 when:
- the first affine motion subunit has two motion vectors that correspond to a same reference image;
- the second affine motion subunit has two motion vectors that correspond to another same reference image;
- and
- (a) a difference between horizontal components or vertical components of two motion vectors that corresponds to a forward reference candidate list (list0) is greater than or equal to a motion vector difference threshold T, or a difference between horizontal components or vertical components of two motion vectors that corresponds to a backward reference candidate list (list1) is greater than or equal to the motion vector difference threshold T;
- and
- (b) a difference between horizontal components or vertical components of a motion vector that corresponds to a forward reference candidate list (list0) and that is of the first affine motion subunit and a motion vector that corresponds to a backward reference candidate list (list1) and that is of the second affine motion subunit is greater than or equal to the motion vector difference threshold T, or a difference between horizontal components or vertical components of a motion vector that corresponds to a backward reference candidate list (list1) and that is of the first affine motion subunit and a motion vector that corresponds to a forward reference candidate list (list0) and that is of the second affine motion subunit is greater than or equal to the motion vector difference threshold T.
Dependencies are inferred from the claim text.