CPC H04N 19/132 (2014.11) [H04N 19/105 (2014.11); H04N 19/176 (2014.11); H04N 19/30 (2014.11)] | 19 Claims |
1. An image processing apparatus comprising:
a memory storing one or more instructions; and
a processor configured to operate based on the one or more instructions to:
reconstruct a current block from encoded data of the current block;
obtain a quantization error map comprising sample values calculated based on a quantization parameter;
calculate an extension distance based on at least one among a number of convolutional layers in a neural network and a size of a filter kernel used by the convolutional layers;
obtain a first modified block by applying, to the neural network, an extended block and the quantization error map, wherein the extended block comprises samples of the current block and neighboring samples corresponding to the extension distance from among neighboring samples outside a boundary of the current block in a current image; and
obtain a second modified block from the first modified block based on a parameter dependent on a feature of the current block.
|