| CPC H04N 19/13 (2014.11) [H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/182 (2014.11)] | 12 Claims |

|
1. A method comprising:
assigning a mask value to unavailable pixels in a context comprising pixels surrounding a first image block, wherein the mask value is outside a range of available pixels in the context;
subtracting an average value of the available pixels in the context from the available pixels in the context;
providing the context to at least one neural network;
obtaining, from the at least one neural network, a second image block comprising intra prediction of the first image block; and
post-processing the second image block by adding the average value to the intra prediction of the first image block.
|