A second candidate group may be also determined based on a position of a region to which a MPM belongs (embodiment 3). Predefined intra prediction modes in an encoding/decoding device may be classified into a plurality of regions. For convenience of description, 
In reference to 
A second candidate group may be determined based on an intra prediction mode of a region adjacent to a region to which a MPM belongs. For example, when a MPM belongs to a first region, a second candidate group may be determined from at least one of a second region or a fourth region. In this case, a second candidate group may be determined based on the minimum value, the maximum value, a center value or a base mode value of intra prediction modes belonging to the corresponding region.
Alternatively, a second candidate group may be determined based on an intra prediction mode of a region non-adjacent to a region to which a MPM belongs. For example, when a MPM belongs to a second region, a second candidate group may be determined from a fourth region. Alternatively, when a MPM belongs to a third region, a second candidate group may be determined from a first region. In this case, a second candidate group may be determined based on the minimum value, the maximum value, a center value or a base mode value of intra prediction modes belonging to the corresponding region.