| CPC H04N 19/105 (2014.11) [H04N 19/11 (2014.11); H04N 19/132 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/46 (2014.11)] | 12 Claims |

|
1. An image decoding apparatus comprising:
a parameter decoder circuit configured to decode a template-based intra mode derivation flag from coded data;
a reference sample derivation circuit configured to derive a reference sample in a current image by using an image of a template reference region near a target block in the current image;
an intra prediction image generation circuit configured to generate, by using the reference sample, a template prediction image for a predetermined intra prediction mode candidate;
a template cost derivation circuit configured to derive a cost from the template prediction image and a template image corresponding to an image near the target block; and
an intra prediction mode selection circuit configured to select a template intra prediction mode for the target block based on the cost, wherein
in a case that the template-based intra mode derivation flag has a prescribed value, a prediction image of the target block is generated by using the template intra prediction mode, and
the template image is positioned in at least one region, and the at least one region includes discontinuous regions that are positioned in an identical direction.
|