摘要 |
An image encoding apparatus of the present invention includes a TM prediction section (105) that generates a predicted image for each of prediction units. This TM prediction section (105) uses, as a template, a rectangular region on the decoded image, which rectangular region faces a longer side of a subject rectangular region, and searches for a region having a highest correlation with the template out of regions on a decoded image obtained by parallel shifting a rectangular region in a longer side direction, the rectangular region facing a longer side of the template opposite to a side of the template that faces the subject rectangular region, to generate the predicted image on the subject rectangular region. This allows for accomplishing an image encoding apparatus having high encoding efficiency, even in a case in which an image to be encoded includes an edge whose curvature varies. |