Image encoding/decoding method and device
Image encoding/decoding method and device according to the present invention enable deciding of an intra-screen prediction mode of a target block, generation of a prediction block of the target block on the basis of the intra-screen prediction mode, and correction of the generated prediction block.
1. A method for decoding a video signal with a decoding apparatus, comprising:
determining an intra prediction mode applied to an intra prediction for the current block; and
generating a prediction block of the current block based on the intra prediction mode,
wherein the generating the prediction block of the current block comprises:
configuring reference samples for the intra prediction for the current block;
deriving a value of a first prediction sample inside the prediction block of the current block based on at least one among the configured reference samples; and
deriving a value of a second prediction sample inside the prediction block based on the first prediction sample inside the prediction block and at least one among the configured reference samples,
wherein the deriving the value of the first prediction sample comprises averaging two consecutive reference samples adjacent to each other.
2. The method of claim 1 , wherein the deriving the value of the second prediction sample is performed based on an interpolation using the first prediction sample and at least one among the configured reference samples.
3. A method for encoding a video signal with an encoding apparatus, comprising:
determining an intra prediction mode applied to an intra prediction for the current block; and
generating a prediction block of the current block based on the intra prediction mode,
wherein the generating the prediction block of the current block comprises:
configuring reference samples for the intra prediction for the current block;
deriving a value of a first prediction sample inside the prediction block of the current block based on at least one among the configured reference samples; and
deriving a value of a second prediction sample inside the prediction block based on the first prediction sample inside the prediction block and at least one among the configured reference samples,
wherein the deriving the value of the first prediction sample comprises averaging two consecutive reference samples adjacent to each other.
4. A non-transitory computer-readable recording medium storing a bitstream generated by a method for encoding a video signal, the method comprising:
determining an intra prediction mode applied to an intra prediction for the current block; and
generating a prediction block of the current block based on the intra prediction mode,
wherein the generating the prediction block of the current block comprises:
configuring reference samples for the intra prediction for the current block;
deriving a value of a first prediction sample inside the prediction block of the current block based on at least one among the configured reference samples; and
deriving a value of a second prediction sample inside the prediction block based on the first prediction sample inside the prediction block and at least one among the configured reference samples,
wherein the deriving the value of the first prediction sample comprises averaging two consecutive reference samples adjacent to each other.