; and a decoded shape value which is obtained by decoding the shape coded data. Therefore, the capacity of the memory which contains the input shape information can be saved. According to a 00th aspect of the present invention, in the image coding method of the 0st aspect, when the size of the pixel frame is different from the size of a predetermined shape frame corresponding to the pixel frame, 