1. An image extracting apparatus comprising: a processor that is configured to: select an image as a reference image from a plurality of images arranged in time order; specify a plurality of sets of images of a predetermined number from the plurality of images, each set consisting of the reference image and one or more other images adjacent in time; acquire an evaluation value for each of the specified plurality of sets for evaluating temporal relationship of the set based on time-related information of all of the images included in the set; select one of the plurality of sets based on the acquired evaluation values; and extract images of a predetermined number including the reference image, the images being adjacent in time.