| CPC H04N 19/159 (2014.11) [H04N 19/117 (2014.11); H04N 19/182 (2014.11)] | 6 Claims |

|
1. An encoder comprising:
a memory; and
a processor connected to the memory and configured to:
determine whether a bi-directional optical flow (BDOF) process is applied;
generate a prediction image based on a first parameter and a second parameter that are derived in the BDOF process; and
encode a current block using the generated prediction image,
wherein
the first parameter is derived based on the following expression:
[Math. 1]
Σ[l,j]ϵΩabs(Ix1+Ix0); and
the second parameter according to the following expression:
[Math. 2]
Σ[l,j]ϵΩ(−sign (Ix1+Ix0)×(I0−I1)),
where:
Ω indicates a set of relative pixel positions;
[i, j] indicates a relative pixel position in the set 22 defined by a horizontal position i and a vertical position j;
Ix0 indicates a horizontal gradient value at a first pixel position in a first gradient image, and Ix1 indicates a horizontal gradient value at the first pixel position in a second gradient image, the first pixel position being determined based on a relative pixel position [i, j], the first gradient image and the second gradient image corresponding to the current block;
I0 indicates a pixel value at the first pixel position in a first interpolated image corresponding to the current block;
I1 indicates a pixel value at the first pixel position in a second interpolated image corresponding to the current block;
the abs function outputs an absolute value of an argument; and
the sign function outputs a sign of an argument.
|