| CPC H04N 19/513 (2014.11) [H04N 19/105 (2014.11); H04N 19/107 (2014.11); H04N 19/52 (2014.11); H04N 19/56 (2014.11); H04N 19/503 (2014.11)] | 1 Claim |

|
1. An image coding method for coding a current block, the image coding method comprising:
encoding information in a slice header indicative of a maximum number of merging candidates, when the maximum number of merging candidates is two or more,
wherein, when the maximum number of merging candidates is three or more, the image coding method further comprises:
deriving a first candidate having a first motion vector that has been used to code a first block;
deriving a second candidate having a second motion vector that has been used to code a second block, the second block being different from the first block;
determining whether or not a total number of candidates having the first candidate and the second candidate is less than a maximum candidate number;
deriving a third candidate having a third motion vector and a fourth motion vector when the total number of candidates having the first candidate and the second candidate is less than the maximum candidate number,
the third motion vector being identical to the first motion vector,
the fourth motion vector being identical to the second motion vector;
coding an index corresponding to a candidate having a motion vector; and
generating a bitstream having the coded index,
wherein the maximum candidate number is used to code the index,
wherein the motion vector is used to code the current block, and
wherein the candidate is one of a plurality of candidates having the first candidate, the second candidate, and the third candidate.
|