1. An electronic apparatus comprising: at least one processor; and at least one memory storing a program which, when executed by the at least one processor, causes the electronic apparatus to: acquire each of a plurality of pieces of refocusable image data in which a corresponding focus position being an in-focus position in a depth direction is changeable after image capturing, and a plurality of pieces of data each of which is added to a different one of the plurality of pieces of refocusable image data and associated with a position in the depth direction; identify a group to which at least one of the plurality of pieces of acquired added data belongs; generate, from the plurality of pieces of refocusable image data associated with the one or more pieces of added data belonging to the identified group, each of a plurality of refocused images with the corresponding focus position set to a position associated with the one or more pieces of added data belonging to the group; and display the plurality of refocused images on a screen.