Image decoding method and device on basis of affine motion prediction using constructed affine MVP candidate in image coding system
An image decoding method performed by a decoding device according to the present disclosure comprises the steps of: obtaining motion prediction information relating to a current block from a bitstream; generating an affine MVP candidate list for the current block; deriving CPMVPs for CPs of the current block on the basis of the affine MVP candidate list; deriving CPMVDs for the CPs of the current block on the basis of the motion prediction information; deriving CPMVs for the CPs of the current block on the basis of the CPMVPs and the CPMVDs; and deriving prediction samples for the current block on the basis of the CPMVs.
1 . An image decoding method performed by a decoding apparatus, the method comprising:
obtaining prediction related information for a current block from a bitstream;
constructing an affine motion vector predictor (mvp) candidate list for the current block;
deriving control point motion vectors (CPMVs) for control points (CPs) of the current block based on the prediction related information and the affine mvp candidate list;
deriving prediction samples for the current block based on the CPMVs; and
generating a reconstructed picture for the current block based on the derived prediction samples,
wherein based on a constructed affine mvp candidate being available, the affine mvp candidate list includes the constructed affine mvp candidate,
wherein the constructed affine mvp candidate includes candidate motion vectors for a first CP, a second CP and a third CP of the current block,
wherein an available candidate motion vector for the first CP is derived based on a reference picture of a first block in a first neighboring block group for the first CP being equal to a reference picture of the current block,
wherein an available candidate motion vector for the second CP is derived based on a reference picture of a second block in a second neighboring block group for the second CP being equal to the reference picture of the current block, the second neighboring block group for the second CP is different from the first neighboring block group for the first CP,
wherein an available candidate motion vector for the third CP is derived based on a reference picture of a third block in a third neighboring block group for the third CP being equal to the reference picture of the current block, the third neighboring block group for the third CP is different from the first neighboring block group for the first CP and the second neighboring block group for the second CP,
wherein based on the candidate motion vectors for the first CP, the second CP and the third CP being available, the constructed affine mvp candidate is available, and
wherein based on at least one of the candidate motion vector for the first CP, the candidate motion vector for the second CP or the candidate motion vector for the third CP being not available, the constructed affine mvp candidate is not available and the constructed affine mvp candidate is not included in the affine mvp candidate list.
2 . An image encoding method performed by an encoding apparatus, the method comprising:
constructing an affine motion vector predictor (mvp) candidate list for a current block;
deriving control point motion vectors (CPMVs) for control points (CPS) of the current block based on the affine mvp candidate list;
deriving prediction samples for the current block based on the CPMVs; and
encoding prediction related information for the current block,
wherein based on a constructed affine mvp candidate being available, the affine mvp candidate list includes the constructed affine mvp candidate,
wherein the constructed affine mvp candidate includes candidate motion vectors for a first CP, a second CP and a third CP of the current block,
wherein an available candidate motion vector for the first CP is derived based on a reference picture of a first block in a first neighboring block group for the first CP being equal to a reference picture of the current block,
wherein an available candidate motion vector for the second CP is derived based on a reference picture of a second block in a second neighboring block group for the second CP being equal to the reference picture of the current block, the second neighboring block group for the second CP is different from the first neighboring block group for the first CP,
wherein an available candidate motion vector for the third CP is derived based on a reference picture of a third block in a third neighboring block group for the third CP being equal to the reference picture of the current block, the third neighboring block group for the third CP is different from the first neighboring block group for the first CP and the second neighboring block group for the second CP,
wherein based on the candidate motion vectors for the first CP, the second CP and the third CP being available, the constructed affine mvp candidate is available, and
wherein based on at least one of the candidate motion vector for the first CP, the candidate motion vector for the second CP or the candidate motion vector for the third CP being not available, the constructed affine mvp candidate is not available and the constructed affine mvp candidate is not included in the affine mvp candidate list.
3 . A transmitting method of data for an image, the method comprising:
obtaining a bitstream of image information including prediction related information for a current block; and
transmitting the data comprising the bitstream of the image information including the prediction related information,
wherein the prediction related information is information on prediction samples for the current block,
wherein the prediction samples are derived based on control point motion vectors (CPMVs) for control points (CPs) of the current block,
wherein the CPMVs are derived based on an affine motion vector predictor (mvp) candidate list for the current block,
wherein based on a constructed affine mvp candidate being available, the affine mvp candidate list includes the constructed affine mvp candidate,
wherein the constructed affine mvp candidate includes candidate motion vectors for a first CP, a second CP and a third CP of the current block,
wherein an available candidate motion vector for the first CP is derived based on a reference picture of a first block in a first neighboring block group for the first CP being equal to a reference picture of the current block,
wherein an available candidate motion vector for the second CP is derived based on a reference picture of a second block in a second neighboring block group for the second CP being equal to the reference picture of the current block, the second neighboring block group for the second CP is different from the first neighboring block group for the first CP,
wherein an available candidate motion vector for the third CP is derived based on a reference picture of a third block in a third neighboring block group for the third CP being equal to the reference picture of the current block, the third neighboring block group for the third CP is different from the first neighboring block group for the first CP and the second neighboring block group for the second CP,
wherein based on the candidate motion vectors for the first CP, the second CP and the third CP being available, the constructed affine mvp candidate is available, and
wherein based on at least one of the candidate motion vector for the first CP, the candidate motion vector for the second CP or the candidate motion vector for the third CP being not available, the constructed affine mvp candidate is not available and the constructed affine mvp candidate is not included in the affine mvp candidate list.